aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/lang.l
Commit message (Collapse)AuthorAgeFilesLines
* Implemented "nooption" and "nomakeoption" config(8) tokens.Ruslan Ermilov2003-02-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed memory leak in the "nodevice" option implementation. Use these instead of sed(1) in MD NOTES. Use a single makefile (sys/conf/makeLINT.mk) to generate LINT for all architectures. (Previous versions missed the LINT dependency on Makefile, and i386 version also missed the dependency on ${NOTES}.) Fixed bugs in the previous NOTES conversion using the "nodevice" token and sed(1): - i386 LINT lost "device pst". - pc98 LINT lost SC_*, MAXCONS and KBD_DISABLE_KEYMAP_LOAD options, and got needless DPT_* options. - Added nooptions PPC_DEBUG, PPC_PROBE_CHIPSET, KBD_INSTALL_CDEV to sparc64 LINT so that it has a chance to config(8). This basically returns us to where we were before. Notes: svn path=/head/; revision=111582
* Implemented a simple "nodevice" config(8) command that cancelsRuslan Ermilov2003-02-151-1/+2
| | | | | | | | | | the effect of the "device" command, and use it to generate the OLDCARD from GENERIC. Suggested by: bde Notes: svn path=/head/; revision=110897
* Clean up hex() and octal() to return and work with unsigned integers sinceJuli Mallett2002-06-211-8/+8
| | | | | | | | they scan values of unsigned types, and since they do not need otherwise, have them take const char * arguments. Notes: svn path=/head/; revision=98555
* Enable hardwiring of things like tunables from embedded enironmentsPeter Wemm2001-08-271-0/+1
| | | | | | | that do not start from loader(8). Notes: svn path=/head/; revision=82393
* Introduce an "include" directive. It takes one argument, a filenameDima Dorfman2001-07-121-0/+85
| | | | | | | | | | | | | | | | | to be included into this one. This works the same way as #include does in C; as far as the user is concerned, the included file is inlined into the current one. Since config(8) is no longer limited to working on one user-supplied file, printing just a line number in an error message is not sufficient. The new global variable yyfile represents the file currently being parsed, and must be printed as well. Reviewed by: imp Obtained from: OpenBSD Notes: svn path=/head/; revision=79607
* ${BDECFLAGS} work. And fix a real error in the process. A "MAXUSERS"Peter Wemm2001-02-191-1/+1
| | | | | | | | string could have been passed to free(); There are some warnings here I am not sure how to fix as they are in the lex scanner code, etc. Notes: svn path=/head/; revision=72684
* Make it possible to specify profiling in the kernel config file.Poul-Henning Kamp2000-10-141-0/+1
| | | | | | | Do so for LINT. Notes: svn path=/head/; revision=67109
* Borrow phk's axe and apply the next stage of config(8)'s evolution.Peter Wemm2000-06-131-35/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use Warner Losh's "hint" driver to decode ascii strings to fill the resource table at boot time. config(8) no longer generates an ioconf.c table - ie: the configuration no longer has to be compiled into the kernel. You can reconfigure your isa devices with the likes of this at loader(8) time: set hint.ed.0.port=0x320 userconfig will be rewritten to use this style interface one day and will move to /boot/userconfig.4th or something like that. It is still possible to statically compile in a set of hints into a kernel if you do not wish to use loader(8). See the "hints" directive in GENERIC as an example. All device wiring has been moved out of config(8). There is a set of helper scripts (see i386/conf/gethints.pl, and the same for alpha and pc98) that extract the 'at isa? port foo irq bar' from the old files and produces a hints file. If you install this file as /boot/device.hints (and update /boot/defaults/loader.conf - You can do a build/install in sys/boot) then loader will load it automatically for you. You can also compile in the hints directly with: hints "device.hints" as well. There are a few things that I'm not too happy with yet. Under this scheme, things like LINT would no longer be useful as "documentation" of settings. I have renamed this file to 'NOTES' and stored the example hints strings in it. However... this is not something that config(8) understands, so there is a script that extracts the build-specific data from the documentation file (NOTES) to produce a LINT that can be config'ed and built. A stack of man4 pages will need updating. :-/ Also, since there is no longer a difference between 'device' and 'pseudo-device' I collapsed the two together, and the resulting 'device' takes a 'number of units' for devices that still have it statically allocated. eg: 'device fe 4' will compile the fe driver with NFE set to 4. You can then set hints for 4 units (0 - 3). Also note that 'device fe0' will be interpreted as "zero units of 'fe'" which would be bad, so there is a config warning for this. This is only needed for old drivers that still have static limits on numbers of units. All the statically limited drivers that I could find were marked. Please exercise EXTREME CAUTION when transitioning! Moral support by: phk, msmith, dfr, asmodai, imp, and others Notes: svn path=/head/; revision=61640
* Re-support "tape" as an alias for device and clean up a bit more cruftPeter Wemm1999-11-091-1/+2
| | | | | | | | left over from the original system (d_dk was for preassigned iostat unit numbers for disks) Notes: svn path=/head/; revision=53047
* Add option "-d destdir" which instructs config to use another outputMarcel Moolenaar1999-10-301-1/+1
| | | | | | | | | | | | | | | | | | | directory than the default one. If the option is not given, then the output of config is exactly as before. Only when an alternate output directory has been specified will config modify its behavior. Additional changed: o Remove the now conflicting and unused NODEV define. It conflicts with NODEV in sys/param.h. o Rename the now conflicting MACHINE token to ARCH. It conflicts with MACHINE in sys/param.h. o Fix some easy style bugs. o Fix some easy grammar bugs in the manpage. Approved by: peter, archie Notes: svn path=/head/; revision=52653
* Further cleanup. Also remove the following unused or defunct tokens:Peter Wemm1999-10-101-30/+0
| | | | | | | and, bio, cam, master, minor, net, priority, sequential, size, slave, trace Notes: svn path=/head/; revision=52098
* Zap references to 'major' token, it's not used.Peter Wemm1999-10-081-1/+1
| | | | | | | | Zap references to devices.i386 - it's not used. (neither is devices.pc98 or devices.alpha) Notes: svn path=/head/; revision=52007
* Don't include trailing whitespace in ID tokens before comments. ie:Peter Wemm1999-07-011-1/+2
| | | | | | | | | | | options FOO=10 # comment would give FOO the value of "10 " and that caused unwanted touches on the opt_*.h files. I hope I've got this right.. Notes: svn path=/head/; revision=48402
* Understand 'config kernelname' and pretend it was aPeter Wemm1999-05-101-0/+1
| | | | | | | | | '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. Notes: svn path=/head/; revision=46855
* config(8) lobotomy, please see commit msg in sys.Poul-Henning Kamp1999-05-091-7/+1
| | | | | | | (I have no idea why cvs didn't take these changes before.) Notes: svn path=/head/; revision=46815
* Make options like NO_F00F_HACK work (with context sensitive lexical rules).Luoqi Chen1999-04-271-12/+38
| | | | Notes: svn path=/head/; revision=46104
* More cleanups, tweaks and features.Peter Wemm1999-04-241-7/+7
| | | | | | | | | | | | | - 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) Notes: svn path=/head/; revision=46021
* Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially thePeter Wemm1999-04-181-23/+7
| | | | | | | | same and were merged into a single newbus_ioconf.c. CG'd some more unused code. Notes: svn path=/head/; revision=45775
* Get out the blow torch and hack away all the unused stuff. Note thatPeter Wemm1999-04-171-3/+0
| | | | | | | | | 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. Notes: svn path=/head/; revision=45744
* Removed unused/unusable "ha" keyword. Device classes should never haveBruce Evans1998-10-161-2/+4
| | | | | | | | | been visible here. Fixed disordering of keyword table by "cam". Notes: svn path=/head/; revision=40454
* Scaffolding for High Availability code. The actual code will probablyEivind Eklund1998-04-021-0/+1
| | | | | | | | | come tomorrow. Submitted by: Simon Shapiro <shimon@simon-shapiro.org> Notes: svn path=/head/; revision=34997
* Add isa_devtab_cam.Justin T. Gibbs1997-09-211-0/+1
| | | | Notes: svn path=/head/; revision=29687
* Use err(3), add usage(). -Wall clean.Philippe Charnier1997-09-151-0/+9
| | | | Notes: svn path=/head/; revision=29451
* Remove support for "port none" and "port auto", it gains nothing,Andrey A. Chernov1997-03-281-2/+0
| | | | | | | | | 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). Notes: svn path=/head/; revision=24333
* Backout yacc changes.Poul-Henning Kamp1996-06-021-1/+1
| | | | Notes: svn path=/head/; revision=16073
* yacc rule changes.Poul-Henning Kamp1996-05-301-1/+1
| | | | Notes: svn path=/head/; revision=16023
* Implemented a new keyword `disable'. This should be useful for controllingBruce Evans1996-04-131-7/+10
| | | | | | | | | | | dangerous drivers in GENERIC. Removed non-comments on #endifs in config.y. Improved output formatting in mkioconf.c. Notes: svn path=/head/; revision=15257
* Implement support for conf/options and i386/conf/options.i386Peter Wemm1995-12-111-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=12772
* Allow the specification of the controller bus when wiring down scsi buses.Justin T. Gibbs1995-07-171-0/+1
| | | | | | | | | | | | | 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) Notes: svn path=/head/; revision=9571
* Killed TIMEZONE, DST, and HZ keywords. They have generated a config errorDavid Greenman1995-06-291-3/+0
| | | | | | | | for more than a year now. They've been replaced with userland methods for changing (see adjkerntz). Notes: svn path=/head/; revision=9370
* Add a new `conflicts' flag for telling when a device is in conflict withJordan K. Hubbard1995-05-111-0/+1
| | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=8432
* Added configuration for SCSI devices wired in place. The documentationPeter Dufault1995-03-011-0/+2
| | | | | | | is in "man 4 scsi". Notes: svn path=/head/; revision=6814
* Always return null-terminated identifiers from yylex().Bruce Evans1995-02-161-2/+3
| | | | Notes: svn path=/head/; revision=6494
* Treat formfeeds like any other whitespace.Garrett Wollman1994-11-071-1/+1
| | | | Notes: svn path=/head/; revision=4242
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-261-0/+215
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553