diff options
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
| -rw-r--r-- | Documentation/kbuild/makefiles.txt | 27 |
1 files changed, 22 insertions, 5 deletions
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 | ||
