Re: Kernel Config enhancements

Erik Andersen (andersee@debian.org)
Sun, 2 Nov 1997 20:04:14 -0700


On Sun, Nov 02, 1997 at 10:42:59PM +0100, Fare Rideau wrote:
> This message is about ease-of-use for people compiling the kernel,
> not about actual kernel code.
>
> It seems that there are a few things that could be done
> to enhance kernel configuration scripts:
>
> * most importantly, put SMP back into configuration, instead of the Makefile.
> It seems that the motivation for that was that too many files depend on
> __SMP__ but that current .depend can't see it.
> Wouldn't it be just a matter of defining __SMP__ in a config_smp.h?
> Or just trigger a "make clean" when CONFIG_SMP has changed?

See ftp://ftp.shout.net/pub/users/mec/patch/config-smp.2154 for a
patch against 2.1.54 that converts CONFIG_SMP into a config option.
Encourage Linus to apply this if you really want it. I think it is
the Right Thing(tm), but I don't know what Linus thinks...

>
> * It would be nice for some script to tell the user which are the new flags
> that appeared since he last configurated the kernel (which might be
> several releases away, so that just telling him "read the patches" is no
> fair game); hence, no need to go through all the make *config if no new
> (interesting) option was made available -- just recompile.
> During interactive reconfiguration, (menuconfig, xconfig),
> options and option categories that contain previously undefined options
> could be flagged as such.
>

Try saving a working .config file somewhere (like say /usr/src ),
then do:

cd /usr/src/linux
cp ../.config .config
make oldconfig

This will do what you want.

> * the module installation is not obvious and not very helpful to people
> compiling for another machine: it would be nice for the makefile
> (perhaps calling auxiliary scripts when they exist) to put modules in
> subdirectories block/ net/ etc, so that it's easier to tar the whole
> kernel+modules+whatever and transport them to their final destination
> (also useful when cross-compiling).
>

does "make modules modules_install" not do what you want it to?

[------snip, snip, snip------------]

I hope this was helpful.

-Erik

--
Erik B. Andersen   Web:    http://www.inconnect.com/~andersen/ 
                   email:  andersee@debian.org
--This message was written using 73% post-consumer electrons--