]> Git Repo - linux.git/commit - scripts/Makefile.build
kbuild: allow assignment to {A,C,LD}FLAGS_MODULE on the command line
authorSam Ravnborg <[email protected]>
Wed, 28 Jul 2010 15:33:09 +0000 (17:33 +0200)
committerMichal Marek <[email protected]>
Tue, 3 Aug 2010 12:09:45 +0000 (14:09 +0200)
commit6588169d516560f68672e2928680b71c647b7806
tree91b20bf9197c718ff4b5830bb1aea0b1bc0de272
parentd6f4ceb796ebf1a8c8a9ad4a8ea0d181aaec7de6
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 <[email protected]>
Cc: Denys Vlasenko <[email protected]>
Cc: Haavard Skinnemoen <[email protected]>
Cc: Mike Frysinger <[email protected]>
Cc: Tony Luck <[email protected]>
Cc: Geert Uytterhoeven <[email protected]>
Cc: Ralf Baechle <[email protected]>
Cc: Benjamin Herrenschmidt <[email protected]>
Cc: Martin Schwidefsky <[email protected]>
Cc: Chen Liqin <[email protected]>
Acked-by: Mike Frysinger <[email protected]> [blackfin]
Acked-by: Haavard Skinnemoen <[email protected]> [avr32]
Signed-off-by: Michal Marek <[email protected]>
14 files changed:
Documentation/kbuild/kbuild.txt
Documentation/kbuild/makefiles.txt
Makefile
arch/avr32/Makefile
arch/blackfin/Makefile
arch/ia64/Makefile
arch/m32r/Makefile
arch/m68k/Makefile
arch/mips/Makefile
arch/powerpc/Makefile
arch/s390/Makefile
arch/score/Makefile
scripts/Makefile.build
scripts/Makefile.modpost
This page took 0.063166 seconds and 4 git commands to generate.