Define CC = $(CROSS_COMPILE)gcc in makefile and add EXTRA_CFLAGS, EXTRA_LDFLAGS
Signed-off-by: Delio Brignoli <dbrignoli@audioscience.com>master
parent
480a16596f
commit
3a64baee50
7
makefile
7
makefile
|
@ -18,11 +18,10 @@
|
||||||
KBUILD_OUTPUT ?= /lib/modules/$(shell uname -r)/build
|
KBUILD_OUTPUT ?= /lib/modules/$(shell uname -r)/build
|
||||||
|
|
||||||
DEBUG =
|
DEBUG =
|
||||||
CC = gcc
|
CC = $(CROSS_COMPILE)gcc
|
||||||
INC = -I$(KBUILD_OUTPUT)/usr/include
|
INC = -I$(KBUILD_OUTPUT)/usr/include
|
||||||
CFLAGS = -Wall $(INC) $(DEBUG)
|
CFLAGS = -Wall $(INC) $(DEBUG) $(EXTRA_CFLAGS)
|
||||||
LDFLAGS =
|
LDLIBS = -lm -lrt $(EXTRA_LDFLAGS)
|
||||||
LDLIBS = -lm -lrt
|
|
||||||
PRG = ptp4l phc2sys hwstamp_ctl
|
PRG = ptp4l phc2sys hwstamp_ctl
|
||||||
OBJ = bmc.o clock.o config.o fsm.o ptp4l.o mave.o msg.o phc.o pi.o port.o \
|
OBJ = bmc.o clock.o config.o fsm.o ptp4l.o mave.o msg.o phc.o pi.o port.o \
|
||||||
print.o raw.o servo.o sk.o tmtab.o transport.o udp.o udp6.o util.o
|
print.o raw.o servo.o sk.o tmtab.o transport.o udp.o udp6.o util.o
|
||||||
|
|
Loading…
Reference in New Issue