User:Egberts/Drafts/Gentoo Kernel Configuration Guide

Advanced Kernel Configurations
Linux kernel also has provided two scripts to assist with updating kernel configuration settings (without having to tediously navigate through :


 * change a single setting; command (introduced 3.33rc1+)
 * change many kernel configuration settings; command (introduced 2.6.29-rc1+)

Single Option approach
One way to change the .config at the command line is to change one-line per command evocation.

An example of changing four(4) settings is shown below:

(updates dependencies; may prompt with new dependencies, but old deps silently goes away)

The.

Multiple-File Merge approach
When building and customizing Linux kernel repeatedly, it becomes a time-saver to incorporate all the settings into a single (but smaller) kernel configuration file. Each kernel configuration file would represent a certain feature, device, or functionality.

This makes grouping of many settings of kernel configurations less forgetful and easily referenced by a (descriptive) filename that can be easily inserted into a Linux kernel configuration.

Given the two example files:

The command to update the default file is:

Now the kernel will incorporate both readable terminals and ensure that it would never hibernate nor sleep.

= References =