summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* Make it possible to specify profiling in the kernel config file.phk2000-10-143-1/+5
| | | | Do so for LINT.
* Add ia64 support.dfr2000-09-294-0/+6
|
* If a ${KERNEL}.hints file exists, and no hints are specified explicitly,peter2000-08-254-2/+14
| | | | | then include the hints with a marker indicating that it is a fallback. The kernel side of this is to come shortly.
* Argh! I broke the static hints parser at the last minute on freefall whenpeter2000-06-141-1/+1
| | | | | | | I added the $FreeBSD$ (commented) line. Fix: 1: s/break/continue/ 2: will somebody please shoot me! :-]
* Borrow phk's axe and apply the next stage of config(8)'s evolution.peter2000-06-1310-639/+192
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* A checkpoint of a part of a work-in-progress. Some more cleanups forpeter2000-06-106-68/+52
| | | | | | | | config(8). This commit allows control of the creation of the #include "foo.h" files. We now only create them explicitly when needed. BTW; these are mostly bad because they usually imply static limits on numbers of units for devices. eg: struct mysoftc sc[NFOO]; These static limits have Got To Go.
* Remove single-space hard sentence breaks. These degrade the qualitysheldonh2000-03-011-1/+2
| | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc.
* Mark the 'conflicts' keyword as obsolete, and don't generate (unused)peter2000-01-293-7/+3
| | | | resource table entries for it.
* Use Ns and Sx. -current is 4 not 3.charnier2000-01-232-7/+8
|
* Remove the cam-specific device wiring code. This was a duplicate ofpeter2000-01-233-91/+0
| | | | the data in the resource tables, and cam is getting it directly now.
* Bump configvers.h as a precaution. Although existing config files willpeter2000-01-231-1/+1
| | | | work unmodified still, new config files won't work on the old ones.
* Clean up something in config(8) that has annoyed me for ages. Removepeter2000-01-232-11/+19
| | | | | | | | | | | | | | the need to specify the unit number of unwired devices. ie: instead of saying "device fxp0" we can say "device fxp" which is much closer to what it actually means. The former (fxp0) implied something about reserving the 0th unit, but it does not and never did - it was a figment of config(8)'s imagination that we had to work around.. "device fxp0" simply means "compile in the fxp device driver", so we may as well just write it as "device fxp" which is closer to what it really means. Doing this also saves us from filling up the ioconf.c tables with meaningless entries.
* Fix a bungle with the CAM static wiring tables. Write CAMCONF_UNSPECpeter2000-01-121-4/+4
| | | | | | | instead of -2. This (I believe) caused static wirings to not match. This should fix Bill Pechter's problem but we'll see. Problem discovered by: Bill Pechter <pechter@shell.monmouth.com>
* 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.
OpenPOWER on IntegriCloud