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