Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 1995 10:46:28 -0800
From:      David Greenman <davidg@Root.COM>
To:        "Justin T. Gibbs" <gibbs@freefall.freebsd.org>
Cc:        CVS-committers@freefall.freebsd.org, cvs-usrsbin@freefall.freebsd.org
Subject:   Re: cvs commit: src/usr.sbin/config Makefile main.c 
Message-ID:  <199511291846.KAA00293@corbin.Root.COM>
In-Reply-To: Your message of "Wed, 29 Nov 95 10:34:40 PST." <199511291834.KAA08699@freefall.freebsd.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
>>That's impossible to do given the current scheme of 'everything is an
>>option'.  However, I think a much better solution to the problem is to
>>have config kick out a 'remember to do a make clean' if the directory
>>exists.  If the user chooses not to do that, then it's their problem not
>>ours.
>
>Why not make option lines add an entry to a common header file.  Only
>modules that export an option need to include the "option" header.
>We could have a separate keyword "define" that gives the current behavior
>so you can still do it the old quick way for debugging.  I think that
>a make depend would have much more value if this was done.

   The other idea is to add an option file for each supported option. Some
people don't like this because it makes adding a new option a little more
difficult (all the options would have to be listed in an options file, and
you need to add a #include plus a #ifdef to each file that uses the option).
The idea is that the option file would have a name like "option_foobar.h" or
something deterministic which would be autogenerated by config. The file
would either have the #define or it would be null (consuming no disk space
and would be relative fast access). This approach allows for fine control
over the kernel options dependency.

-DG



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199511291846.KAA00293>