Re: source dependencies cleanup? (fwd)

David Hinds (
10 Dec 1996 21:33:40 GMT

Tom Zerucha ( wrote:

: Another possibility/suggestion: Is there any way to have everything it is
: possible for to be compiled as a module, and then do something like cat
: vmlinux slhc.o ppp.o 3c509.o ... endstub.o >vmlinux.all, and have the next
: step do a link, or build a chunk of insmod into the kernel? Then with the
: exception of things like PROC_FS, you could reselect the modules by
: changing the build instead of the config

A few days ago, I posted a kernel patch that lets you do almost
exactly what you're asking for...

95% of the kernel configuration options should really be re-done as
link-time options. Even if the remaining options were all left in one
config file, this would vastly improve things.

Personally, I think there should be as little conditionally compiled
code in the kernel as possible. If a kernel configuration option
requires a trivial amount of extra kernel code (like CONFIG_MAX_16M),
then just stick that code in the kernel and put it under control of a
boot parameter.

-- Dave Hinds