summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* Remove even known options if they are in the wrong options header. Thisbde2000-01-091-1/+11
| | | | fixes movement of options. Stale copies were left behind.
* Bump configversion. The controller/device changes are upwards but notpeter2000-01-091-1/+1
| | | | | downwards compatable. If you try and config a s/controller/device/ kernel with an old config(8), the results will be less than satisfactory.
* Support getting *.$MACHINE from sys/conf as well as sys/$MACHINE/conf.peter2000-01-082-14/+25
| | | | | | | | | | | | This would mean that we could move files.alpha, files.i386, files.pc98 etc all next to conf/files, and the various Makefiles next to each other. This should go a long way towards committers "seeing" the Alpha etc stuff and remembering to update that too as it would be right next to the i386 config files. Note this does not include the GENERIC etc files as they can't be shared. I haven't actually moved the files, but the support is here for it. It still supports the per-machine conf directories so that folks working on a new arch can just distribute a subdir of files.
* Apply the axe to some more cruft in config(8). In particular:peter2000-01-085-193/+78
| | | | | | | | | | | | | | | | | | | | | | | - redo the "at" configuration system so that it just syntax checks to make sure the device you're configuring something "at" appears to exist. Nuke a bunch of complexity that was responsible for creating "clones" of wildcard devices and some wierd stuff in a few places including the scbus config tables etc. - merge "controller" and "device" - there is no difference as far as the kernel is concernend, it's just something there to make life difficult for config file writers. "controller" is now an alias for "device". - emit full scsi config into the resource tables. We could trivially change cam to use that rather than it's own "special" table for wiring and static configuration. ATA could use this too for static wiring. - try and emulate some of the quirks of the old system where it made sense. Some were too strange though and I'd be very suprised if they were features and not outright bugs. nexus handling is still strange. One thing in particular is that some of the wierd entries in the newbus devtables is now gone as it was a quirk side effect of the wildcard/question-mark cloning above. GENERIC and LINT still build etc.
* Fixed removal of unknown options. For options files with only a singlebde2000-01-081-1/+1
| | | | | | | known option, unknown options following the known option were not removed. Now I think only unknown options in unknown options files are not removed. This is harmless because unknown options files should not be used, but removing the files would be cleaner.
* Add a 'warning' option for the files* files. This is intended to enablepeter1999-12-122-2/+18
| | | | giving a dire warning about certain drivers going away in the future.
* Fix another quirk in the unknown device detection, and also deal withpeter1999-12-061-4/+17
| | | | unknown 'controller' lines.
* A better version of the previous checkin. If the user specifiesarchie1999-12-031-3/+9
| | | | | a custom file that could override a FreeBSD file under a different configuration, but doesn't under this one, give a different warning.
* When specifying additiona user-specified kernel compilation sourcearchie1999-12-021-1/+1
| | | | | | | | | | | | | | | | files in a 'files.XXX' file, config allows non-FreeBSD source files with the same name as a FreeBSD source file to override the latter, and in this situation it issues a warning. However, if one of the user-specified files is actually a FreeBSD source file (perhaps your kernel has some custom option that requires that file), config mistakenly thinks it's a completely new file and goes ahead and overrides all previous information for that file (and issues the warning). Fix this. With help from: julian
* Allow config to generate proper ioconf.c files when devices request DMAgallatin1999-11-221-1/+1
| | | | | | channel 0. Submitted by: dfr
* Re-support "tape" as an alias for device and clean up a bit more cruftpeter1999-11-093-4/+13
| | | | | left over from the original system (d_dk was for preassigned iostat unit numbers for disks)
* Add option "-d destdir" which instructs config to use another outputmarcel1999-10-306-19/+79
| | | | | | | | | | | | | | | | 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
* Further cleanup. Also remove the following unused or defunct tokens:peter1999-10-109-164/+49
| | | | and, bio, cam, master, minor, net, priority, sequential, size, slave, trace
* Zap references to 'major' token, it's not used.peter1999-10-083-5/+2
| | | | | Zap references to devices.i386 - it's not used. (neither is devices.pc98 or devices.alpha)
* $Id$ -> $FreeBSD$peter1999-08-288-8/+8
|
* Fix a bunch of broken cross-referenceschris1999-08-181-2/+2
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-07-121-0/+1
| | | | | | | | | | | | | | | | | track. The Id line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde
* Delete special handling for 'device-driver' suffix, it's not used inpeter1999-07-032-13/+12
| | | | the kernel source now.
* Don't include trailing whitespace in ID tokens before comments. ie:peter1999-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..
* 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.
* Check and warn about unknown devices in the config file along the samepeter1999-06-031-2/+12
| | | | | lines as the pseudo-device checking. Previously 'device xyz0' would have been silently accepted without comment.
* Understand 'config kernelname' and pretend it was apeter1999-05-102-0/+29
| | | | | | '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-097-227/+12
| | | | "retire" some more stuff.
* We don't have composite devices here either.peter1999-05-091-18/+2
|
* config(8) lobotomy, please see commit msg in sys.phk1999-05-097-614/+45
| | | | (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-272-30/+45
|
* Bump configvers; when the updates to generic/lint get committed, the oldpeter1999-04-241-2/+2
| | | | config has severe indigestion.
* More cleanups, tweaks and features.peter1999-04-248-219/+86
| | | | | | | | | | - 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)
* The Alpha probably wouldn't appreciate getting the pc98 isa portpeter1999-04-191-4/+4
| | | | definitions. Change it from machine != I386 to machine == PC98.
* Slightly reorder the all: to make sure it's before any alternate kernelpeter1999-04-191-6/+6
| | | | names for debugging etc. all: should now always be the first target.
* Use pc98/pc98/pc98.h instead of isa/isareg.h in PC98 kernel.kato1999-04-181-2/+5
| | | | Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
* Further cleanups. i386_ioconf.c and alpha_ioconf.c were essentially thepeter1999-04-189-148/+56
| | | | | 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-1712-1832/+144
| | | | | | 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-163-105/+131
| | | | commit.
* Made booting with -a work for all configurations. Previously itbde1999-04-153-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Clean up the -g/DEBUG handling. This logic can go in the Makefilepeter1999-04-133-30/+8
| | | | so that config -g can work the same as: makeoptions DEBUG="-g"
* Back out default debug kernel. The flags revert to historical behaviour.grog1999-04-113-52/+60
| | | | | | | | | | | | | | | Requested-by: ache bde dg Modify targets for debug kernels: when -g was specified, make will now build a debug kernel called kernel.debug, and create a stripped version called kernel at the same time. The two targets install and install.debug are otherwise unchanged. Requested-by: dillon Update man page accordingly.
* add -s to usageache1999-04-101-2/+2
| | | | | PR: 11056 Submitted by: Nickolay N. Dudorov <nnd@mail.nsk.ru>
* add -s to synopsisache1999-04-101-1/+1
|
* 1. Modify config to issue different code for debugging.grog1999-04-072-4/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2. Config complains if you use -g: Debugging is enabled by default, there is no ned to specify the -g option 3. Config warns you if you don't use -s: Building kernel with full debugging symbols. Do "config -s BSD" for historic partial symbolic support. To install the debugging kernel, do make install.debug (BSD was the name of the config file I used; I print out the same name). 4. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 and config to work if a kernel name other than 'kernel' is specified. This is not absolutely necessary, but useful, and it was relatively easy. I now have a kernel called /crapshit :-) 5. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 "clean" target to remove both the debug and normal kernel. 6. Modify all to install the stripped kernel by default and the debug kernel if you enter "make install.debug". 7. Update version number of Makefiles and config.
* 1. Modify config to issue different code for debugging.grog1999-04-072-6/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2. Config complains if you use -g: Debugging is enabled by default, there is no ned to specify the -g option 3. Config warns you if you don't use -s: Building kernel with full debugging symbols. Do "config -s BSD" for historic partial symbolic support. To install the debugging kernel, do make install.debug (BSD was the name of the config file I used; I print out the same name). 4. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 and config to work if a kernel name other than 'kernel' is specified. This is not absolutely necessary, but useful, and it was relatively easy. I now have a kernel called /crapshit :-) 5. Modify Makefile.i386, Makefile.alpha, Makefile.pc98 "clean" target to remove both the debug and normal kernel. 6. Modify all to install the stripped kernel by default and the debug kernel if you enter "make install.debug". 7. Update version number of Makefiles and config.
* Oops, really don't generate compiler warnings about missing braces.bde1999-02-051-3/+3
|
* Don't generate compiler warnings about missing braces.bde1999-02-051-3/+3
|
* Fix the handling of certain devices.markm1999-02-041-3/+9
| | | | | | | | | | | | | | | Previously the foolowing lines would have broken: controller fdc0 at isa? disable port ? bio controller fdc0 at isa? disable port 0x100 bio While this would work: controller fdc0 at isa? disable port "IO_FD1" bio The first of the three lines is useful for making placeholder devices for PCMCIA-floppies, and the second is useful for non-standard hardware. The failure is a "(null)" string in ioconf.c that the compiler pukes on. Thanks to: Bruce Evans (bde@freebsd.org)
* Eliminate compiler warning when compiling "config.c" in a kernel.archie1998-12-101-2/+2
|
* * Change 'struct resource' to 'struct config_resource'.dfr1998-11-152-4/+4
| | | | * Bump config version.
* Ignore `vector xxxintr' specifications except for checking their syntax.bde1998-10-232-28/+9
| | | | | | | | | | | Interrupt handlers are now configured in drivers. Didn't update config/SMM.doc. It doesn't have any i386 examples (not even `isa'). Bumped CONFIGVERS. This is not necessary for -current yet, but using the new config with old system sources gives null pointers for all vectors.
* Removed unused/unusable "ha" keyword. Device classes should never havebde1998-10-161-2/+4
| | | | | | been visible here. Fixed disordering of keyword table by "cam".
* Don't generate unused file ioconf.h.bde1998-10-161-39/+6
| | | | | | | Didn't bump CONFIGVERS, since ioconf.h was already unused when CONFIGVERS was last bumped (although essentially the same (CAM) commit batch that bumped CONFIGVERS also added bogus includes of ioconf.h).
* Snip out some dead code from the alpha part.dfr1998-09-161-65/+1
|
OpenPOWER on IntegriCloud