kbuild: enable 'make AFLAGS=...' to add additional options to AS
The variable AFLAGS is a wellknown variable and the usage by
kbuild may result in unexpected behaviour.
On top of that several people over time has asked for a way to
pass in additional flags to gcc.
This patch replace use of AFLAGS with KBUILD_AFLAGS all over
the tree.
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 3 additions, 2 deletionsDocumentation/kbuild/makefiles.txt
- Makefile 4 additions, 4 deletionsMakefile
- arch/arm/Makefile 1 addition, 1 deletionarch/arm/Makefile
- arch/arm/vfp/Makefile 1 addition, 1 deletionarch/arm/vfp/Makefile
- arch/avr32/Makefile 2 additions, 2 deletionsarch/avr32/Makefile
- arch/blackfin/Makefile 1 addition, 1 deletionarch/blackfin/Makefile
- arch/cris/Makefile 1 addition, 1 deletionarch/cris/Makefile
- arch/frv/Makefile 5 additions, 5 deletionsarch/frv/Makefile
- arch/h8300/Makefile 1 addition, 1 deletionarch/h8300/Makefile
- arch/i386/Makefile 3 additions, 3 deletionsarch/i386/Makefile
- arch/m32r/Makefile 1 addition, 1 deletionarch/m32r/Makefile
- arch/m68knommu/Makefile 1 addition, 1 deletionarch/m68knommu/Makefile
- arch/mips/Makefile 1 addition, 1 deletionarch/mips/Makefile
- arch/powerpc/Makefile 2 additions, 2 deletionsarch/powerpc/Makefile
- arch/ppc/Makefile 2 additions, 2 deletionsarch/ppc/Makefile
- arch/s390/Makefile 3 additions, 3 deletionsarch/s390/Makefile
- arch/sh/Makefile 1 addition, 1 deletionarch/sh/Makefile
- arch/sparc/Makefile 1 addition, 1 deletionarch/sparc/Makefile
- arch/sparc64/Makefile 1 addition, 1 deletionarch/sparc64/Makefile
- arch/um/Makefile 1 addition, 1 deletionarch/um/Makefile
Loading
Please register or sign in to comment