Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 1 | ====== |
| 2 | Kbuild |
| 3 | ====== |
| 4 | |
| 5 | |
Michal Marek | bc081dd | 2009-12-07 16:38:33 +0100 | [diff] [blame] | 6 | Output files |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 7 | ============ |
Michal Marek | bc081dd | 2009-12-07 16:38:33 +0100 | [diff] [blame] | 8 | |
| 9 | modules.order |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 10 | ------------- |
Michal Marek | bc081dd | 2009-12-07 16:38:33 +0100 | [diff] [blame] | 11 | This file records the order in which modules appear in Makefiles. This |
| 12 | is used by modprobe to deterministically resolve aliases that match |
| 13 | multiple modules. |
| 14 | |
| 15 | modules.builtin |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 16 | --------------- |
Michal Marek | bc081dd | 2009-12-07 16:38:33 +0100 | [diff] [blame] | 17 | This file lists all modules that are built into the kernel. This is used |
| 18 | by modprobe to not fail when trying to load something builtin. |
| 19 | |
Alexey Gladkov | 898490c | 2019-04-29 18:11:14 +0200 | [diff] [blame] | 20 | modules.builtin.modinfo |
Mauro Carvalho Chehab | 1688694 | 2019-07-09 13:25:51 -0300 | [diff] [blame] | 21 | ----------------------- |
Alexey Gladkov | 898490c | 2019-04-29 18:11:14 +0200 | [diff] [blame] | 22 | This file contains modinfo from all modules that are built into the kernel. |
| 23 | Unlike modinfo of a separate module, all fields are prefixed with module name. |
| 24 | |
Michal Marek | bc081dd | 2009-12-07 16:38:33 +0100 | [diff] [blame] | 25 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 26 | Environment variables |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 27 | ===================== |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 28 | |
| 29 | KCPPFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 30 | --------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 31 | Additional options to pass when preprocessing. The preprocessing options |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 32 | will be used in all cases where kbuild does preprocessing including |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 33 | building C files and assembler files. |
| 34 | |
| 35 | KAFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 36 | ------- |
Sam Ravnborg | 6588169 | 2010-07-28 17:33:09 +0200 | [diff] [blame] | 37 | Additional options to the assembler (for built-in and modules). |
| 38 | |
| 39 | AFLAGS_MODULE |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 40 | ------------- |
Masahiro Yamada | 5ef8726 | 2019-07-13 11:45:58 +0900 | [diff] [blame] | 41 | Additional assembler options for modules. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 42 | |
Sam Ravnborg | 80c00ba | 2010-07-28 19:11:27 +0200 | [diff] [blame] | 43 | AFLAGS_KERNEL |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 44 | ------------- |
Masahiro Yamada | 5ef8726 | 2019-07-13 11:45:58 +0900 | [diff] [blame] | 45 | Additional assembler options for built-in. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 46 | |
| 47 | KCFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 48 | ------- |
Sam Ravnborg | 6588169 | 2010-07-28 17:33:09 +0200 | [diff] [blame] | 49 | Additional options to the C compiler (for built-in and modules). |
| 50 | |
Sam Ravnborg | 80c00ba | 2010-07-28 19:11:27 +0200 | [diff] [blame] | 51 | CFLAGS_KERNEL |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 52 | ------------- |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 53 | Additional options for $(CC) when used to compile |
Sam Ravnborg | 80c00ba | 2010-07-28 19:11:27 +0200 | [diff] [blame] | 54 | code that is compiled as built-in. |
| 55 | |
Sam Ravnborg | 6588169 | 2010-07-28 17:33:09 +0200 | [diff] [blame] | 56 | CFLAGS_MODULE |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 57 | ------------- |
Lucas De Marchi | 25985ed | 2011-03-30 22:57:33 -0300 | [diff] [blame] | 58 | Additional module specific options to use for $(CC). |
Sam Ravnborg | 6588169 | 2010-07-28 17:33:09 +0200 | [diff] [blame] | 59 | |
| 60 | LDFLAGS_MODULE |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 61 | -------------- |
Sam Ravnborg | 6588169 | 2010-07-28 17:33:09 +0200 | [diff] [blame] | 62 | Additional options used for $(LD) when linking modules. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 63 | |
Laura Abbott | f92d19e | 2018-07-09 17:46:02 -0700 | [diff] [blame] | 64 | HOSTCFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 65 | ---------- |
Laura Abbott | f92d19e | 2018-07-09 17:46:02 -0700 | [diff] [blame] | 66 | Additional flags to be passed to $(HOSTCC) when building host programs. |
| 67 | |
| 68 | HOSTCXXFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 69 | ------------ |
Laura Abbott | f92d19e | 2018-07-09 17:46:02 -0700 | [diff] [blame] | 70 | Additional flags to be passed to $(HOSTCXX) when building host programs. |
| 71 | |
| 72 | HOSTLDFLAGS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 73 | ----------- |
Laura Abbott | f92d19e | 2018-07-09 17:46:02 -0700 | [diff] [blame] | 74 | Additional flags to be passed when linking host programs. |
| 75 | |
| 76 | HOSTLDLIBS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 77 | ---------- |
Laura Abbott | f92d19e | 2018-07-09 17:46:02 -0700 | [diff] [blame] | 78 | Additional libraries to link against when building host programs. |
| 79 | |
Randy Dunlap | 00e0793 | 2018-07-04 19:47:39 -0700 | [diff] [blame] | 80 | KBUILD_KCONFIG |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 81 | -------------- |
Randy Dunlap | 00e0793 | 2018-07-04 19:47:39 -0700 | [diff] [blame] | 82 | Set the top-level Kconfig file to the value of this environment |
| 83 | variable. The default name is "Kconfig". |
| 84 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 85 | KBUILD_VERBOSE |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 86 | -------------- |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 87 | Set the kbuild verbosity. Can be assigned same values as "V=...". |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 88 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 89 | See make help for the full list. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 90 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 91 | Setting "V=..." takes precedence over KBUILD_VERBOSE. |
| 92 | |
| 93 | KBUILD_EXTMOD |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 94 | ------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 95 | Set the directory to look for the kernel source when building external |
| 96 | modules. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 97 | |
Masahiro Yamada | 0126be3 | 2018-11-21 00:04:18 +0900 | [diff] [blame] | 98 | Setting "M=..." takes precedence over KBUILD_EXTMOD. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 99 | |
| 100 | KBUILD_OUTPUT |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 101 | ------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 102 | Specify the output directory when building the kernel. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 103 | |
Nicolas Kaiser | c95940f | 2010-08-05 11:23:11 -0700 | [diff] [blame] | 104 | The output directory can also be specified using "O=...". |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 105 | |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 106 | Setting "O=..." takes precedence over KBUILD_OUTPUT. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 107 | |
Asbjoern Sloth Toennesen | 55f88ec | 2010-12-12 17:39:40 +0000 | [diff] [blame] | 108 | KBUILD_DEBARCH |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 109 | -------------- |
Asbjoern Sloth Toennesen | 55f88ec | 2010-12-12 17:39:40 +0000 | [diff] [blame] | 110 | For the deb-pkg target, allows overriding the normal heuristics deployed by |
| 111 | deb-pkg. Normally deb-pkg attempts to guess the right architecture based on |
| 112 | the UTS_MACHINE variable, and on some architectures also the kernel config. |
| 113 | The value of KBUILD_DEBARCH is assumed (not checked) to be a valid Debian |
| 114 | architecture. |
| 115 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 116 | ARCH |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 117 | ---- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 118 | Set ARCH to the architecture to be built. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 119 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 120 | In most cases the name of the architecture is the same as the |
| 121 | directory name found in the arch/ directory. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 122 | |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 123 | But some architectures such as x86 and sparc have aliases. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 124 | |
| 125 | - x86: i386 for 32 bit, x86_64 for 64 bit |
| 126 | - sh: sh for 32 bit, sh64 for 64 bit |
| 127 | - sparc: sparc32 for 32 bit, sparc64 for 64 bit |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 128 | |
| 129 | CROSS_COMPILE |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 130 | ------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 131 | Specify an optional fixed part of the binutils filename. |
| 132 | CROSS_COMPILE can be a part of the filename or the full path. |
| 133 | |
Kirill Smelkov | e8d400a | 2010-02-17 11:45:33 +0300 | [diff] [blame] | 134 | CROSS_COMPILE is also used for ccache in some setups. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 135 | |
| 136 | CF |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 137 | -- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 138 | Additional options for sparse. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 139 | |
| 140 | CF is often used on the command-line like this:: |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 141 | |
| 142 | make CF=-Wbitwise C=2 |
| 143 | |
| 144 | INSTALL_PATH |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 145 | ------------ |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 146 | INSTALL_PATH specifies where to place the updated kernel and system map |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 147 | images. Default is /boot, but you can set it to other values. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 148 | |
Sam Ravnborg | caa27b6 | 2009-07-20 21:37:11 +0200 | [diff] [blame] | 149 | INSTALLKERNEL |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 150 | ------------- |
Sam Ravnborg | caa27b6 | 2009-07-20 21:37:11 +0200 | [diff] [blame] | 151 | Install script called when using "make install". |
| 152 | The default name is "installkernel". |
| 153 | |
| 154 | The script will be called with the following arguments: |
Mauro Carvalho Chehab | 1688694 | 2019-07-09 13:25:51 -0300 | [diff] [blame] | 155 | |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 156 | - $1 - kernel version |
| 157 | - $2 - kernel image file |
| 158 | - $3 - kernel map file |
| 159 | - $4 - default install path (use root directory if blank) |
Sam Ravnborg | caa27b6 | 2009-07-20 21:37:11 +0200 | [diff] [blame] | 160 | |
Nicolas Kaiser | c95940f | 2010-08-05 11:23:11 -0700 | [diff] [blame] | 161 | The implementation of "make install" is architecture specific |
Sam Ravnborg | caa27b6 | 2009-07-20 21:37:11 +0200 | [diff] [blame] | 162 | and it may differ from the above. |
| 163 | |
| 164 | INSTALLKERNEL is provided to enable the possibility to |
| 165 | specify a custom installer when cross compiling a kernel. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 166 | |
| 167 | MODLIB |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 168 | ------ |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 169 | Specify where to install modules. |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 170 | The default value is:: |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 171 | |
| 172 | $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE) |
| 173 | |
| 174 | The value can be overridden in which case the default value is ignored. |
| 175 | |
| 176 | INSTALL_MOD_PATH |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 177 | ---------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 178 | INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory |
| 179 | relocations required by build roots. This is not defined in the |
| 180 | makefile but the argument can be passed to make if needed. |
| 181 | |
| 182 | INSTALL_MOD_STRIP |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 183 | ----------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 184 | INSTALL_MOD_STRIP, if defined, will cause modules to be |
| 185 | stripped after they are installed. If INSTALL_MOD_STRIP is '1', then |
| 186 | the default option --strip-debug will be used. Otherwise, |
Gilles Espinasse | 177b241 | 2011-01-09 08:59:49 +0100 | [diff] [blame] | 187 | INSTALL_MOD_STRIP value will be used as the options to the strip command. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 188 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 189 | INSTALL_HDR_PATH |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 190 | ---------------- |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 191 | INSTALL_HDR_PATH specifies where to install user space headers when |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 192 | executing "make headers_*". |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 193 | |
| 194 | The default value is:: |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 195 | |
| 196 | $(objtree)/usr |
| 197 | |
| 198 | $(objtree) is the directory where output files are saved. |
| 199 | The output directory is often set using "O=..." on the commandline. |
| 200 | |
| 201 | The value can be overridden in which case the default value is ignored. |
| 202 | |
Linus Torvalds | 39ceda5 | 2019-07-12 16:03:16 -0700 | [diff] [blame] | 203 | KBUILD_ABS_SRCTREE |
| 204 | -------------------------------------------------- |
| 205 | Kbuild uses a relative path to point to the tree when possible. For instance, |
| 206 | when building in the source tree, the source tree path is '.' |
| 207 | |
| 208 | Setting this flag requests Kbuild to use absolute path to the source tree. |
| 209 | There are some useful cases to do so, like when generating tag files with |
| 210 | absolute path entries etc. |
| 211 | |
David Woodhouse | af1eb29 | 2015-07-20 21:16:28 +0100 | [diff] [blame] | 212 | KBUILD_SIGN_PIN |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 213 | --------------- |
David Woodhouse | af1eb29 | 2015-07-20 21:16:28 +0100 | [diff] [blame] | 214 | This variable allows a passphrase or PIN to be passed to the sign-file |
| 215 | utility when signing kernel modules, if the private key requires such. |
| 216 | |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 217 | KBUILD_MODPOST_WARN |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 218 | ------------------- |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 219 | KBUILD_MODPOST_WARN can be set to avoid errors in case of undefined |
| 220 | symbols in the final module linking stage. It changes such errors |
| 221 | into warnings. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 222 | |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 223 | KBUILD_MODPOST_NOFINAL |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 224 | ---------------------- |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 225 | KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules. |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 226 | This is solely useful to speed up test compiles. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 227 | |
| 228 | KBUILD_EXTRA_SYMBOLS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 229 | -------------------- |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 230 | For modules that use symbols from other modules. |
Sam Ravnborg | acc08b5 | 2008-12-29 13:45:52 +0100 | [diff] [blame] | 231 | See more details in modules.txt. |
Jike Song | 4f62824 | 2009-01-05 14:57:03 +0800 | [diff] [blame] | 232 | |
| 233 | ALLSOURCE_ARCHS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 234 | --------------- |
Randy Dunlap | df291fa | 2009-01-08 10:59:34 -0800 | [diff] [blame] | 235 | For tags/TAGS/cscope targets, you can specify more than one arch |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 236 | to be included in the databases, separated by blank space. E.g.:: |
Jike Song | 4f62824 | 2009-01-05 14:57:03 +0800 | [diff] [blame] | 237 | |
| 238 | $ make ALLSOURCE_ARCHS="x86 mips arm" tags |
John Kacur | bc75cc6 | 2010-03-02 16:57:52 +0100 | [diff] [blame] | 239 | |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 240 | To get all available archs you can also specify all. E.g.:: |
John Kacur | bc75cc6 | 2010-03-02 16:57:52 +0100 | [diff] [blame] | 241 | |
| 242 | $ make ALLSOURCE_ARCHS=all tags |
Borislav Petkov | 4a5838a | 2011-03-01 09:35:29 +0100 | [diff] [blame] | 243 | |
| 244 | KBUILD_ENABLE_EXTRA_GCC_CHECKS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 245 | ------------------------------ |
Borislav Petkov | 4a5838a | 2011-03-01 09:35:29 +0100 | [diff] [blame] | 246 | If enabled over the make command line with "W=1", it turns on additional |
| 247 | gcc -W... options for more extensive build-time checking. |
Michal Marek | 53e6892 | 2011-04-05 14:32:30 +0200 | [diff] [blame] | 248 | |
| 249 | KBUILD_BUILD_TIMESTAMP |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 250 | ---------------------- |
Michal Marek | 53e6892 | 2011-04-05 14:32:30 +0200 | [diff] [blame] | 251 | Setting this to a date string overrides the timestamp used in the |
Michal Marek | a8b8017 | 2011-03-31 23:16:42 +0200 | [diff] [blame] | 252 | UTS_VERSION definition (uname -v in the running kernel). The value has to |
| 253 | be a string that can be passed to date -d. The default value |
Michal Marek | 53e6892 | 2011-04-05 14:32:30 +0200 | [diff] [blame] | 254 | is the output of the date command at one point during build. |
| 255 | |
| 256 | KBUILD_BUILD_USER, KBUILD_BUILD_HOST |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 257 | ------------------------------------ |
Michal Marek | 53e6892 | 2011-04-05 14:32:30 +0200 | [diff] [blame] | 258 | These two variables allow to override the user@host string displayed during |
| 259 | boot and in /proc/version. The default value is the output of the commands |
| 260 | whoami and host, respectively. |
Sam Ravnborg | d27579a | 2012-05-05 10:18:42 +0200 | [diff] [blame] | 261 | |
| 262 | KBUILD_LDS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 263 | ---------- |
Sam Ravnborg | d27579a | 2012-05-05 10:18:42 +0200 | [diff] [blame] | 264 | The linker script with full path. Assigned by the top-level Makefile. |
| 265 | |
Masahiro Yamada | d151e97 | 2019-01-17 09:10:04 +0900 | [diff] [blame] | 266 | KBUILD_VMLINUX_OBJS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 267 | ------------------- |
Masahiro Yamada | d151e97 | 2019-01-17 09:10:04 +0900 | [diff] [blame] | 268 | All object files for vmlinux. They are linked to vmlinux in the same |
| 269 | order as listed in KBUILD_VMLINUX_OBJS. |
Nicholas Piggin | 3a166fc | 2017-06-20 01:52:05 +1000 | [diff] [blame] | 270 | |
| 271 | KBUILD_VMLINUX_LIBS |
Mauro Carvalho Chehab | cd238ef | 2019-06-12 14:52:48 -0300 | [diff] [blame] | 272 | ------------------- |
Masahiro Yamada | d151e97 | 2019-01-17 09:10:04 +0900 | [diff] [blame] | 273 | All .a "lib" files for vmlinux. KBUILD_VMLINUX_OBJS and KBUILD_VMLINUX_LIBS |
| 274 | together specify all the object files used to link vmlinux. |