Search notes:

scripts/config

scripts/config allows to manipulate options in a .config file from the command line.
$ cd $LINUX_SRC_ROOT

$./scripts/config --set-val CONFIG_OPTION    y
$./scripts/config --enable  CONFIG_BRIDGE
$./scripts/config --enable  CONFIG_MODULES
$./scripts/config --disable CONFIG_X25
$./scripts/config --module  CONFIG_NFT

#
#  Apply Kconfig dependencies to modified .config:
#
$ make oldconfig

Usage

$ config options command ...

commands

--enable -e option Enable option
--disable -d option Disable option
--module -m option Turn option into a module
--set-str option "string" Set option to "string"
--set-val option value Set option to value
--undefine -u option Undefine option
--state -s option Print state of option (n, y, m, undef)
--enable-after -E beforeopt option Enable option directly after other option
--disable-after -D beforeopt option Disable option directly after other option
--module-after -M beforeopt option Turn option into module directly after other option
--refresh Undocumented because it ignores --file.
commands can be repeated multiple times

--state

--state shows the state of a given config option:
$ scripts/config --state USB
y

options:

--file config-file   .config file to change (default .config)
--keep-case|-k       Keep next symbols' case (dont' upper-case it)

Misc

config doesn't check the validity of the .config file. This is done at next make time.
By default, config will upper-case the given symbol. Use --keep-case to keep the case of all following symbols unchanged.
config uses CONFIG_ as the default symbol prefix. Set the environment variable CONFIG_ to the prefix to use. Eg.: CONFIG_="FOO_" config …

See also

Other scripts
Linux kernel compilation

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/Linux/ke...', 1738279069, '3.144.30.14', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Linux/kernel/source/scripts/config(101): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78