From owner-cvs-usrsbin Mon Dec 11 02:52:45 1995 Return-Path: owner-cvs-usrsbin Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA22233 for cvs-usrsbin-outgoing; Mon, 11 Dec 1995 02:52:45 -0800 (PST) Received: (from peter@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id CAA22226 Mon, 11 Dec 1995 02:52:40 -0800 (PST) Date: Mon, 11 Dec 1995 02:52:40 -0800 (PST) From: Peter Wemm Message-Id: <199512111052.CAA22226@freefall.freebsd.org> To: CVS-committers, cvs-usrsbin Subject: cvs commit: src/usr.sbin/config mkoptions.c Makefile config.h config.y lang.l main.c mkheaders.c mkmakefile.c mkswapconf.c Sender: owner-cvs-usrsbin@FreeBSD.ORG Precedence: bulk peter 95/12/11 02:52:39 Modified: usr.sbin/config Makefile config.h config.y lang.l main.c mkheaders.c mkmakefile.c mkswapconf.c Added: usr.sbin/config mkoptions.c Log: Implement support for conf/options and i386/conf/options.i386 Note that this code is dormant unless the options files exist. Also, parsing of quoted options in the config files is improved. What this allows, is all the options in LINT to be specified to be configured as #defines in a file rather than on the CC command line at kernel build time. This means that 'make depend' will catch dependencies on actual *options*, meaning that you can run 'config' and 'make depend' in complete safety WITHOUT removing the compile directory each time. Unfortunately, this requires a pass over the source to get the individual files to #include the new .h files that would be generated by config. This has a small compile time penalty (appears up to about 2% slower) from a "fresh" build. Of course, you should not be needing to do complete rebuilds very often once this was completed, so it would be an overall win for most people. Since this code is dormant and we've got a lot of other things happening on the kernel tree at the moment (prototypes, devfs, static declarations etc) I am not planning on doing any changes to activate this feature just yet. Revision Changes Path 1.10 +1 -1 src/usr.sbin/config/Makefile 1.10 +9 -0 src/usr.sbin/config/config.h 1.12 +24 -0 src/usr.sbin/config/config.y 1.8 +8 -0 src/usr.sbin/config/lang.l 1.10 +5 -0 src/usr.sbin/config/main.c 1.2 +4 -2 src/usr.sbin/config/mkheaders.c 1.13 +25 -5 src/usr.sbin/config/mkmakefile.c 1.10 +1 -0 src/usr.sbin/config/mkswapconf.c