2008-10-02 16:53:47

by Stephen Clark

[permalink] [raw]
Subject: Automatic config file generator

Hello List,

Is there a utility that will examine your system and generate a tailored config
file so I don't have to compile a zillion modules.

Currently when I want to build the latest kernel I take the config file from
my distro, (fedora), but it has every module in the world. So on my
1.8ghz core 2 duo laptop it takes about 30 min to build a new kernel.

Thanks,
Steve
--

"They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety." (Ben Franklin)

"The course of history shows that as a government grows, liberty
decreases." (Thomas Jefferson)


2008-10-02 17:02:31

by Cyrill Gorcunov

[permalink] [raw]
Subject: Re: Automatic config file generator

[Stephen Clark - Thu, Oct 02, 2008 at 12:53:37PM -0400]
> Hello List,
>
> Is there a utility that will examine your system and generate a tailored
> config file so I don't have to compile a zillion modules.
>
> Currently when I want to build the latest kernel I take the config file from
> my distro, (fedora), but it has every module in the world. So on my
> 1.8ghz core 2 duo laptop it takes about 30 min to build a new kernel.
>
> Thanks,
> Steve
> --
>
> "They that give up essential liberty to obtain temporary safety,
> deserve neither liberty nor safety." (Ben Franklin)
>
> "The course of history shows that as a government grows, liberty
> decreases." (Thomas Jefferson)
>
>

You could be interested by this thread

http://lkml.org/lkml/2008/9/16/290

- Cyrill -

2008-10-02 17:33:05

by Alexey Dobriyan

[permalink] [raw]
Subject: Re: Automatic config file generator

On Thu, Oct 02, 2008 at 12:53:37PM -0400, Stephen Clark wrote:
> Is there a utility that will examine your system and generate a tailored
> config file so I don't have to compile a zillion modules.
>
> Currently when I want to build the latest kernel I take the config file from
> my distro, (fedora), but it has every module in the world. So on my
> 1.8ghz core 2 duo laptop it takes about 30 min to build a new kernel.

Switch CONFIG_DEBUG_INFO off.

Anyway, trim your config once with big switch-offs like
CONFIG_INFINIBAND=n or CONFIG_ISDN=n (or something like that) then use
old mainline config when upgrading to new mainline kernel with
"make oldconfig". You'll answer small amount of questions every time because of
new options and developers try very hard to ensure oldconfig always
leaves valid working configuration.

Even more, turn on /proc/config.gz feature to never lose your config.

2008-10-02 17:40:48

by Stephen Clark

[permalink] [raw]
Subject: Re: Automatic config file generator

Cyrill Gorcunov wrote:
> [Stephen Clark - Thu, Oct 02, 2008 at 12:53:37PM -0400]
>> Hello List,
>>
>> Is there a utility that will examine your system and generate a tailored
>> config file so I don't have to compile a zillion modules.
>>
>> Currently when I want to build the latest kernel I take the config file from
>> my distro, (fedora), but it has every module in the world. So on my
>> 1.8ghz core 2 duo laptop it takes about 30 min to build a new kernel.
>>
>> Thanks,
>> Steve
>> --
>>
>> "They that give up essential liberty to obtain temporary safety,
>> deserve neither liberty nor safety." (Ben Franklin)
>>
>> "The course of history shows that as a government grows, liberty
>> decreases." (Thomas Jefferson)
>>
>>
>
> You could be interested by this thread
>
> http://lkml.org/lkml/2008/9/16/290
>
> - Cyrill -
>
Thanks,

Somehow I missed that thread.

Steve

--

"They that give up essential liberty to obtain temporary safety,
deserve neither liberty nor safety." (Ben Franklin)

"The course of history shows that as a government grows, liberty
decreases." (Thomas Jefferson)