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/kbuild.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/kbuild.txt')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index d9c655433ec6..e903f20077cf 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt | |||
@@ -28,10 +28,20 @@ AFLAGS_MODULE | |||
28 | -------------------------------------------------- | 28 | -------------------------------------------------- |
29 | Addtional module specific options to use for $(AS). | 29 | Addtional module specific options to use for $(AS). |
30 | 30 | ||
31 | AFLAGS_KERNEL | ||
32 | -------------------------------------------------- | ||
33 | Addtional options for $(AS) when used for assembler | ||
34 | code for code that is compiled as built-in. | ||
35 | |||
31 | KCFLAGS | 36 | KCFLAGS |
32 | -------------------------------------------------- | 37 | -------------------------------------------------- |
33 | Additional options to the C compiler (for built-in and modules). | 38 | Additional options to the C compiler (for built-in and modules). |
34 | 39 | ||
40 | CFLAGS_KERNEL | ||
41 | -------------------------------------------------- | ||
42 | Addtional options for $(CC) when used to compile | ||
43 | code that is compiled as built-in. | ||
44 | |||
35 | CFLAGS_MODULE | 45 | CFLAGS_MODULE |
36 | -------------------------------------------------- | 46 | -------------------------------------------------- |
37 | Addtional module specific options to use for $(CC). | 47 | Addtional module specific options to use for $(CC). |