[RFC][PATCH 1/1] scripts/Makefile: add TARGETCC
Stefan Müller-Klieser
s.mueller-klieser at phytec.de
Mon Apr 20 06:10:27 PDT 2015
This gives the buildsystem the ability to hand down user space toolchain
settings to target tools in the scripts folder, if necessary.
Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser at phytec.de>
---
scripts/Makefile | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile b/scripts/Makefile
index 74c2213..872cd99 100644
--- a/scripts/Makefile
+++ b/scripts/Makefile
@@ -40,8 +40,10 @@ targetprogs-$(CONFIG_IMD_TARGET) += bareboximd-target
# Let clean descend into subdirs
subdir- += basic kconfig setupmbr
+TARGETCC ?= $(CC)
+
quiet_cmd_csingle = CC $@
- cmd_csingle = $(CC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
+ cmd_csingle = $(TARGETCC) -Wp,-MD,$(depfile) $(CFLAGS) -o $@ $<
__targetprogs := $(sort $(targetprogs-y) $(targetprogs-m))
target-csingle := $(foreach m,$(__targetprogs),$(if $($(m)-objs),,$(m)))
--
1.9.1
More information about the barebox
mailing list