Re: State of the new config & build system

From: Benjamin LaHaise (bcrl@redhat.com)
Date: Fri Dec 28 2001 - 18:05:57 EST


On Fri, Dec 28, 2001 at 02:27:37PM -0800, Linus Torvalds wrote:
> and it's readable and probably trivially parseable into both the existing
> format (ie some "find . -name '*.conf'" plus sed-scripts) and into cml2 or
> whatever.

It's even doable within the .c file (and preferable for small drivers).
Something like:

        /* mydriver.c .... header blah blah */
        config_requires(CONFIG_INET);
        config_option(CONFIG_MY_FAST_CHIP, "Help info for this");

which gets picked out of the .c files during depend phase, and nullified
during compile by means of -Iconfig_system.h would even let us get rid of
Makefiles for drivers. Wouldn't being able to just drop a .c file (or a
bunch of .c files) into the tree in the right place be great? Eliminating
makefiles means eliminating more conflicts, which might mean more time to
respond to other issues...

                -ben

-- 
Fish.
-
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 : Mon Dec 31 2001 - 21:00:18 EST