Re: linux kernel config converter

From: Jeff Garzik (jgarzik@mandrakesoft.com)
Date: Thu Feb 21 2002 - 09:26:57 EST


Giacomo Catenazzi wrote:
>
> Jeff Garzik wrote:
>
> > Erik Andersen wrote:
> >
> >>I like this. It's simple, its clean, and it keeps all the
> >>information in one spot. I think we can go a bit farther here
> >>and add in a list of the .c files that enabling this feature
> >>should add to the Makefile (per the current
> >> obj-$(CONFIG_FOO) += foo.o
> >>stuff in the current Makefile).
> >
> > Seriously, yep, that's exactly where we eventually want to be: all
> > config, makefile, and help text info in one place. To add a new net
> > driver, I want to be able to simply add two files, driver.c and
> > driver.conf, and be done with it.
>
> with kbuild-2.5 this can be done easy. We should maintain
> the syntax of kbuild-2.5 (or a subset).
>
> But the makefile/makefile.in will remain: not all code
> in kernel is drivers, and for the non drivers makefile/config.in
> IMHO it is better to have 'central' (per directory/per type)
> config and makefile files.

yes and no :)

We do not want to limit one-driver one-file, just support it.

And, makefile information needs to be included along with config
information. For a more realistic example, when I add a new net driver,
I would modify
drivers/net/new-driver.c
drivers/net/net-drivers.conf

and the second file includes the makefile rules necessary to build
things.

For directories like kernel/* and mm/* and arch/*, I imagine that down
the road we will want kernel.conf and mm.conf too, though right now they
would probably remain as makefiles...

If you look closely at the problem, you will see there is no fundamental
reason why we cannot package makefile rules like we want to package
config information.

        Jeff

-- 
Jeff Garzik      | "Why is it that attractive girls like you
Building 1024    |  always seem to have a boyfriend?"
MandrakeSoft     | "Because I'm a nympho that owns a brewery?"
                 |             - BBC TV show "Coupling"
-
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/



This archive was generated by hypermail 2b29 : Sat Feb 23 2002 - 21:00:33 EST