summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/mkoptions.c
Commit message (Collapse)AuthorAgeFilesLines
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Detect and remove defunct or unknown options from opt_*.h files. Thispeter1999-07-011-11/+23
| | | | can happen when options are removed from the options files.
* More cleanups, tweaks and features.peter1999-04-241-2/+2
| | | | | | | | | | - make this work: options FOO123=456 *without quotes* - grumble (but accept) vector xxxintr, and tty/net/bio/cam flags. - complain if a device is specified twice (eg: 2 x psm0) - don't require quotes around: port IO_COM2 - recognize negative numbers. (ie: options CAM_DEBUG_UNIT=-1) - GC some more unused stuff (we don't have composite disks from config(8)). - various other nits (snprintf paranoia etc)
* Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially thepeter1999-04-181-2/+2
| | | | | same and were merged into a single newbus_ioconf.c. CG'd some more unused code.
* Get out the blow torch and hack away all the unused stuff. Note thatpeter1999-04-171-17/+11
| | | | | | I zapped the MACHINE_MIPS stuff, it isn't likely to be useful apart from recognition of the machine name. It would be reasonable to expect new ports would look something like the alpha/i386 from a config perspective.
* Convert the maxusers directive to a normal MAXUSERS option (normallybde1998-07-121-8/+50
| | | | | | | | | | define MAXUSERS in opt_param.h as directed in /sys/conf/options; if it's not mentioned there, then define it in IDENT; never define it in PARAM). MAXUSERS probably should be a completely normal option. Don't define PARAM now that it is empty. Cleaned up similar conversion of cpu directives to XXX_CPU options.
* Warn about redefined options. Keep using the last value processed.bde1998-07-121-2/+8
| | | | | | Options are processed reverse file order, so the first definition in the config file wins (except for directives that are converted to option).
* Use err(3), add usage(). -Wall clean.charnier1997-09-151-10/+15
|
* Part #2 of the config cleanup. More aggressive, replaced an NIHjoerg1996-12-141-3/+7
| | | | | | | | | | version of strdup() by a macro, killed many calls to strdup(), thus potentially wasting less malloc'ed space (their args were never be free()ed desptie despite of being malloc'ed). Probably still a huge memory leak at all... Also killed two totally useless variables. I've tested it as i could, but wouldn't be surprised if unexpected problems showed up. So watch out this space!
* Round #1 of cleaning up the config(8) mess. This is only the morejoerg1996-12-141-7/+5
| | | | | | | conservative part of the tidyup, like fixing potential buffer overflow conditions. It is believed to be safe to go into 2.2. Pointed out by: lozenko@cc.acnit.ac.ru (Evgeny A. Lozenko)
* Backout yacc changes.phk1996-06-021-1/+1
|
* yacc rule changes.phk1996-05-301-1/+1
|
* Implement support for conf/options and i386/conf/options.i386peter1995-12-111-0/+316
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.
OpenPOWER on IntegriCloud