diff options
Diffstat (limited to 'Documentation/kbuild')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 10 | ||||
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 9 |
2 files changed, 17 insertions, 2 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). |
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 |