summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config/config.y
Commit message (Collapse)AuthorAgeFilesLines
* Understand 'config kernelname' and pretend it was apeter1999-05-101-0/+28
| | | | | | 'makeoptions KERNEL=kernelname'. Warn about any trailing stuff as it's not handled here. This is a simple bandaid, hopefully to head off some complaints from certain people.
* Put on my viking helmet from the closet, and get out the war axe andpeter1999-05-091-36/+1
| | | | "retire" some more stuff.
* config(8) lobotomy, please see commit msg in sys.phk1999-05-091-365/+1
| | | | (I have no idea why cvs didn't take these changes before.)
* Make options like NO_F00F_HACK work (with context sensitive lexical rules).luoqi1999-04-271-18/+7
|
* More cleanups, tweaks and features.peter1999-04-241-182/+59
| | | | | | | | | | - 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-12/+6
| | | | | 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-82/+41
| | | | | | 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.
* Corresponding minimal changes for kernel configuration after new-buspeter1999-04-161-0/+2
| | | | commit.
* Made booting with -a work for all configurations. Previously itbde1999-04-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | only worked for configurations with "swap on generic". usr.sbin/config/config.y: - ignore all "swap [on] device ...' specifications except for warning about them. They haven't done anything related to swap for almost 4 years, and were previously silently ignored, except for "swap on generic" which stopped swap${KERNEL}.c from being generated. Code to support swapping is now deader than before. usr.sbin/config/mkswapconf.c: - don't generate a dummy setconf() function in swap${KERNEL}.c. sys/i386/conf/files.i386: - swapgeneric.c is now standard. It should be merged into autoconf.c so that it doesn't conflict with swap${KERNEL}.c for kernels named "generic". sys/i386/i386/autoconf.c: - don't call setroot() for mfs roots. Since setroot() doesn't do anything harmful, this was just a waste of time, except possibly for booting with -a it may have helped prevent an undesireable call to setconf() by finding a bogus rootdev. - honor -a for ffs roots. -a now overrides all other ways of specifying the root device. Previously, -r had precedence over -a, and the -a handling was usually a no-op. - don't honor -a for non-ffs roots, since it would currently just get in the way of a clean panic. sys/i386/i386/swapgeneric.c: - don't declare things that are now always declared in swap${KERNEL}.c. Don't decide things that are now decided in autoconf.c. Code to support the "generic" case is now dead instead of useless.
* Fixed off-by-1 errors in option line numbers. yyline is 0-based, butbde1998-07-121-2/+6
| | | | | | | was used as if it is 1-based. This happened to give the correct result for options without values because of a compensating error in newline lexing. Didn't fix the latter, so line numbers in yyerror() may still be 1 too high in some cases.
* Add (mostly stub) alpha support. Incidentally, it doesn't build on stabledfr1998-06-091-0/+6
| | | | unless I manually construct y.tab.h. Is this normal?
* Support PC-98 machine.kato1998-05-021-0/+4
|
* Scaffolding for High Availability code. The actual code will probablyeivind1998-04-021-0/+3
| | | | | | come tomorrow. Submitted by: Simon Shapiro <shimon@simon-shapiro.org>
* Make '-n' the default, and introduce a new flag '-r' to get oldeivind1998-02-181-0/+3
| | | | | behaviour. Also indicate which option(s) are unknown if there are any old-style options.
* Add isa_devtab_cam.gibbs1997-09-211-0/+3
|
* Police from style.9 and Bruce.charnier1997-09-161-3/+5
|
* Use err(3), add usage(). -Wall clean.charnier1997-09-151-14/+26
|
* Remove support for "port none" and "port auto", it gains nothing,ache1997-03-281-7/+1
| | | | | | non-standard and not used. "port auto" is equal to "port?" or missing "port" keyword now. "port none" is really probe routine task (return -1 for no ports).
* Add #define's for port "none" and "auto"ache1997-03-261-3/+3
| | | | Now port ommiting is equal to port "none" not to port 0
* Part #2 of the config cleanup. More aggressive, replaced an NIHjoerg1996-12-141-34/+14
| | | | | | | | | | 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-4/+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)
* Implemented a new keyword `disable'. This should be useful for controllingbde1996-04-131-0/+4
| | | | | | | | dangerous drivers in GENERIC. Removed non-comments on #endifs in config.y. Improved output formatting in mkioconf.c.
* Implement support for conf/options and i386/conf/options.i386peter1995-12-111-0/+24
| | | | | | | | | | | | | | | | | | | | | | | 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.
* Add missing quote to yyerror call.gibbs1995-07-181-1/+1
|
* Allow the specification of the controller bus when wiring down scsi buses.gibbs1995-07-171-0/+9
| | | | | | | | | | This is performed by using a line similar to: controller scbus0 at ahc0 bus 1 to wire scbus0 to the second bus on an adaptec 2742T controller. Reviewed by: Peter Dufault(dufault@hda.com), Rod Grimes(rgrimes@FreeBSD.org)
* Killed TIMEZONE, DST, and HZ keywords. They have generated a config errordg1995-06-291-41/+0
| | | | | for more than a year now. They've been replaced with userland methods for changing (see adjkerntz).
* Don't automatically default dumps to be on a swap device; if the userwollman1995-05-121-5/+2
| | | | | wants dumps, he can either configure it explicitly (`dumps on' whatever) or use the dumpon(8) utility.
* Add a new `conflicts' flag for telling when a device is in conflict withjkh1995-05-111-1/+5
| | | | | | | | | | | | others. The flag can be put in descriptive locations, e.g.: device sb0 at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr or device psm0 at isa? port "IO_KBD" conflicts tty irq 12 vector psmintr But is nonetheless boolean only. You can't turn conflict checking off for only a given type of conflict. I didn't deem it worth the trouble at this stage, and it's far better than the ALLOW_CONFLICT_* that preceeded it.
* Added configuration for SCSI devices wired in place. The documentationdufault1995-03-011-1/+9
| | | | is in "man 4 scsi".
* config.y:bde1995-02-161-14/+31
| | | | | | | | | | | | | | | | Support slice numbers in device names. The syntax is `<driver name> [<unit number>] ['s' <slice number>] [<partition letter>]'. Only `['s' <slice number>]' is new here. The slice number defaults to 0 so that there is no change in the output from config if this new feature is not used. Replace some magic disk numbers by `dk' slice and label macros. mkswapconf.c: Improve the output formatting: Generate <> style includes. Print minor numbers in hex so that slice numbers are easy to see and edit. Print the rootdev and dumpdev names in comments like the swapdev names.
* Don't core on ``root on qq0 and fx0 and yy0'' specifications; justwollman1994-11-231-2/+12
| | | | | take the first one and ignore all the rest, giving a warning message. Fixes PR #3.
* Disallow timezone specification, but still allow it to be presentwollman1994-08-081-2/+2
| | | | if it is zero (so that we can parse old config files).
* Upgrade config to be compatible with our i386 port, pull in 95% of thergrimes1994-05-261-2/+8
| | | | | changes that have been made in FreeBSD 1.x, except for possibly the nfs diskless support this is a completed config.
* BSD 4.4 Lite usr.sbin Sourcesrgrimes1994-05-261-0/+1109
OpenPOWER on IntegriCloud