summaryrefslogtreecommitdiffstats
path: root/usr.sbin/config
Commit message (Collapse)AuthorAgeFilesLines
* Fix incorrect format string detected by "-Wformat".jdp1997-11-181-2/+2
|
* Fix some breakage from my last set of changes.joerg1997-11-071-2/+2
| | | | | PR: bin/4892 Submitted by: Vasim Valejev <vasim@uddias.diaspro.com>
* Bump configvers to 300003 to account for the crd->card (and related)msmith1997-11-061-2/+2
| | | | namespace changes.
* Allow for a keyword in the "files" file named "mandatory". The firstjoerg1997-10-283-6/+31
| | | | | | | | candidate for this is "npx0", more are likely to follow. Check for pseudo-devices that are being configured, but don't appear in any "files" file. The ``pseudo-device bpf 2'' already hit me too often.
* For safety's sake, explicitly depend all objects on the configvers.h headerpeter1997-10-221-0/+2
| | | | | to make sure that it's all recompiled even if there is no 'make depend'. This is overkill, but should be one less thing that someone can do wrong.
* Recognize a %VERSREQ=nnnnn string in the system Makefile. Both config(8)peter1997-10-222-2/+22
| | | | | | | | | and the kernel will have a 'config interface version number'. If an incompatable change is made to the kernel that requires a rebuild of config(8) (such as the cam devtab stuff), then the version number would be bumped in both places. If a user neglects to rebuild config, then they will get a nagging (but non-fatal) warning that they need to rebuild config.
* Add isa_devtab_cam.gibbs1997-09-214-2/+8
|
* Wrap too long lines.charnier1997-09-172-5/+7
| | | | Requested by: Bruce.
* Police from style.9 and Bruce.charnier1997-09-161-3/+5
|
* Use err(3), add usage(). -Wall clean.charnier1997-09-1511-197/+265
|
* Oops, the previous commit shouldn't have touch the Makefile.bde1997-09-071-1/+1
|
* Don't say that swapping is configured by config.bde1997-09-072-4/+4
|
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-311-1/+1
| | | | posix standard on the topic.
* Reserve a placeholder for 4 SMP ipi interrupts in the same way thatpeter1997-03-292-2/+6
| | | | | | | it's done for pci. This is so that systat and vmstat can get at the interrupt counts for the Inter-Processor Interrupts when running a smp kernel. This doesn't affect the normal kernel, but makes life easier for the smp people who don't have to track two versions of config.
* Remove support for "port none" and "port auto", it gains nothing,ache1997-03-284-12/+2
| | | | | | 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-263-5/+7
| | | | Now port ommiting is equal to port "none" not to port 0
* Print negative values only for two cases usedache1997-03-251-3/+3
| | | | | in config for iobase: -1 (auto) and -2 (none) Other values are printed as big port numbers
* Fix iobase printing for autodetect and none casesache1997-03-251-1/+3
| | | | (negative numbers was printed as very big ports)
* Sweep through the tree fixing mmap() usage:alex1997-01-161-4/+4
| | | | | | | | | | | | - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde
* Tidy up the generated config.c file. Use #include "opt_config.h", commentpeter1996-12-261-2/+4
| | | | | out text after #endif line, add missing \n at end of file, only install new config.c if it's different to the last one which preserves the timestamp.
* Part #2 of the config cleanup. More aggressive, replaced an NIHjoerg1996-12-145-38/+31
| | | | | | | | | | 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-143-15/+14
| | | | | | | 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)
* Moved nonstandard compiler profiling options out of config. Just printbde1996-12-131-6/+4
| | | | | | | | the profiling level in config and decide what to do in makefiles. Makefile.i386: Align functions to 16-byte boundaries if profiling is enabled. This will allow a fourfold reduction in the size of the profiling buffers.
* Bugfix: all device counts >= 256 was broken, they truncated by % 255ache1996-08-211-1/+1
| | | | | because of u_char count field size. It hits when device header file already present.
* Bring back the `config file in the kernel' feature from the 1.x days. Thisjkh1996-06-082-0/+45
| | | | | | | is conditionalized by the INCLUDE_CONFIG_FILE option in your kernel config file and is not turned on by default. Submitted-By: Bill Pechter <pechter@shell.monmouth.com>
* Backout yacc changes.phk1996-06-029-9/+9
|
* yacc rule changes.phk1996-05-309-9/+9
|
* 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.
OpenPOWER on IntegriCloud