2008-06-01 16:54:23

by Clifford Wolf

[permalink] [raw]
Subject: Re: [PATCH] Add 'make no2modconfig' config generation target

Hi,

On Sat, May 31, 2008 at 10:30:34AM +0200, Sam Ravnborg wrote:
> On Sat, May 31, 2008 at 09:05:07AM +0200, Clifford Wolf wrote:
> > The new 'make no2modconfig' make target creates a new kernel
> > config based on the current one, switching all tristate options
> > from 'n' to 'm'.
>
> In what situations do we need this functionality?

I'm using this patch (respectively its predecessors) since many years in
ROCK Linux to auto-generate our general purpose kernel configurations, by
copying the default kernel config, forcing some variables to yes or no and
then setting all tristate options which are on 'n' to 'm' using this patch.

the only alternative would be to manually check the kernel configurtion for
each new kernel and setting all new tristate options to 'm' by hand. what a
waste of energy that would have been for the last couple of years.. ;-)

yours,
- clifford

--
For extra security, this message has been encrypted with double-ROT13.


2008-06-01 17:42:23

by Sam Ravnborg

[permalink] [raw]
Subject: Re: [PATCH] Add 'make no2modconfig' config generation target

On Sun, Jun 01, 2008 at 06:34:39PM +0200, Clifford Wolf wrote:
> Hi,
>
> On Sat, May 31, 2008 at 10:30:34AM +0200, Sam Ravnborg wrote:
> > On Sat, May 31, 2008 at 09:05:07AM +0200, Clifford Wolf wrote:
> > > The new 'make no2modconfig' make target creates a new kernel
> > > config based on the current one, switching all tristate options
> > > from 'n' to 'm'.
> >
> > In what situations do we need this functionality?
>
> I'm using this patch (respectively its predecessors) since many years in
> ROCK Linux to auto-generate our general purpose kernel configurations, by
> copying the default kernel config, forcing some variables to yes or no and
> then setting all tristate options which are on 'n' to 'm' using this patch.
>
> the only alternative would be to manually check the kernel configurtion for
> each new kernel and setting all new tristate options to 'm' by hand. what a
> waste of energy that would have been for the last couple of years.. ;-)

I have a set of patched in works that will allow this in
a more general way.
It allows you to specify a base config when you do allmodconfig.
Syntax is:

make K=rock-config allmodconfig

This will result in exactly what you want.

I will try to find time during next week to polish them and submit them
for 2nd review.

Sam