diff options
author | Sam Ravnborg <sam@ravnborg.org> | 2010-07-28 13:11:27 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2010-08-03 08:09:45 -0400 |
commit | 80c00ba942ee39c9a95c06959223560400bbb86e (patch) | |
tree | c0ff9363d1e3ab372ae8ed1137b1d012c88e683a /Documentation/kbuild/makefiles.txt | |
parent | 6588169d516560f68672e2928680b71c647b7806 (diff) |
kbuild: allow assignment to {A,C}FLAGS_KERNEL on the command line
It is now possible to assign options to AS and CC
on the command line - which is only used for built-in code.
{A,C}FLAGS_KERNEL was used both in the top-level Makefile
in the arch makefiles, thus users had no way to specify
additional options to AS, CC without overriding
the original value.
Introduce a new set of variables KBUILD_{A,C}FLAGS_KERNEL
that is used by arch specific files and free up
{A,C}FLAGS_KERNEL so they can be assigned on
the command line.
All arch Makefiles that used the old variables has been updated.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 802341abf702..5c878cc6c0b4 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -923,9 +923,9 @@ When kbuild executes, the following steps are followed (roughly): | |||
923 | The first example utilises the trick that a config option expands | 923 | The first example utilises the trick that a config option expands |
924 | to 'y' when selected. | 924 | to 'y' when selected. |
925 | 925 | ||
926 | CFLAGS_KERNEL $(CC) options specific for built-in | 926 | KBUILD_AFLAGS_KERNEL $(AS) options specific for built-in |
927 | 927 | ||
928 | $(CFLAGS_KERNEL) contains extra C compiler flags used to compile | 928 | $(KBUILD_AFLAGS_KERNEL) contains extra C compiler flags used to compile |
929 | resident kernel code. | 929 | resident kernel code. |
930 | 930 | ||
931 | KBUILD_AFLAGS_MODULE Options for $(AS) when building modules | 931 | KBUILD_AFLAGS_MODULE Options for $(AS) when building modules |
@@ -934,6 +934,11 @@ When kbuild executes, the following steps are followed (roughly): | |||
934 | are used for $(AS). | 934 | are used for $(AS). |
935 | From commandline AFLAGS_MODULE shall be used (see kbuild.txt). | 935 | From commandline AFLAGS_MODULE shall be used (see kbuild.txt). |
936 | 936 | ||
937 | KBUILD_CFLAGS_KERNEL $(CC) options specific for built-in | ||
938 | |||
939 | $(KBUILD_CFLAGS_KERNEL) contains extra C compiler flags used to compile | ||
940 | resident kernel code. | ||
941 | |||
937 | KBUILD_CFLAGS_MODULE Options for $(CC) when building modules | 942 | KBUILD_CFLAGS_MODULE Options for $(CC) when building modules |
938 | 943 | ||
939 | $(KBUILD_CFLAGS_MODULE) is used to add arch specific options that | 944 | $(KBUILD_CFLAGS_MODULE) is used to add arch specific options that |