This file is an
ASCII file that stores the values of the
config symbols (which determine, among others, which
drivers are built, and if so if they're built into the kernel or as loadable module).
Creation of the .config file
This file is not part of the git source tree, it must be created before
compiling the kernel, for example with
$ make menuconfig
Alternatively, the default configuration can be produced with
$ make defconfig
.config
belongs to the set of files that is deleted with
make mrproper
.
Using a non-default config file
When building the Kernel, a non-default config file can be specified using the environment variable KCONFIG_CONFIG
:
$ make KCONFIG_CONFIG=config-lean
See also
The environment variable KCONFIG_CONFIG
specifies the path to an alternate kernel config file (if set).
The environment variable KCONFIG_DEFCONFIG_LIST
specifies a list of config files which can be used as basis to create .config
if .config
does not exist.
The elements in this list are separated by spaces.
The environment variable KCONFIG_OVERWRITECONFIG
can be set to prevent Kconfig from breaking symlinked .config
files.
scripts/config
allows to manipulate options in a
.config
file from the command line.