diff options
Diffstat (limited to 'Documentation/kbuild/kbuild.txt')
-rw-r--r-- | Documentation/kbuild/kbuild.txt | 34 |
1 files changed, 28 insertions, 6 deletions
diff --git a/Documentation/kbuild/kbuild.txt b/Documentation/kbuild/kbuild.txt index 634c625da8ce..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 | -------------------------------------------------- |
@@ -40,15 +62,15 @@ Set the directory to look for the kernel source when building external | |||
40 | modules. | 62 | modules. |
41 | The directory can be specified in several ways: | 63 | The directory can be specified in several ways: |
42 | 1) Use "M=..." on the command line | 64 | 1) Use "M=..." on the command line |
43 | 2) Environmnet variable KBUILD_EXTMOD | 65 | 2) Environment variable KBUILD_EXTMOD |
44 | 3) Environmnet variable SUBDIRS | 66 | 3) Environment variable SUBDIRS |
45 | The possibilities are listed in the order they take precedence. | 67 | The possibilities are listed in the order they take precedence. |
46 | Using "M=..." will always override the others. | 68 | Using "M=..." will always override the others. |
47 | 69 | ||
48 | KBUILD_OUTPUT | 70 | KBUILD_OUTPUT |
49 | -------------------------------------------------- | 71 | -------------------------------------------------- |
50 | Specify the output directory when building the kernel. | 72 | Specify the output directory when building the kernel. |
51 | The output directory can also be specificed using "O=...". | 73 | The output directory can also be specified using "O=...". |
52 | Setting "O=..." takes precedence over KBUILD_OUTPUT. | 74 | Setting "O=..." takes precedence over KBUILD_OUTPUT. |
53 | 75 | ||
54 | ARCH | 76 | ARCH |
@@ -90,7 +112,7 @@ The script will be called with the following arguments: | |||
90 | $3 - kernel map file | 112 | $3 - kernel map file |
91 | $4 - default install path (use root directory if blank) | 113 | $4 - default install path (use root directory if blank) |
92 | 114 | ||
93 | The implmentation of "make install" is architecture specific | 115 | The implementation of "make install" is architecture specific |
94 | and it may differ from the above. | 116 | and it may differ from the above. |
95 | 117 | ||
96 | INSTALLKERNEL is provided to enable the possibility to | 118 | INSTALLKERNEL is provided to enable the possibility to |