kbuild: enable 'make CPPFLAGS=...' to add additional options to CPP
The variable CPPFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
This patch replace use of CPPFLAGS with KBUILD_CPPFLAGS all over the
tree and enabling one to use:
make CPPFLAGS=...
to specify additional CPP commandline options.
Patch was tested on following architectures:
alpha, arm, i386, x86_64, mips, sparc, sparc64, ia64, m68k, s390
Signed-off-by:
Sam Ravnborg <sam@ravnborg.org>
Showing
- Documentation/kbuild/makefiles.txt 1 addition, 1 deletionDocumentation/kbuild/makefiles.txt
- Makefile 7 additions, 6 deletionsMakefile
- arch/arm/Makefile 2 additions, 2 deletionsarch/arm/Makefile
- arch/ia64/Makefile 1 addition, 1 deletionarch/ia64/Makefile
- arch/powerpc/Makefile 1 addition, 1 deletionarch/powerpc/Makefile
- arch/ppc/Makefile 1 addition, 1 deletionarch/ppc/Makefile
- arch/um/Makefile-x86_64 1 addition, 1 deletionarch/um/Makefile-x86_64
- drivers/atm/Makefile 1 addition, 1 deletiondrivers/atm/Makefile
- scripts/Makefile.lib 3 additions, 3 deletionsscripts/Makefile.lib
Loading
Please register or sign in to comment