aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/kbuild/makefiles.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation/kbuild/makefiles.txt')
-rw-r--r--Documentation/kbuild/makefiles.txt18
1 files changed, 15 insertions, 3 deletions
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