Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Configuration Targets

These targets allow the kernel to be configured in a wide range of different ways.

Table 11.3.  Configuration targets




Updates the current kernel configuration by using a line-oriented program.


Updates the current kernel configuration by using a text based menu program.


Updates the current kernel configuration by using a QT-based graphical program.


Updates the current kernel configuration by using a GTK+-based graphical program.


Updates the current kernel configuration by using the current .config file and prompting for any new options that have been added to the kernel.


Just like oldconfig, but prints nothing to the screen except when a question needs to be answered.


Generates a new kernel configuration with random answers to all of the different options.


Generates a new kernel configuration with the default answer being used for all options. The default values are taken from a file located in the arch/$ARCH/defconfig file, where $ARCH refers to the specific architecture for which the kernel is being built.


Generates a new kernel configuration in which modules are enabled whenever possible.


Generates a new kernel configuration with all options set to yes.


Generates a new kernel configuration with all options set to no.

Note that the allyesconfig, allmodconfig, allnoconfig, and randconfig targets also take advantage of the environment variable KCONFIG_ALLCONFIG. If that variable points to a file, that file will be used as a list of configuration values that you require to be set to a specific value. In other words, the file overrides the normal behavior of the make targets.

For example, if the file ~/linux/must_be_set contains the following variables:

cat ~/linux/must_be_set


and you enter make allnoconfig with the proper KCONFIG_ALLCONFIG environment variable in effect:

KCONFIG_ALLCONFIG=../must_be_set make allnoconfig

grep CONFIG_SWAP .config


then the results include:

grep CONFIG_DEBUG_FS .config


This variable would not have normally been set to y otherwise.

If the KCONFIG_ALLCONFIG variable is not set, the build system checks for files in the top-level build directory named:

  • allmod.config

  • allno.config

  • allrandom.config

  • allyes.config

If any of those files are present, the build uses them as lists of configuration values that must be forced to the specified values. If none of those files are found, the build system finally looks for a file called all.config for a list of forced configuration values.

You can use these different files to set up a known good base configuration that will always work. Then the other configuration options can be used to generate different testing configurations for the needed situation.

  Published under the terms of the Creative Commons License Design by Interspire