On Thu, Nov 29, 2018 at 8:31 PM Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> wrote: > > The barebox Makefiles do not use KBUILD_CPPFLAGS but CPPFLAGS as variable name. > > Signed-off-by: Steffen Trumtrar <s.trumtrar@xxxxxxxxxxxxxx> > --- This might be a step backward. In old days, Linux also used well-known CPPFLAGS. Then Linux renamed CPPFLAGS -> KBUILD_CFLAGS See the following commit: commit 06c5040cdb13d27adad118f2fbfae905a1911b37 Author: Sam Ravnborg <sam@neptun.(none)> Date: Mon Oct 15 22:17:25 2007 +0200 kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP Barebox forked from U-Boot around 2007, so maybe Barebox is based on older Makefiles. > scripts/Kbuild.include | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/scripts/Kbuild.include b/scripts/Kbuild.include > index e62bd35692d0..0cb3a70a6a42 100644 > --- a/scripts/Kbuild.include > +++ b/scripts/Kbuild.include > @@ -111,12 +111,12 @@ as-instr = $(call try-run,\ > # Usage: cflags-y += $(call cc-option,-march=winchip-c6,-march=i586) > > cc-option = $(call try-run,\ > - $(CC) $(KBUILD_CPPFLAGS) $(CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2)) > + $(CC) $(CPPFLAGS) $(CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",$(1),$(2)) > > # cc-option-yn > # Usage: flag := $(call cc-option-yn,-march=winchip-c6) > cc-option-yn = $(call try-run,\ > - $(CC) $(KBUILD_CPPFLAGS) $(CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n) > + $(CC) $(CPPFLAGS) $(CFLAGS) $(1) -c -xc /dev/null -o "$$TMP",y,n) > > # cc-option-align > # Prefix align with either -falign or -malign > @@ -126,7 +126,7 @@ cc-option-align = $(subst -functions=0,,\ > # cc-disable-warning > # Usage: cflags-y += $(call cc-disable-warning,unused-but-set-variable) > cc-disable-warning = $(call try-run,\ > - $(CC) $(KBUILD_CPPFLAGS) $(CFLAGS) -W$(strip $(1)) -c -xc /dev/null -o "$$TMP",-Wno-$(strip $(1))) > + $(CC) $(CPPFLAGS) $(CFLAGS) -W$(strip $(1)) -c -xc /dev/null -o "$$TMP",-Wno-$(strip $(1))) > > # cc-version > # Usage gcc-ver := $(call cc-version) > -- > 2.19.2 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox -- Best Regards Masahiro Yamada _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox