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@xxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox