KCONFIG-TWEAK(1)
KCONFIG-TWEAK(1) π
okay so bestie, welcome to the kconfig-tweak man page β yes that's the manual name, we're keeping it, it's iconic β¨ β and she's here to walk you through the whole standalone implementation of the Linux Kconfig parser situation. no cap, it's giving "I read the kernel docs so you don't have to" π
β¨ SYNOPSIS β¨
kconfig-tweak [options] <KConfig_file>
literally that's it. options, then your KConfig file. slay.
πΈ DESCRIPTION πΈ
the kconfig toolkit is out here supporting the Kconfig language, bestie β it implements the parser and the configuration support that goes with the KConfig files, and it respects the Linux kernel KConfig convention the whole way through. periodt. π
at configuration time π:
kconfig-mconfβ this one is based on ncurses (menuconfig)kconfig-confβ this one is based on dialog (config)kconfig-gconfβ and this one is based on GTK+ (gconfig)
associated tools π§°:
kconfig-diffβ displays symbols diff between.configfiles
π OPTIONS π
--silentoldconfigβ only forkconfig-conf; reloads a given.configand regenerates the header and command files accordingly. main character energy fr.--allnoconfigβ sets all boolean configuration to no.--allyesconfigβ sets all boolean configuration to yes.--randconfigβ generates a random configuration. chaos, but make it config π²
π¦ ENVIRONMENT π¦
environment variables for '*config'
KCONFIG_CONFIGβ this environment variable can be used to specify a default kernel config file name, so you can override the default name of".config".KCONFIG_OVERWRITECONFIGβ if you setKCONFIG_OVERWRITECONFIGin the environment, Kconfig will not break symlinks when.configis a symlink to somewhere else. bestie protect the symlinks πCONFIG_β if you setCONFIG_in the environment, Kconfig will prefix all symbols with its value when saving the configuration, instead of using the default,"CONFIG_".
environment variables for '{allyes/allmod/allno/rand}config'
KCONFIG_ALLCONFIGβ theallyesconfig/allmodconfig/allnoconfig/randconfigvariants can also use the environment variableKCONFIG_ALLCONFIGas a flag or a filename that contains config symbols that the user requires to be set to a specific value. ifKCONFIG_ALLCONFIGis used without a filename whereKCONFIG_ALLCONFIG == ""orKCONFIG_ALLCONFIG == "1",make *configchecks for a file named"all{yes/mod/no/def/random}.config"(corresponding to the*configcommand that was used) for symbol values that are to be forced. if this file is not found, it checks for a file named"all.config"to contain forced values.
this enables you to create "miniature" config (miniconfig) or custom config files containing just the config symbols that you are interested in. then the kernel config system generates the full .config file, including symbols of your miniconfig file.
this 'KCONFIG_ALLCONFIG' file is a config file which contains (usually a subset of all) preset config symbols. these variable settings are still subject to normal dependency checks. no skipping the vibe check π«Ά
Examples:
KCONFIG_ALLCONFIG=custom-notebook.config make allnoconfig or
KCONFIG_ALLCONFIG=mini.config make allnoconfig or
make KCONFIG_ALLCONFIG=mini.config allnoconfig
these examples will disable most options (allnoconfig) but enable or disable the options that are explicitly listed in the specified mini-config files.
environment variables for 'randconfig'
KCONFIG_SEEDβ you can set this to the integer value used to seed the RNG, if you want to somehow debug the behaviour of the kconfig parser/frontends. if not set, the current time will be used.KCONFIG_PROBABILITYβ this variable can be used to skew the probabilities. see/usr/share/doc/kconfig-frontends/kconfig.txt.gz. go read it, iykyk π
environment variables for 'silentoldconfig'
KCONFIG_NOSILENTUPDATEβ if this variable has a non-blank value, it prevents silent kernel config updates (requires explicit updates). no sneaky updates allowed πKCONFIG_AUTOCONFIGβ this environment variable can be set to specify the path name of the"auto.conf"file. its default value is"include/config/auto.conf".KCONFIG_TRISTATEβ this environment variable can be set to specify the path name of the"tristate.conf"file. its default value is"include/config/tristate.conf".KCONFIG_AUTOHEADERβ this environment variable can be set to specify the path name of the"autoconf.h"(header) file. its default value is"include/generated/autoconf.h".
π HISTORY π
June 2017, man page originally compiled by Philippe Thierry (phil at reseau-libre dot com)
so yeah, that's the whole page. source/version vibes: Philippe Thierry β kconfig-tweak Man Page β KCONFIG-TWEAK(1), and the date on this beauty is October 2017 πβ¨ obsessed, honestly. now go configure something, bestie π
π¦ where this page comes from
- debian bookworm: kconfig-frontends 4.11.0.1+dfsg-6 Β· GPL-2.0-only
- debian bookworm: kconfig-frontends-nox 4.11.0.1+dfsg-6 Β· GPL-2.0-only
- debian trixie: kconfig-frontends 4.11.0.1+dfsg-6+b1 Β· GPL-2.0-only
- debian trixie: kconfig-frontends-nox 4.11.0.1+dfsg-6+b1 Β· GPL-2.0-only
- ubuntu jammy: kconfig-frontends 4.11.0.1+dfsg-6 Β· GPL-2.0-only
- ubuntu jammy: kconfig-frontends-nox 4.11.0.1+dfsg-6 Β· GPL-2.0-only
- ubuntu noble: kconfig-frontends 4.11.0.1+dfsg-6build2 Β· GPL-2.0-only
- ubuntu noble: kconfig-frontends-nox 4.11.0.1+dfsg-6build2 Β· GPL-2.0-only
- ubuntu questing: kconfig-frontends 4.11.0.1+dfsg-6build2
- ubuntu questing: kconfig-frontends-nox 4.11.0.1+dfsg-6build2
- ubuntu resolute: kconfig-frontends 4.11.0.1+dfsg-6build3 Β· GPL-2.0-only
- ubuntu resolute: kconfig-frontends-nox 4.11.0.1+dfsg-6build3 Β· GPL-2.0-only
- ubuntu stonking: kconfig-frontends 4.11.0.1+dfsg-6build3 Β· GPL-2.0-only
- ubuntu stonking: kconfig-frontends-nox 4.11.0.1+dfsg-6build3 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms