11 This file records the order in which modules appear in Makefiles. This
12 is used by modprobe to deterministically resolve aliases that match
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.
20 modules.builtin.modinfo
21 -----------------------
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.
31 Additional options to pass when preprocessing. The preprocessing options
32 will be used in all cases where kbuild does preprocessing including
33 building C files and assembler files.
37 Additional options to the assembler (for built-in and modules).
41 Additional assembler options for modules.
45 Additional assembler options for built-in.
49 Additional options to the C compiler (for built-in and modules).
53 Additional options to the Rust compiler (for built-in and modules).
57 Additional options for $(CC) when used to compile
58 code that is compiled as built-in.
62 Additional module specific options to use for $(CC).
66 Additional options for $(RUSTC) when used to compile
67 code that is compiled as built-in.
71 Additional module specific options to use for $(RUSTC).
75 Additional options used for $(LD) when linking modules.
79 Additional flags to be passed to $(HOSTCC) when building host programs.
83 Additional flags to be passed to $(HOSTCXX) when building host programs.
87 Additional flags to be passed to $(HOSTRUSTC) when building host programs.
91 Additional flags to be passed when linking host programs.
95 Additional libraries to link against when building host programs.
101 Additional options used for $(CC) when compiling userprogs.
105 Additional options used for $(LD) when linking userprogs. userprogs are linked
106 with CC, so $(USERLDFLAGS) should include "-Wl," prefix as applicable.
110 Set the top-level Kconfig file to the value of this environment
111 variable. The default name is "Kconfig".
115 Set the kbuild verbosity. Can be assigned same values as "V=...".
117 See make help for the full list.
119 Setting "V=..." takes precedence over KBUILD_VERBOSE.
123 Set the directory to look for the kernel source when building external
126 Setting "M=..." takes precedence over KBUILD_EXTMOD.
130 Specify the output directory when building the kernel.
132 The output directory can also be specified using "O=...".
134 Setting "O=..." takes precedence over KBUILD_OUTPUT.
138 Specify the extra build checks. The same value can be assigned by passing
139 W=... from the command line.
141 See `make help` for the list of the supported values.
143 Setting "W=..." takes precedence over KBUILD_EXTRA_WARN.
147 For the deb-pkg target, allows overriding the normal heuristics deployed by
148 deb-pkg. Normally deb-pkg attempts to guess the right architecture based on
149 the UTS_MACHINE variable, and on some architectures also the kernel config.
150 The value of KBUILD_DEBARCH is assumed (not checked) to be a valid Debian
155 Specify extra (warning/error) flags for kernel-doc checks during the build,
156 see scripts/kernel-doc for which flags are supported. Note that this doesn't
157 (currently) apply to documentation builds.
161 Set ARCH to the architecture to be built.
163 In most cases the name of the architecture is the same as the
164 directory name found in the arch/ directory.
166 But some architectures such as x86 and sparc have aliases.
168 - x86: i386 for 32 bit, x86_64 for 64 bit
169 - parisc: parisc64 for 64 bit
170 - sparc: sparc32 for 32 bit, sparc64 for 64 bit
174 Specify an optional fixed part of the binutils filename.
175 CROSS_COMPILE can be a part of the filename or the full path.
177 CROSS_COMPILE is also used for ccache in some setups.
181 Additional options for sparse.
183 CF is often used on the command-line like this::
185 make CF=-Wbitwise C=2
189 INSTALL_PATH specifies where to place the updated kernel and system map
190 images. Default is /boot, but you can set it to other values.
194 Install script called when using "make install".
195 The default name is "installkernel".
197 The script will be called with the following arguments:
199 - $1 - kernel version
200 - $2 - kernel image file
201 - $3 - kernel map file
202 - $4 - default install path (use root directory if blank)
204 The implementation of "make install" is architecture specific
205 and it may differ from the above.
207 INSTALLKERNEL is provided to enable the possibility to
208 specify a custom installer when cross compiling a kernel.
212 Specify where to install modules.
213 The default value is::
215 $(INSTALL_MOD_PATH)/lib/modules/$(KERNELRELEASE)
217 The value can be overridden in which case the default value is ignored.
221 INSTALL_MOD_PATH specifies a prefix to MODLIB for module directory
222 relocations required by build roots. This is not defined in the
223 makefile but the argument can be passed to make if needed.
227 INSTALL_MOD_STRIP, if defined, will cause modules to be
228 stripped after they are installed. If INSTALL_MOD_STRIP is '1', then
229 the default option --strip-debug will be used. Otherwise,
230 INSTALL_MOD_STRIP value will be used as the options to the strip command.
234 INSTALL_HDR_PATH specifies where to install user space headers when
235 executing "make headers_*".
237 The default value is::
241 $(objtree) is the directory where output files are saved.
242 The output directory is often set using "O=..." on the commandline.
244 The value can be overridden in which case the default value is ignored.
247 --------------------------------------------------
248 Kbuild uses a relative path to point to the tree when possible. For instance,
249 when building in the source tree, the source tree path is '.'
251 Setting this flag requests Kbuild to use absolute path to the source tree.
252 There are some useful cases to do so, like when generating tag files with
253 absolute path entries etc.
257 This variable allows a passphrase or PIN to be passed to the sign-file
258 utility when signing kernel modules, if the private key requires such.
262 KBUILD_MODPOST_WARN can be set to avoid errors in case of undefined
263 symbols in the final module linking stage. It changes such errors
266 KBUILD_MODPOST_NOFINAL
267 ----------------------
268 KBUILD_MODPOST_NOFINAL can be set to skip the final link of modules.
269 This is solely useful to speed up test compiles.
273 For modules that use symbols from other modules.
274 See more details in modules.rst.
278 For tags/TAGS/cscope targets, you can specify more than one arch
279 to be included in the databases, separated by blank space. E.g.::
281 $ make ALLSOURCE_ARCHS="x86 mips arm" tags
283 To get all available archs you can also specify all. E.g.::
285 $ make ALLSOURCE_ARCHS=all tags
289 For tags/TAGS/cscope targets, you can choose which directories won't
290 be included in the databases, separated by blank space. E.g.::
292 $ make IGNORE_DIRS="drivers/gpu/drm/radeon tools" cscope
294 KBUILD_BUILD_TIMESTAMP
295 ----------------------
296 Setting this to a date string overrides the timestamp used in the
297 UTS_VERSION definition (uname -v in the running kernel). The value has to
298 be a string that can be passed to date -d. The default value
299 is the output of the date command at one point during build.
301 KBUILD_BUILD_USER, KBUILD_BUILD_HOST
302 ------------------------------------
303 These two variables allow to override the user@host string displayed during
304 boot and in /proc/version. The default value is the output of the commands
305 whoami and host, respectively.
309 If this variable is set to 1, Kbuild will use Clang and LLVM utilities instead
310 of GCC and GNU binutils to build the kernel.