From 3a64baee50da4830be2d6fbaa07098ddba9fd7fd Mon Sep 17 00:00:00 2001 From: Delio Brignoli Date: Tue, 24 Jul 2012 12:30:06 +0200 Subject: [PATCH] Define CC = $(CROSS_COMPILE)gcc in makefile and add EXTRA_CFLAGS, EXTRA_LDFLAGS Signed-off-by: Delio Brignoli --- makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/makefile b/makefile index fdb3fd7..78d2059 100644 --- a/makefile +++ b/makefile @@ -18,11 +18,10 @@ KBUILD_OUTPUT ?= /lib/modules/$(shell uname -r)/build DEBUG = -CC = gcc +CC = $(CROSS_COMPILE)gcc INC = -I$(KBUILD_OUTPUT)/usr/include -CFLAGS = -Wall $(INC) $(DEBUG) -LDFLAGS = -LDLIBS = -lm -lrt +CFLAGS = -Wall $(INC) $(DEBUG) $(EXTRA_CFLAGS) +LDLIBS = -lm -lrt $(EXTRA_LDFLAGS) 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 \ print.o raw.o servo.o sk.o tmtab.o transport.o udp.o udp6.o util.o