diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 17:10:07 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2010-08-05 17:10:07 -0400 |
commit | da9e82b3b8989fc09e2a4c45b9da604ba2b4c46d (patch) | |
tree | 7355d2afe95be27fddb8fa4baa46476c76aeb8ee /Documentation/kbuild | |
parent | 90d3417a3a4e810d67081dd106f0e603a856978f (diff) | |
parent | 772320e84588dcbe1600ffb83e5f328f2209ac2a (diff) |
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6
* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild-2.6:
modpost: support objects with more than 64k sections
trivial: fix a typo in a filename
frv: clean up arch/frv/Makefile
kbuild: allow assignment to {A,C}FLAGS_KERNEL on the command line
kbuild: allow assignment to {A,C,LD}FLAGS_MODULE on the command line
Kbuild: Add option to set -femit-struct-debug-baseonly
Makefile: "make kernelrelease" should show the correct full kernel version
Makefile.build: make KBUILD_SYMTYPES work again
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 26 | ||||
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 27 |
2 files changed, 46 insertions, 7 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 0d8addbb0fae..1e5165aa9e4e 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt | |||
@@ -22,11 +22,33 @@ building C files and assembler files. | |||
22 | 22 | ||
23 | KAFLAGS | 23 | KAFLAGS |
24 | -------------------------------------------------- | 24 | -------------------------------------------------- |
25 | Additional options to the assembler. | 25 | Additional options to the assembler (for built-in and modules). |
26 | |||
27 | AFLAGS_MODULE | ||
28 | -------------------------------------------------- | ||
29 | Addtional module specific options to use for $(AS). | ||
30 | |||
31 | AFLAGS_KERNEL | ||
32 | -------------------------------------------------- | ||
33 | Addtional options for $(AS) when used for assembler | ||
34 | code for code that is compiled as built-in. | ||
26 | 35 | ||
27 | KCFLAGS | 36 | KCFLAGS |
28 | -------------------------------------------------- | 37 | -------------------------------------------------- |
29 | Additional options to the C compiler. | 38 | Additional options to the C compiler (for built-in and modules). |
39 | |||
40 | CFLAGS_KERNEL | ||
41 | -------------------------------------------------- | ||
42 | Addtional options for $(CC) when used to compile | ||
43 | code that is compiled as built-in. | ||
44 | |||
45 | CFLAGS_MODULE | ||
46 | -------------------------------------------------- | ||
47 | Addtional module specific options to use for $(CC). | ||
48 | |||
49 | LDFLAGS_MODULE | ||
50 | -------------------------------------------------- | ||
51 | Additional options used for $(LD) when linking modules. | ||
30 | 52 | ||
31 | KBUILD_VERBOSE | 53 | KBUILD_VERBOSE |
32 | -------------------------------------------------- | 54 | -------------------------------------------------- |
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 8abd041b605d..c375313cb128 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -921,16 +921,33 @@ When kbuild executes, the following steps are followed (roughly): | |||
921 | The first example utilises the trick that a config option expands | 921 | The first example utilises the trick that a config option expands |
922 | to 'y' when selected. | 922 | to 'y' when selected. |
923 | 923 | ||
924 | CFLAGS_KERNEL $(CC) options specific for built-in | 924 | KBUILD_AFLAGS_KERNEL $(AS) options specific for built-in |
925 | 925 | ||
926 | $(CFLAGS_KERNEL) contains extra C compiler flags used to compile | 926 | $(KBUILD_AFLAGS_KERNEL) contains extra C compiler flags used to compile |
927 | resident kernel code. | 927 | resident kernel code. |
928 | 928 | ||
929 | CFLAGS_MODULE $(CC) options specific for modules | 929 | KBUILD_AFLAGS_MODULE Options for $(AS) when building modules |
930 | 930 | ||
931 | $(CFLAGS_MODULE) contains extra C compiler flags used to compile code | 931 | $(KBUILD_AFLAGS_MODULE) is used to add arch specific options that |
932 | for loadable kernel modules. | 932 | are used for $(AS). |
933 | From commandline AFLAGS_MODULE shall be used (see kbuild.txt). | ||
933 | 934 | ||
935 | KBUILD_CFLAGS_KERNEL $(CC) options specific for built-in | ||
936 | |||
937 | $(KBUILD_CFLAGS_KERNEL) contains extra C compiler flags used to compile | ||
938 | resident kernel code. | ||
939 | |||
940 | KBUILD_CFLAGS_MODULE Options for $(CC) when building modules | ||
941 | |||
942 | $(KBUILD_CFLAGS_MODULE) is used to add arch specific options that | ||
943 | are used for $(CC). | ||
944 | From commandline CFLAGS_MODULE shall be used (see kbuild.txt). | ||
945 | |||
946 | KBUILD_LDFLAGS_MODULE Options for $(LD) when linking modules | ||
947 | |||
948 | $(KBUILD_LDFLAGS_MODULE) is used to add arch specific options | ||
949 | used when linking modules. This is often a linker script. | ||
950 | From commandline LDFLAGS_MODULE shall be used (see kbuild.txt). | ||
934 | 951 | ||
935 | --- 6.2 Add prerequisites to archprepare: | 952 | --- 6.2 Add prerequisites to archprepare: |
936 | 953 | ||