Date: Wed, 29 Nov 1995 10:51:03 -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: <199511291851.KAA00310@corbin.Root.COM> In-Reply-To: Your message of "Wed, 29 Nov 95 10:46:28 PST." <199511291846.KAA00293@corbin.Root.COM>
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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ I just realized that this might be confusingly worded... I mean you would have a options master file /sys/conf/options and /sys/i386/conf/options.i386 that would list all of the options. Config would use this in conjunction with your kernel config file to produce individual options_foobar.h files (where foobar is an option) that would/wouldn't have a #define FOOBAR. >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?199511291851.KAA00310>