configk - Man Page

an easy way to edit kernel configuration files and templates

Synopsis

configk [Options] <source-directory>

Description

config-kernel program helps to edit kernel configuration (.config) and template files. It recursively reads the Kconfig files from a given source directory and builds a tree structure of CONFIG options. This tree can be traversed to query option's attributes or set/reset them. It can also be used to validate kernel's '.config' file by checking option's value and dependencies.

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

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

User can query, enable, disable or toggle CONFIG options via command line switch or an $EDITOR program.

Options

configk program supports following options

-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 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)

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>