summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* Implemented a new keyword `disable'. This should be useful for controllingbde1996-04-134-11/+20
| | | | | | | | dangerous drivers in GENERIC. Removed non-comments on #endifs in config.y. Improved output formatting in mkioconf.c.
* Count PCI irqs in up to 4 ISAish counters named `pci irqnn' instead ofbde1996-03-292-2/+6
| | | | | | in the clk0 counter. Reviewed by: se
* Make a little more effort to avoid touching certain generated files ifpeter1996-01-126-11/+84
| | | | they were not changed. This makes 'make depend' more useful.
* Changed the default/min/max number of users to 8/2/512 for all machinedg1995-12-291-8/+8
| | | | types. This is closer to the reality of reasonable values.
* Implemented non-statistical kernel profiling. This is based onbde1995-12-292-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | looking at a high resolution clock for each of the following events: function call, function return, interrupt entry, interrupt exit, and interesting branches. The differences between the times of these events are added at appropriate places in a ordinary histogram (as if very fast statistical profiling sampled the pc at those places) so that ordinary gprof can be used to analyze the times. gmon.h: Histogram counters need to be 4 bytes for microsecond resolutions. They will need to be larger for the 586 clock. The comments were vax-centric and wrong even on vaxes. Does anyone disagree? gprof4.c: The standard gprof should support counters of all integral sizes and the size of the counter should be in the gmon header. This hack will do until then. (Use gprof4 -u to examine the results of non-statistical profiling.) config/*: Non-statistical profiling is configured with `config -pp'. `config -p' still gives ordinary profiling. kgmon/*: Non-statistical profiling is enabled with `kgmon -B'. `kgmon -b' still enables ordinary profiling (and distables non-statistical profiling) if non-statistical profiling is configured.
* Implement support for conf/options and i386/conf/options.i386peter1995-12-119-8/+393
| | | | | | | | | | | | | | | | | | | | | | | 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.
* If CONFIG_NO_CLOBBER_EVER is defined (e.g., in /etc/make.conf), don't makewollman1995-11-282-0/+5
| | | | | it possible for config to ever blow away a work directory. Default behavior remains broken.
* Support the configuration of "od" devices.joerg1995-10-311-1/+1
| | | | Submitted by: akiyama@kme.mei.co.jp (Shunsuke Akiyama)
* Added support for a %SFILES token to auto-generate a SFILES= file list indg1995-10-291-0/+27
| | | | | the same way that is done for CFILES. Files ending in .s or .S that match the option criteria will be included in this list.
* Don't pre-processor define 'ident'. This has subtle consequences for peopledg1995-10-231-1/+1
| | | | | who don't carefully consider their choice for the machine name. The same functionality can still be had with an "option", so nothing is lost.
* Fix CLEANFILES. Some temporary files were missing.bde1995-09-281-1/+1
|
* Put declarations in a header file ("ioconf.h")bde1995-09-191-72/+113
| | | | | | | | | | Generate prototypes for SCSI functions and function pointers. Fix redundant declarations of interrupt handlers. Generate 4.4-style includes (<> instead of ""). Clean up formatting of both the source and the output a bit.
* 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-173-4/+15
| | | | | | | | | | 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-294-48/+1
| | | | | for more than a year now. They've been replaced with userland methods for changing (see adjkerntz).
* Remove trailing whitespace.rgrimes1995-05-304-10/+10
|
* Fix 3 printf's that had the wrong number of arguments.rgrimes1995-05-141-3/+3
| | | | Submitted by: gibbs
* Updated to work with Poul-Henning's recent kernel changes in the swapdg1995-05-141-12/+0
| | | | | | | | device table layout...basically, don't output the cruft anymore - it is now dynamic. Reviewed by: John Dyson and David Greenman Submitted by: Poul-Henning Kamp
* Don't automatically default dumps to be on a swap device; if the userwollman1995-05-122-8/+9
| | | | | wants dumps, he can either configure it explicitly (`dumps on' whatever) or use the dumpon(8) utility.
* Revise this to actually print all the various isa_device field valuesjkh1995-05-111-5/+5
| | | | | | it really should have been printing all this time. Also fix my rather bogus handling of the id_conflicts value by moving it to the end of isa_device and dealing with that correctly now.
* Add a new `conflicts' flag for telling when a device is in conflict withjkh1995-05-114-4/+10
| | | | | | | | | | | | 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.
* Change the perennially annoying reminder to "make depend" (which may orjkh1995-05-031-1/+1
| | | | | | | | may not be desired if you're just going to blow the kernel away again later) and substitute one that tells the user where the new kernel build directory actually IS, which can at least be argued to be useful information in all cases. Reviewed by: davidg
* Change warning message for when a device is wired to a floatingdufault1995-03-071-3/+8
| | | | | host adapter to something hopefully clearer. Take into account that "wnum()" writes into a static buffer in the warning.
* Fixed bug with wiring down given SCSI bus.dufault1995-03-031-5/+5
|
* Added configuration for SCSI devices wired in place. The documentationdufault1995-03-014-1/+160
| | | | is in "man 4 scsi".
* Implement "clean" entries for device config entries.gibbs1995-03-012-20/+36
| | | | Submitted by: Pointed out by Bruce Evans <bde@zeta.org.au>
* Make good on my promise to finally clean up the config clobbering.jkh1995-02-223-17/+34
| | | | | | | If you invoke config with the `-n' flag or have NO_CONFIG_CLOBBER in your environment, config will behave the same way it used to. This is now _documented_ as well. Rip out all the CONFIG_DONT_CLOBBER cruft; some of it wasn't even correct anyway.
* Write setconf() in KNF, in K&R C, and in Standard C.Standard C.bde1995-02-181-1/+1
|
* Do away with 'options SWAP_GENERIC' once and for all: I get illwpaul1995-02-181-1/+3
| | | | | | | | | | | | | | | | | | | just thinking about it. Two changes need to be made to allow 'config kernel swap generic' to work properly without requiring any compile-time flags: /usr/src/usr.sbin/config/mkswapconf.c: we need to define a dummy stub for the setconf() function to replace the one in swapgeneric.c that isn't available in non-generic configurations. /usr/src/sys/i386/i386/autoconf.c: the -a boot flag causes setroot() to be skipped and lets setconf() prompt the user for a root device. If you skip setroot() in a non-generic kernel, you could get severely hosed. To avoid this, we silently ignore the -a flag if rootdev != NODEV. (rootdev is always initialized to NODEV in swapgeneric.c, so if we find that rootdev is something other than NODEV, we know we're not using a generic configuration.)
* config.y:bde1995-02-162-27/+81
| | | | | | | | | | | | | | | | 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.
* Always return null-terminated identifiers from yylex().bde1995-02-161-2/+3
|
* Restore the field widths that were clobbered by the previous commit so thatbde1995-02-081-6/+6
| | | | the columns in ioconf.c line up if there are no long names.
* Removed the name length limitations on the device-driver names entirely.phk1995-02-051-6/+6
| | | | Now device-names can be more than 3 chars.
* Fix Sharnoff complaint #121 (cross-reference to config.new which does notwollman1995-01-141-2/+0
| | | | exist on the i386 platform).
* Allow config to fully handle the aic7770 driver dependancies.gibbs1994-12-312-3/+68
|
* Finish removing `#ifdef STATCLOCK'. Not removing it properly herebde1994-12-061-9/+0
| | | | | probably broke (only) the association of interrupts with strings in vmstat output.
* Remove ifdef for STATCLOCK. STATCLOCK is standard.bde1994-11-272-6/+1
|
* 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.
* Put a simple algorithmus in there that checks the last generated prototypeats1994-11-201-4/+13
| | | | | | | for ioconf.c with the current and suppress the generation if they are equal. This now prevents all the warnings from the c-compiler about sio or snd or two adaptecs. This works only if the sio lines are grouped together in the config files, but it is better than nothing.
* Add new keywords to config. The options availible in file.i386 are now:gibbs1994-11-173-12/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | /* * filename [ standard | optional ] [ config-dependent ] * [ dev* | profiling-routine ] [ device-driver] [ no-obj ] * [ compile-with "compile rule" [no-implicit-rule] ] * [ dependancy "dependancy-list"] */ I added no-obj - This entry does not create anything linkable to the kernel. dependancy - Add additional dependancy rules to a target. no-implicit-rule - Don't assume .c -> .o type rules. Config is really dumb in this area and assumes that everything is a .c file irregarless of extention. This was the best choice really since there may even be .c file that you don't want to follow the standard rules. This was all done so that the building to the aic7770 assembler and using the aic7770 assembler in the building of the aic7770 driver could be config dependant. I can now have an entry like this for the driver: aic7770 optional ahc device-driver \ compile-with "${CC} $> -o $@" \ dependancy "$S/gnu/misc/aic7770/aic7770.c" \ no-obj no-implicit-rule aic7770_seq.h optional ahc device-driver \ compile-with "${.CURDIR}/aic7770 -o $@ $S/gnu/misc/aic7770/aic7770.seq"\ dependancy "$S/gnu/misc/aic7770/aic7770.seq aic7770" \ no-obj no-implicit-rule i386/isa/aic7770.c optional ahc device-driver \ dependancy "aic7770_seq.h" I also added '\' escaping to newlines so that this doesn't look as gross as it could have. Reviewed by: jkh
* Treat formfeeds like any other whitespace.wollman1994-11-071-1/+1
|
* Don't include map.h - it's been obsoleted.dg1994-11-031-4/+0
|
* Whoops - one two many zeros in the initializer. This should have everybodyjkh1994-11-031-2/+2
| | | | enabled by default now.
* Changes to initialize the id_enabled flag to 1.jkh1994-11-031-2/+2
| | | | | | Also initialize some fields that were never initialized before, and simply defaulted to 0. I've never looked at this code before, now I know why. Config needs to die. Horribly.
* Added a slot in the swap-dev-table for NFS-diskless to abuse.phk1994-10-181-0/+1
|
* Undo the damage done to my previous changes. Whoever added thejkh1994-09-081-2/+2
| | | | | | | | | | | | | | | | | | | conditional did it backwards, thus flipping the behavior back off again by default (and only re-enableable through a very counter-intuitive option setting!). I'm glad I caught this and would merely like to state again for the record that if you're going to go and modify my changes then you should at least: 1. Do it correctly, since to do otherwise is kind of a slap in the face. 2. TELL me. This is not me just being compulsive, this is simple courtesy. I'm speaking just of my own preferences here, not necessarily trying to impose my standards on the group at large (e.g. some other folks might not even care). Submitted by: jkh
* Revert back to old config behavior if compiled with -DCONFIG_DONT_CLOBBER.wollman1994-09-062-0/+9
|
* Eradicate my #1 (ok, maybe #2) peeve by making config now blow awayjkh1994-09-031-1/+19
| | | | | | | and recreate any previous ../../compile/<blah> directory before laying down new files. The depends just aren't smart enough to save us from the grief that config's old behavior has always caused. Submitted by: jkh
* Oops...forgot to list the changes....dg1994-08-184-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | /usr/src/usr.sbin.config: o -DSTATCLOCK gives kludges to support the rtc non-device as well as old kludges to support the clk non-device. /usr/src/usr.sbin/config.8: o Document the trivialness of the new vector.h. /usr/src/usr.sbin/mkglue.c: o Only print DEVICE_NAMES and NR_DEVICES in vector.h. These are only required to support vmstat. The vmstat interface will need to be improved for dynamic loading. /usr/src/usr.sbin/mkioconf.c: o Print device ids to be used as indexes into DEVICE_NAMES. o Print secondary interrupt handler entry points (xxxintr()) instead of primary ones (VdevU()). Primary ones are now XintrI() and XfastintrI() and are independent of the config so they are not handled here. o Minor cleanups. Submitted by: Bruce Evans
* Support for Bruce Evans' new dynamic interrupt support.dg1994-08-184-86/+90
| | | | Submitted by: Bruce Evans
OpenPOWER on IntegriCloud