diff options
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 16 | ||||
-rw-r--r-- | Documentation/kbuild/makefiles.txt | 18 |
2 files changed, 29 insertions, 5 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 634c625da8ce..d9c655433ec6 100644 --- a/Documentation/kbuild/kbuild.txt +++ b/Documentation/kbuild/kbuild.txt | |||
@@ -22,11 +22,23 @@ 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). | ||
26 | 30 | ||
27 | KCFLAGS | 31 | KCFLAGS |
28 | -------------------------------------------------- | 32 | -------------------------------------------------- |
29 | Additional options to the C compiler. | 33 | Additional options to the C compiler (for built-in and modules). |
34 | |||
35 | CFLAGS_MODULE | ||
36 | -------------------------------------------------- | ||
37 | Addtional module specific options to use for $(CC). | ||
38 | |||
39 | LDFLAGS_MODULE | ||
40 | -------------------------------------------------- | ||
41 | Additional options used for $(LD) when linking modules. | ||
30 | 42 | ||
31 | KBUILD_VERBOSE | 43 | KBUILD_VERBOSE |
32 | -------------------------------------------------- | 44 | -------------------------------------------------- |
diff --git a/Documentation/kbuild/makefiles.txt b/Documentation/kbuild/makefiles.txt index 71c602d61680..802341abf702 100644 --- a/Documentation/kbuild/makefiles.txt +++ b/Documentation/kbuild/makefiles.txt | |||
@@ -928,11 +928,23 @@ When kbuild executes, the following steps are followed (roughly): | |||
928 | $(CFLAGS_KERNEL) contains extra C compiler flags used to compile | 928 | $(CFLAGS_KERNEL) contains extra C compiler flags used to compile |
929 | resident kernel code. | 929 | resident kernel code. |
930 | 930 | ||
931 | CFLAGS_MODULE $(CC) options specific for modules | 931 | KBUILD_AFLAGS_MODULE Options for $(AS) when building modules |
932 | 932 | ||
933 | $(CFLAGS_MODULE) contains extra C compiler flags used to compile code | 933 | $(KBUILD_AFLAGS_MODULE) is used to add arch specific options that |
934 | for loadable kernel modules. | 934 | are used for $(AS). |
935 | From commandline AFLAGS_MODULE shall be used (see kbuild.txt). | ||
935 | 936 | ||
937 | KBUILD_CFLAGS_MODULE Options for $(CC) when building modules | ||
938 | |||
939 | $(KBUILD_CFLAGS_MODULE) is used to add arch specific options that | ||
940 | are used for $(CC). | ||
941 | From commandline CFLAGS_MODULE shall be used (see kbuild.txt). | ||
942 | |||
943 | KBUILD_LDFLAGS_MODULE Options for $(LD) when linking modules | ||
944 | |||
945 | $(KBUILD_LDFLAGS_MODULE) is used to add arch specific options | ||
946 | used when linking modules. This is often a linker script. | ||
947 | From commandline LDFLAGS_MODULE shall be used (see kbuild.txt). | ||
936 | 948 | ||
937 | --- 6.2 Add prerequisites to archprepare: | 949 | --- 6.2 Add prerequisites to archprepare: |
938 | 950 | ||