Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 435358 - Provide better semantics for oldconfig, add some new kernel configuration options
Summary: Provide better semantics for oldconfig, add some new kernel configuration opt...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-17 20:23 UTC by Łukasz Stelmach
Modified: 2012-09-17 20:26 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Make the --oldconfig option act as oldconfig in the kernel (0001-Make-oldconfig-require-user-interaction.patch,788 bytes, patch)
2012-09-17 20:24 UTC, Łukasz Stelmach
Details | Diff
Add kernels automatic configuration options. (0002-Provide-kernel-s-all-config-as-genkernel-s-options.patch,2.43 KB, patch)
2012-09-17 20:26 UTC, Łukasz Stelmach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.