Re: Drivers.conf and kbuild-2.5 [Was: kbuild 2.5 is ready ...]

Sam Ravnborg (sam@ravnborg.org)
Sun, 19 May 2002 12:45:10 +0200


On Sun, May 19, 2002 at 12:35:46AM +0200, Dave Jones wrote:
> > Does it make sense to introduce limited support for the drivers.conf idea
> > in kbuild-2.5 already now?
>
> kbuild-2.5 is big enough to already be a problem to be accepted
> 'all in one go'. Adding driver.conf support will just make this problem
> bigger. What Keith has already needs to somehow be done gradually.
>
> How this happens isn't exactly obvious to me however. Due to the way
> things like dependancy calculation have changed, you can't for example
> do the merging on a per-directory basis and say "drivers this time",
> "now the filesystems" etc..
Thats why I tried to identify areas that could be merged even before
kbuild-2.5 got merged.
o "make dep" changes in for example split-include
o install target in config.in for i386
o asm-offset functionality for i386
o kwhich

I see no way to split the core part in smaller parts. It does not make sense
to merge only half of this for example.
The rest of the patch is a huge amount of makefile.in files, and some other
related files.
The patch as such could be splitted in several different ways, but again
it would not make sense to merge that gradually over time.

> Don't confuse the build system with the configuration system.
> Whilst they are somewhat intertwined, they are not dependant on each other.
I do not mix up the purpose of the two systems, but suggesting the
drivers.conf concept makes both systems rely on information in the same file.
Therefore I suggested a two step approach:
1) Let kbuild understand and accept the drivers.conf concept gradually
2) Let the configuration system accept the Drivers.conf concept gradually
With gradually I expect it to be on a directory basis.

> > IMHO it would also be plain stupid to put a lot of effort in
> > supporting the old makefile syntax, when the files are already converted.
>
> That effort has already been done. kbuild2.5 can live alongside the
> existing build system.
What exists now is two parrallel systems. This has the negative effect that
it fails to show how much old cruft can be removed from the kernel upon
acceptance of kbuild-2.5. As it is now kbuild-2.5 either modify some
existing files or add some new files.

It would be nice to see how much could be cleaned up from the kernel
upon acceptance of kbuild-2.5.
The makefiles that can be removed alone counts ~2700 lines.

Sam

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/