Linux Kernel Configuration System

make Configuration Targets

https://docs.kernel.org/admin-guide/README.html#configuring-the-kernel

https://docs.kernel.org/kbuild/kconfig.html

The former link contains a more detailed explanation.

config          - Update current config utilising a line-oriented program
nconfig         - Update current config utilising a ncurses menu based program
menuconfig      - Update current config utilising a menu based program
xconfig         - Update current config utilising a Qt based front-end
gconfig         - Update current config utilising a GTK+ based front-end

===============================================================================

oldconfig       - Update current config utilising a provided .config as base
                - Default all questions based on the contents of
                  your existing ./.config file and asking about
                  new config symbols.

olddefconfig    - Same as oldconfig but sets new symbols to their
                  default value without prompting
                - Like above, but sets new symbols to their default
                  values without prompting.

===============================================================================

localmodconfig  - Update current config disabling modules not loaded
                  except those preserved by LMC_KEEP environment variable
localyesconfig  - Update current config converting local mods to core
                  except those preserved by LMC_KEEP environment variable

defconfig       - New config with default from ARCH supplied defconfig
savedefconfig   - Save current config as ./defconfig (minimal config)

allnoconfig     - New config where all options are answered with no
allyesconfig    - New config where all options are accepted with yes
allmodconfig    - New config selecting modules when possible
alldefconfig    - New config with all symbols set to default
randconfig      - New config with random answer to all options

yes2modconfig   - Change answers from yes to mod if possible
mod2yesconfig   - Change answers from mod to yes if possible
mod2noconfig    - Change answers from mod to no if possible

listnewconfig   - List new options
helpnewconfig   - List new options and help text

tinyconfig      - Configure the tiniest possible kernel

testconfig      - Run Kconfig unit tests (requires python3 and pytest)

Kconfig Language

.config and include/generated/autoconf.h

entry 数量是一样的,内容也是一样的,只是呈现形式不一样。