Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 565278

Summary: sys-kernel/genkernel - kernel config made easy
Product: Gentoo Hosted Projects Reporter: Lagu <felipematas>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: UNCONFIRMED ---    
Severity: enhancement CC: fturco, hydrapolic
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Lagu 2015-11-09 18:25:43 UTC
Hi, here a feature request.

The idea basically is can use a little file with the configuration we want for the kernel.

When we config the kernel normaly we don't change all the options, only the options we need and use the other in the default value, but with the upgrades we most start selecting again all the options, so can use a little file with the options we want and obviously it need check the features and the deprecated features for can update the options.

Thx.
Comment 1 Tomáš Mózes 2015-11-09 20:00:46 UTC
Good idea, I like it.
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2019-07-15 10:15:24 UTC
I don't understand that feature request.

Put all your options you want in /root/my-kernel-options.conf. Now call genkernel with "--kernel-config=/root/my-kernel-options.conf". It will start building kernel with your provided "snippet" and thanks to "make oldconfig" magic, missing (but available) options will be added.

The problem are features which are normally not enabled and have other requirements: I.e. an option currently not even present as "not set" in config because it's unavailable due to missing requirements, can't be enabled that way.

When I implemented https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=fcf3076aef8396f394de82dd13b7a470753e2e97 I wished there was a feature like that: Tell that something I want CONFIG_FOO and that something will enable CONFIG_FOO with everything needed for CONFIG_FOO.