configk(1)

πŸ“¦ version 0.3, in fedora 43, fedora 44

✨ configk β€” bestie edition πŸ’–

okay so real talk, this page is from the General Commands Manual and the star of the show is configk (that's configk(1) if you're being fancy at a party). sit down, grab a snack, we're gonna edit kernel configs together πŸŽ€


🌸 NAME 🌸

configk β€” an easy way to edit kernel configuration files and templates. yes bestie, easy. it's giving "finally".


🌈 SYNOPSIS 🌈

configk [OPTIONS] <source-directory>

πŸ¦‹ DESCRIPTION πŸ¦‹

so the config-kernel program helps you edit kernel configuration files (.config) and template files. it recursively reads the Kconfig files from a given source directory and builds a tree structure of CONFIG options. that tree can be traversed to query an option's attributes, or to set/reset them. and it can also validate the kernel's .config file by checking an option's value and its dependencies. it's a whole vibe check for your config, no cap.

a typical CONFIG entry in a Kconfig file begins with a config keyword on a new line, and its attributes go on the following lines, indented by the tab (\t) character:

        config <OPTION_NAME>
        <\t>Attribute-1
        <\t>Attribute-2
          ...
        <\t>Attribute-n

you can query, enable, disable or toggle CONFIG options either via a command line switch or via an $EDITOR program. literally pick your fighter πŸ’…


πŸ’… OPTIONS πŸ’…

the configk program supports the following options, and yes, we're listing every single one, bestie:

  • -a, --srcarch <arch> β€” source architecture tree to read/follow, default: x86
  • -c, --check <file> β€” check configs against the source tree
  • -C, --config β€” show output as a config file
  • -d, --disable <option> β€” disable config option
  • -e, --enable <option>[=val] β€” enable config option with a given value
  • -E, --edit <file> β€” edit config file with an $EDITOR program, default: vi
  • -h, --help β€” show help
  • -s, --show <option> β€” show a config option entry
  • -t, --toggle <option> β€” toggle an option between y & m
  • -v, --version β€” show version
  • -V, --verbose β€” show verbose output

🧚 ENVIRONMENT 🧚

configk reads the following environment variables:

  • EDITOR β€” Editor program to use to open a file, default: vi
  • SRCARCH β€” Source architecture tree to read/follow, default: x86
  • TMPDIR β€” Directory where temporary files are created, default: /tmp

πŸ’€ BUG(s) πŸ’€

not me having to say this, but please open an issue at: https://github.com/pjps/config-kernel/issues


πŸ‘‘ SEE πŸ‘‘

https://www.kernel.org/doc/html/latest/kbuild/kconfig-language.html


πŸ’– AUTHOR πŸ’–

Prasad Pandit <pjp@fedoraproject.org> β€” icon behavior, honestly 🫢


and that's the whole page bestie, configk(1) out here in the General Commands Manual section, living its best life. go forth and toggle some options πŸ’œπŸŒΈβœ¨
πŸ“¦ where this page comes from