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

Bug 435358

Summary: Provide better semantics for oldconfig, add some new kernel configuration options
Product: Gentoo Hosted Projects Reporter: Łukasz Stelmach <stlman>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Make the --oldconfig option act as oldconfig in the kernel
Add kernels automatic configuration options.

Description Łukasz Stelmach 2012-09-17 20:23:18 UTC
I've just recently learnt how --oldconfig option works in genkernel which is saying "yes" to everything. This is not only nonsense behaviour but also under inappropriate name. I've used kernel's oldconfig for quite some time because I consider it the best way to upgrade configuration form one version to another (and with that in mind it was designed). 

For automatic configuration, which is what --oldconfig tries to do now, there are four different targets in the kernel's build system: allyesconfig, allnoconfig, alldefconfig and allmodconfig.

The attached patches fix these problems.

Reproducible: Always
Comment 1 Łukasz Stelmach 2012-09-17 20:24:54 UTC
Created attachment 324118 [details, diff]
Make the --oldconfig option act as oldconfig in the kernel

This patch makes --oldconfig option run kernel's plain oldconfig which requires user interaction.
Comment 2 Łukasz Stelmach 2012-09-17 20:26:30 UTC
Created attachment 324120 [details, diff]
Add kernels automatic configuration options.

Introduce four new options for genkernel that represent kernel's automatic configuration targets: allyesconfig, allnoconfig, allmodconfig and alldefconfig.