Re: Automatic Configuration of a Kernel

From: David Lang
Date: Thu Sep 15 2005 - 05:46:06 EST


On Thu, 15 Sep 2005 Valdis.Kletnieks@xxxxxx wrote:

On Thu, 15 Sep 2005 14:18:13 +1000, Marek W said:

Not so much the kernel. When compiling the kernel I'd prefer not to waste time
and space compiling the 100+ modules I will never ever use on my laptop.

It's actually a lot worse than that - here's my minimized custom kernel that
drives everything on my laptop and then some, and a recent Fedora kernel:

[/lib/modules]2 find 2.6.13-mm1/kernel/drivers -name '*.ko' | wc -l
37
[/lib/modules]2 find 2.6.12-1.1400_FC5/kernel/drivers/ -name '*.ko' | wc -l
832

(OK, so I *do* have a few builtins that Fedora builds as modules. That's gonna
change the numbers by half a dozen or so...)

I'd
prefer for something to select the modules necessary for my hardware. I can't
afford the time to keep up to date with that's new and what isn't, what has
changed, what has been superseded, which module works with which device,
chipset even, etc...

I'm of the opinion that if you don't have that much time, you should be using a
distro kernel where somebody *else* is taking the time. If you're the type
that builds their own kernel, the *last* thing you want is a tool glossing over
the fact that a module has been superceded. Who's going to take care of the
matching changes for /etc/modprobe.conf and similar userspace changes, and
other stuff like that? (I figure if 'make oldconfig' asks a question, I should
take notice, and any userspace changes that don't get made are my fault - and
if 'make oldconfig' switches drivers on me without asking, that's a *bug* that
lkml will hear about.. ;)

sometimes tracking down exactly what options need to be enabled to let you at other options that apply to your system can be quite a chore, a tool to start from no .config file and get you one that is tailered to your system could be useful.

I agree that make oldconfig shouldn't do this type of thing, but that requires that youhave an existing .config for the box. if you do a make autoconfig you are explicitly asking the software to do this for you.

David Lang


--
There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies.
-- C.A.R. Hoare
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/