aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/config/config.8
Commit message (Collapse)AuthorAgeFilesLines
* Improve INCLUDE_CONFIG_FILE support.Wojciech A. Koszek2007-05-121-13/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change will let us to have full configuration of a running kernel available in sysctl: sysctl -b kern.conftxt The same configuration is also contained within the kernel image. It can be obtained with: config -x <kernelfile> Current functionality lets you to quickly recover kernel configuration, by simply redirecting output from commands presented above and starting kernel build procedure. "include" statements are also honored, which means options and devices from included files are also included. Please note that comments from configuration files are not preserved by default. In order to preserve them, you can use -C flag for config(8). This will bring configuration file and included files literally; however, redirection to a file no longer works directly. This commit was followed by discussion, that took place on freebsd-current@. For more details, look here: http://lists.freebsd.org/pipermail/freebsd-current/2007-March/069994.html http://lists.freebsd.org/pipermail/freebsd-current/2007-May/071844.html Development of this patch took place in Perforce, hierarchy: //depot/user/wkoszek/wkoszek_kconftxt/ Support from: freebsd-current@ (links above) Reviewed by: imp@ Approved by: imp@ Notes: svn path=/head/; revision=169507
* Comment out the first paragraph; while it tells the true (we're usingRuslan Ermilov2006-10-211-14/+14
| | | | | | | | | the old BSD config(8) utility in FreeBSD), it does not look good. PR: docs/100328 Notes: svn path=/head/; revision=163590
* Add an option to tell what version of config(8) this is.David E. O'Brien2005-08-101-1/+5
| | | | Notes: svn path=/head/; revision=148916
* Sort sections.Ruslan Ermilov2005-01-181-2/+2
| | | | Notes: svn path=/head/; revision=140442
* The ioconf.c is no longer generated.Ruslan Ermilov2004-12-161-4/+1
| | | | | | | Submitted by: Craig Rodrigues Notes: svn path=/head/; revision=138912
* Per letter dated July 22, 1999, delete clause 3 from code directlyWarner Losh2004-08-071-4/+0
| | | | | | | from Berkeley. Notes: svn path=/head/; revision=133248
* Add a reference to config(5) in the SEE ALSO section.Simon L. B. Nielsen2003-08-061-0/+2
| | | | | | | | Suggested by: dcs Approved by: ceri (mentor) Notes: svn path=/head/; revision=118564
* Grammar fixChristian Brueffer2003-04-201-1/+1
| | | | | | | | | PR: 51164 Submitted by: Jeff Ito <jeffi@rcn.com> MFC after: 3 days Notes: svn path=/head/; revision=113749
* Bring the suggested command for extracting a configuration file from theCeri Davies2003-02-181-1/+1
| | | | | | | | | | | kernel into line with that suggested in LINT. PR: bin/48157 Submitted by: naddy MFC After: 4.8 Notes: svn path=/head/; revision=111095
* Uniformly refer to a file system as "file system".Ruslan Ermilov2002-12-121-2/+2
| | | | | | | Approved by: re Notes: svn path=/head/; revision=107788
* mdoc(7) police: Removed redundant .Ns calls.Ruslan Ermilov2002-08-131-2/+2
| | | | Notes: svn path=/head/; revision=101828
* The .Nm utilityPhilippe Charnier2002-07-141-8/+12
| | | | Notes: svn path=/head/; revision=99968
* Consistancy check: s/file system/filesystem/gTom Rhodes2002-05-161-2/+2
| | | | Notes: svn path=/head/; revision=96705
* mdoc(7) police:Ruslan Ermilov2001-10-261-38/+49
| | | | | | | | | - Bump document date. - Remove hard sentence breaks. - Fix markup. Notes: svn path=/head/; revision=85536
* mdoc(7) police: s/BSD/.Bx/ where appropriate.Ruslan Ermilov2001-08-141-2/+6
| | | | Notes: svn path=/head/; revision=81622
* Remove whitespace at EOL.Dima Dorfman2001-07-151-4/+4
| | | | Notes: svn path=/head/; revision=79755
* mdoc(7) police: removed HISTORY info from the .Os call.Ruslan Ermilov2001-07-101-1/+1
| | | | Notes: svn path=/head/; revision=79537
* Bring FILES section up to date.Warner Losh2001-07-041-12/+10
| | | | | | | submitted by: Mark Peek <mark-ml@whistle.com> Notes: svn path=/head/; revision=79236
* Move kernel compile directory from sys/compile/FOO toWarner Losh2001-06-301-1/+1
| | | | | | | | | sys/compile/${MACHINE}/FOO. Reviewed by: obrien, peter and the USENIX terminal room secret kernel cabal Notes: svn path=/head/; revision=79013
* Clean up some obsolete stuff. config -r has not been needed since aroundPeter Wemm2001-01-221-6/+1
| | | | | | | | | FreeBSD 3.x or so when the 'make depend' picked up the opt_foo.h files. Convert warnings into actual errors in the hope that buildkernel users will pay more attention. :-( Notes: svn path=/head/; revision=71363
* .Nm Config -> .Nm, there is no such program "Config" in FreeBSD.Ben Smithurst2000-12-111-4/+4
| | | | | | | | PR: 23404 Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at> Notes: svn path=/head/; revision=69850
* mdoc(7) police: use the new features of the Nm macro.Ruslan Ermilov2000-11-201-3/+3
| | | | Notes: svn path=/head/; revision=68965
* Use Fx macro wherever possible.Ruslan Ermilov2000-11-141-2/+5
| | | | Notes: svn path=/head/; revision=68716
* Avoid use of direct troff requests in mdoc(7) manual pages.Ruslan Ermilov2000-11-101-2/+1
| | | | Notes: svn path=/head/; revision=68575
* Remove single-space hard sentence breaks. These degrade the qualitySheldon Hearn2000-03-011-1/+2
| | | | | | | | of the typeset output, tend to make diffs harder to read and provide bad examples for new-comers to mdoc. Notes: svn path=/head/; revision=57673
* Use Ns and Sx. -current is 4 not 3.Philippe Charnier2000-01-231-5/+6
| | | | Notes: svn path=/head/; revision=56481
* Apply the axe to some more cruft in config(8). In particular:Peter Wemm2000-01-081-8/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | - 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. Notes: svn path=/head/; revision=55605
* Add option "-d destdir" which instructs config to use another outputMarcel Moolenaar1999-10-301-3/+14
| | | | | | | | | | | | | | | | | | | 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
* Zap references to 'major' token, it's not used.Peter Wemm1999-10-081-3/+0
| | | | | | | | Zap references to devices.i386 - it's not used. (neither is devices.pc98 or devices.alpha) Notes: svn path=/head/; revision=52007
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50479
* Fix a bunch of broken cross-referencesChris Costello1999-08-181-2/+2
| | | | Notes: svn path=/head/; revision=50000
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-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 Notes: svn path=/head/; revision=48791
* Back out default debug kernel. The flags revert to historical behaviour.Greg Lehey1999-04-111-28/+46
| | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=45579
* add -s to synopsisAndrey A. Chernov1999-04-101-1/+1
| | | | Notes: svn path=/head/; revision=45523
* 1. Modify config to issue different code for debugging.Greg Lehey1999-04-071-2/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=45427
* Make '-n' the default, and introduce a new flag '-r' to get oldEivind Eklund1998-02-181-9/+6
| | | | | | | | behaviour. Also indicate which option(s) are unknown if there are any old-style options. Notes: svn path=/head/; revision=33538
* Use err(3), add usage(). -Wall clean.Philippe Charnier1997-09-151-28/+15
| | | | Notes: svn path=/head/; revision=29451
* Don't say that swapping is configured by config.Bruce Evans1997-09-071-3/+3
| | | | Notes: svn path=/head/; revision=29193
* Bring back the `config file in the kernel' feature from the 1.x days. ThisJordan K. Hubbard1996-06-081-0/+7
| | | | | | | | | | 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> Notes: svn path=/head/; revision=16239
* Implemented non-statistical kernel profiling. This is based onBruce Evans1995-12-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=13107
* Make good on my promise to finally clean up the config clobbering.Jordan K. Hubbard1995-02-221-4/+16
| | | | | | | | | | 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. Notes: svn path=/head/; revision=6631
* Fix Sharnoff complaint #121 (cross-reference to config.new which does notGarrett Wollman1995-01-141-2/+0
| | | | | | | exist on the i386 platform). Notes: svn path=/head/; revision=5613
* Support for Bruce Evans' new dynamic interrupt support.David Greenman1994-08-181-3/+2
| | | | | | | Submitted by: Bruce Evans Notes: svn path=/head/; revision=2104
* Upgrade config to be compatible with our i386 port, pull in 95% of theRodney W. Grimes1994-05-261-20/+24
| | | | | | | | changes that have been made in FreeBSD 1.x, except for possibly the nfs diskless support this is a completed config. Notes: svn path=/head/; revision=1566
* BSD 4.4 Lite usr.sbin SourcesRodney W. Grimes1994-05-261-0/+174
Notes: svn path=/cvs2svn/branches/WIN_TUE_NL/; revision=1553