kbuild: allow assignment to {A,C,LD}FLAGS_MODULE on the command line
It is now possible to assign options to AS, CC and LD on the command line - which is only used when building modules. {A,C,LD}FLAGS_MODULE was all used both in the top-level Makefile in the arch makefiles, thus users had no way to specify additional options to AS, CC, LD when building modules without overriding the original value. Introduce a new set of variables KBUILD_{A,C,LD}FLAGS_MODULE that is used by arch specific files and free up {A,C,LD}FLAGS_MODULE so they can be assigned on the command line. All arch Makefiles that used the old variables has been updated. Note: Previously we had a MODFLAGS variable for both AS and CC. But in favour of consistency this was dropped. So in some cases arch Makefile has one assignmnet replaced by two assignmnets. Note2: MODFLAGS was not documented and is dropped without any notice. I do not expect much/any breakage from this. Signed-off-by:Sam Ravnborg <sam@ravnborg.org> Cc: Denys Vlasenko <vda.linux@googlemail.com> Cc: Haavard Skinnemoen <hskinnemoen@atmel.com> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Tony Luck <tony.luck@intel.com> Cc: Geert Uytterhoeven <geert@linux-m68k.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: Martin Schwidefsky <schwidefsky@de.ibm.com> Cc: Chen Liqin <liqin.chen@sunplusct.com> Acked-by: Mike Frysinger <vapier@gentoo.org> [blackfin] Acked-by: Haavard Skinnemoen <haavard.skinnemoen@atmel.com> [avr32] Signed-off-by:
Michal Marek <mmarek@suse.cz>
Showing
- Documentation/kbuild/kbuild.txt 14 additions, 2 deletionsDocumentation/kbuild/kbuild.txt
- Documentation/kbuild/makefiles.txt 15 additions, 3 deletionsDocumentation/kbuild/makefiles.txt
- Makefile 8 additions, 5 deletionsMakefile
- arch/avr32/Makefile 1 addition, 1 deletionarch/avr32/Makefile
- arch/blackfin/Makefile 2 additions, 2 deletionsarch/blackfin/Makefile
- arch/ia64/Makefile 1 addition, 1 deletionarch/ia64/Makefile
- arch/m32r/Makefile 1 addition, 1 deletionarch/m32r/Makefile
- arch/m68k/Makefile 1 addition, 1 deletionarch/m68k/Makefile
- arch/mips/Makefile 4 additions, 2 deletionsarch/mips/Makefile
- arch/powerpc/Makefile 1 addition, 1 deletionarch/powerpc/Makefile
- arch/s390/Makefile 2 additions, 1 deletionarch/s390/Makefile
- arch/score/Makefile 2 additions, 1 deletionarch/score/Makefile
- scripts/Makefile.build 6 additions, 3 deletionsscripts/Makefile.build
- scripts/Makefile.modpost 4 additions, 3 deletionsscripts/Makefile.modpost
Loading
Please register or sign in to comment