2019-06-13 01:52:48 +08:00
|
|
|
===================
|
|
|
|
Kconfig make config
|
|
|
|
===================
|
|
|
|
|
|
|
|
This file contains some assistance for using `make *config`.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
Use "make help" to list all of the possible configuration targets.
|
|
|
|
|
2018-07-05 06:49:56 +08:00
|
|
|
The xconfig ('qconf'), menuconfig ('mconf'), and nconfig ('nconf')
|
|
|
|
programs also have embedded help text. Be sure to check that for
|
|
|
|
navigation, search, and other general help text.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
General
|
2019-06-13 01:52:48 +08:00
|
|
|
-------
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
New kernel releases often introduce new config symbols. Often more
|
|
|
|
important, new kernel releases may rename config symbols. When
|
|
|
|
this happens, using a previously working .config file and running
|
|
|
|
"make oldconfig" won't necessarily produce a working new kernel
|
|
|
|
for you, so you may find that you need to see what NEW kernel
|
|
|
|
symbols have been introduced.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
To see a list of new config symbols, use::
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
cp user/some/old.config .config
|
2013-09-12 08:35:48 +08:00
|
|
|
make listnewconfig
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2013-09-12 08:35:48 +08:00
|
|
|
and the config program will list any new symbols, one per line.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Alternatively, you can use the brute force method::
|
2018-07-05 06:49:56 +08:00
|
|
|
|
|
|
|
make oldconfig
|
2012-03-31 04:37:02 +08:00
|
|
|
scripts/diffconfig .config.old .config | less
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
|
|
|
Environment variables for `*config`
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
KCONFIG_CONFIG
|
2019-06-13 01:52:48 +08:00
|
|
|
--------------
|
2009-05-18 07:36:47 +08:00
|
|
|
This environment variable can be used to specify a default kernel config
|
|
|
|
file name to override the default name of ".config".
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
KCONFIG_OVERWRITECONFIG
|
2019-06-13 01:52:48 +08:00
|
|
|
-----------------------
|
2009-05-18 07:36:47 +08:00
|
|
|
If you set KCONFIG_OVERWRITECONFIG in the environment, Kconfig will not
|
|
|
|
break symlinks when .config is a symlink to somewhere else.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
`CONFIG_`
|
|
|
|
---------
|
|
|
|
If you set `CONFIG_` in the environment, Kconfig will prefix all symbols
|
2012-12-20 02:17:00 +08:00
|
|
|
with its value when saving the configuration, instead of using the default,
|
2019-06-13 01:52:48 +08:00
|
|
|
`CONFIG_`.
|
|
|
|
|
|
|
|
----------------------------------------------------------------------
|
2012-12-20 02:17:00 +08:00
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
Environment variables for '{allyes/allmod/allno/rand}config'
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
KCONFIG_ALLCONFIG
|
2019-06-13 01:52:48 +08:00
|
|
|
-----------------
|
2008-03-01 06:21:53 +08:00
|
|
|
(partially based on lkml email from/by Rob Landley, re: miniconfig)
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
--------------------------------------------------
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2012-04-26 16:51:32 +08:00
|
|
|
The allyesconfig/allmodconfig/allnoconfig/randconfig variants can also
|
|
|
|
use the environment variable KCONFIG_ALLCONFIG as a flag or a filename
|
|
|
|
that contains config symbols that the user requires to be set to a
|
|
|
|
specific value. If KCONFIG_ALLCONFIG is used without a filename where
|
2019-06-13 01:52:48 +08:00
|
|
|
KCONFIG_ALLCONFIG == "" or KCONFIG_ALLCONFIG == "1", `make *config`
|
2012-04-26 16:51:32 +08:00
|
|
|
checks for a file named "all{yes/mod/no/def/random}.config"
|
2019-06-13 01:52:48 +08:00
|
|
|
(corresponding to the `*config` command that was used) for symbol values
|
2012-04-26 16:51:32 +08:00
|
|
|
that are to be forced. If this file is not found, it checks for a
|
|
|
|
file named "all.config" to contain forced values.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
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,
|
2009-05-18 07:36:47 +08:00
|
|
|
including symbols of your miniconfig file.
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
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.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Examples::
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
KCONFIG_ALLCONFIG=custom-notebook.config make allnoconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
|
|
|
|
or::
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
KCONFIG_ALLCONFIG=mini.config make allnoconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
|
|
|
|
or::
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
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.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2013-04-14 04:49:13 +08:00
|
|
|
Environment variables for 'randconfig'
|
|
|
|
|
|
|
|
KCONFIG_SEED
|
2019-06-13 01:52:48 +08:00
|
|
|
------------
|
2013-04-14 04:49:13 +08:00
|
|
|
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.
|
|
|
|
|
2013-04-13 23:18:36 +08:00
|
|
|
KCONFIG_PROBABILITY
|
2019-06-13 01:52:48 +08:00
|
|
|
-------------------
|
2013-04-13 23:18:36 +08:00
|
|
|
This variable can be used to skew the probabilities. This variable can
|
|
|
|
be unset or empty, or set to three different formats:
|
2019-06-13 01:52:48 +08:00
|
|
|
|
|
|
|
======================= ================== =====================
|
2013-04-13 23:18:36 +08:00
|
|
|
KCONFIG_PROBABILITY y:n split y:m:n split
|
2019-06-13 01:52:48 +08:00
|
|
|
======================= ================== =====================
|
2013-04-13 23:18:36 +08:00
|
|
|
unset or empty 50 : 50 33 : 33 : 34
|
|
|
|
N N : 100-N N/2 : N/2 : 100-N
|
|
|
|
[1] N:M N+M : 100-(N+M) N : M : 100-(N+M)
|
|
|
|
[2] N:M:L N : 100-N M : L : 100-(M+L)
|
2019-06-13 01:52:48 +08:00
|
|
|
======================= ================== =====================
|
2013-04-13 23:18:36 +08:00
|
|
|
|
|
|
|
where N, M and L are integers (in base 10) in the range [0,100], and so
|
|
|
|
that:
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-04-13 23:18:36 +08:00
|
|
|
[1] N+M is in the range [0,100]
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-04-13 23:18:36 +08:00
|
|
|
[2] M+L is in the range [0,100]
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Examples::
|
|
|
|
|
2013-04-13 23:18:36 +08:00
|
|
|
KCONFIG_PROBABILITY=10
|
|
|
|
10% of booleans will be set to 'y', 90% to 'n'
|
|
|
|
5% of tristates will be set to 'y', 5% to 'm', 90% to 'n'
|
|
|
|
KCONFIG_PROBABILITY=15:25
|
|
|
|
40% of booleans will be set to 'y', 60% to 'n'
|
|
|
|
15% of tristates will be set to 'y', 25% to 'm', 60% to 'n'
|
|
|
|
KCONFIG_PROBABILITY=10:15:15
|
|
|
|
10% of booleans will be set to 'y', 90% to 'n'
|
|
|
|
15% of tristates will be set to 'y', 15% to 'm', 70% to 'n'
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2018-03-01 14:34:37 +08:00
|
|
|
Environment variables for 'syncconfig'
|
2009-05-18 07:36:47 +08:00
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
KCONFIG_NOSILENTUPDATE
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------
|
2008-03-01 06:21:53 +08:00
|
|
|
If this variable has a non-blank value, it prevents silent kernel
|
2010-03-16 18:47:56 +08:00
|
|
|
config updates (requires explicit updates).
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
KCONFIG_AUTOCONFIG
|
2019-06-13 01:52:48 +08:00
|
|
|
------------------
|
2008-03-01 06:21:53 +08:00
|
|
|
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_AUTOHEADER
|
2019-06-13 01:52:48 +08:00
|
|
|
------------------
|
2008-03-01 06:21:53 +08:00
|
|
|
This environment variable can be set to specify the path & name of the
|
2009-10-18 06:49:24 +08:00
|
|
|
"autoconf.h" (header) file.
|
|
|
|
Its default value is "include/generated/autoconf.h".
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
menuconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
----------
|
2009-05-18 07:36:47 +08:00
|
|
|
|
|
|
|
SEARCHING for CONFIG symbols
|
|
|
|
|
|
|
|
Searching in menuconfig:
|
|
|
|
|
|
|
|
The Search function searches for kernel configuration symbol
|
|
|
|
names, so you have to know something close to what you are
|
|
|
|
looking for.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Example::
|
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
/hotplug
|
|
|
|
This lists all config symbols that contain "hotplug",
|
2013-05-21 11:49:35 +08:00
|
|
|
e.g., HOTPLUG_CPU, MEMORY_HOTPLUG.
|
2009-05-18 07:36:47 +08:00
|
|
|
|
2018-07-05 06:49:56 +08:00
|
|
|
For search help, enter / followed by TAB-TAB (to highlight
|
2009-05-18 07:36:47 +08:00
|
|
|
<Help>) and Enter. This will tell you that you can also use
|
|
|
|
regular expressions (regexes) in the search string, so if you
|
2019-06-13 01:52:48 +08:00
|
|
|
are not interested in MEMORY_HOTPLUG, you could try::
|
2009-05-18 07:36:47 +08:00
|
|
|
|
|
|
|
/^hotplug
|
|
|
|
|
2013-05-06 20:57:47 +08:00
|
|
|
When searching, symbols are sorted thus:
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-07-10 05:15:17 +08:00
|
|
|
- first, exact matches, sorted alphabetically (an exact match
|
|
|
|
is when the search matches the complete symbol name);
|
|
|
|
- then, other matches, sorted alphabetically.
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-05-06 20:57:47 +08:00
|
|
|
For example: ^ATH.K matches:
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-05-06 20:57:47 +08:00
|
|
|
ATH5K ATH9K ATH5K_AHB ATH5K_DEBUG [...] ATH6KL ATH6KL_DEBUG
|
|
|
|
[...] ATH9K_AHB ATH9K_BTCOEX_SUPPORT ATH9K_COMMON [...]
|
2019-06-13 01:52:48 +08:00
|
|
|
|
2013-05-06 20:57:47 +08:00
|
|
|
of which only ATH5K and ATH9K match exactly and so are sorted
|
|
|
|
first (and in alphabetical order), then come all other symbols,
|
|
|
|
sorted in alphabetical order.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
User interface options for 'menuconfig'
|
|
|
|
|
|
|
|
MENUCONFIG_COLOR
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------
|
2009-05-18 07:36:47 +08:00
|
|
|
It is possible to select different color themes using the variable
|
2019-06-13 01:52:48 +08:00
|
|
|
MENUCONFIG_COLOR. To select a theme use::
|
2009-05-18 07:36:47 +08:00
|
|
|
|
|
|
|
make MENUCONFIG_COLOR=<theme> menuconfig
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Available themes are::
|
|
|
|
|
|
|
|
- mono => selects colors suitable for monochrome displays
|
|
|
|
- blackbg => selects a color scheme with black background
|
|
|
|
- classic => theme with blue background. The classic look
|
|
|
|
- bluetitle => a LCD friendly version of classic. (default)
|
2009-05-18 07:36:47 +08:00
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
MENUCONFIG_MODE
|
2019-06-13 01:52:48 +08:00
|
|
|
---------------
|
2008-03-01 06:21:53 +08:00
|
|
|
This mode shows all sub-menus in one large tree.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Example::
|
|
|
|
|
2009-05-18 07:36:47 +08:00
|
|
|
make MENUCONFIG_MODE=single_menu menuconfig
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
2008-03-01 06:21:53 +08:00
|
|
|
|
2018-07-05 06:49:56 +08:00
|
|
|
nconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
-------
|
2018-07-05 06:49:56 +08:00
|
|
|
|
|
|
|
nconfig is an alternate text-based configurator. It lists function
|
|
|
|
keys across the bottom of the terminal (window) that execute commands.
|
|
|
|
You can also just use the corresponding numeric key to execute the
|
|
|
|
commands unless you are in a data entry window. E.g., instead of F6
|
|
|
|
for Save, you can just press 6.
|
|
|
|
|
|
|
|
Use F1 for Global help or F3 for the Short help menu.
|
|
|
|
|
|
|
|
Searching in nconfig:
|
|
|
|
|
|
|
|
You can search either in the menu entry "prompt" strings
|
|
|
|
or in the configuration symbols.
|
|
|
|
|
|
|
|
Use / to begin a search through the menu entries. This does
|
|
|
|
not support regular expressions. Use <Down> or <Up> for
|
|
|
|
Next hit and Previous hit, respectively. Use <Esc> to
|
|
|
|
terminate the search mode.
|
|
|
|
|
|
|
|
F8 (SymSearch) searches the configuration symbols for the
|
|
|
|
given string or regular expression (regex).
|
|
|
|
|
|
|
|
NCONFIG_MODE
|
2019-06-13 01:52:48 +08:00
|
|
|
------------
|
2018-07-05 06:49:56 +08:00
|
|
|
This mode shows all sub-menus in one large tree.
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
Example::
|
2019-07-10 00:25:51 +08:00
|
|
|
|
2018-07-05 06:49:56 +08:00
|
|
|
make NCONFIG_MODE=single_menu nconfig
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
2018-07-05 06:49:56 +08:00
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
xconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
-------
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
Searching in xconfig:
|
|
|
|
|
|
|
|
The Search function searches for kernel configuration symbol
|
|
|
|
names, so you have to know something close to what you are
|
|
|
|
looking for.
|
|
|
|
|
2019-07-10 00:25:51 +08:00
|
|
|
Example::
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
Ctrl-F hotplug
|
2019-07-10 00:25:51 +08:00
|
|
|
|
|
|
|
or::
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
Menu: File, Search, hotplug
|
|
|
|
|
|
|
|
lists all config symbol entries that contain "hotplug" in
|
|
|
|
the symbol name. In this Search dialog, you may change the
|
|
|
|
config setting for any of the entries that are not grayed out.
|
|
|
|
You can also enter a different search string without having
|
|
|
|
to return to the main menu.
|
|
|
|
|
|
|
|
|
2019-06-13 01:52:48 +08:00
|
|
|
----------------------------------------------------------------------
|
|
|
|
|
2008-03-01 06:21:53 +08:00
|
|
|
gconfig
|
2019-06-13 01:52:48 +08:00
|
|
|
-------
|
2008-03-01 06:21:53 +08:00
|
|
|
|
|
|
|
Searching in gconfig:
|
|
|
|
|
2018-07-05 06:49:56 +08:00
|
|
|
There is no search command in gconfig. However, gconfig does
|
|
|
|
have several different viewing choices, modes, and options.
|