History log of /freebsd-current/usr.sbin/config/config.8
Revision Date Author Comments
# 8a7b6120 23-Nov-2023 Warner Losh <imp@FreeBSD.org>

usr.sbin: Remove ancient SCCS tags.

Remove ancient SCCS tags from the tree, automated scripting, with two
minor fixup to keep things compiling. All the common forms in the tree
were removed with a perl script.

Sponsored by: Netflix


# b2c76c41 16-Aug-2023 Warner Losh <imp@FreeBSD.org>

Remove $FreeBSD$: one-line nroff pattern

Remove /^\.\\"\s*\$FreeBSD\$$\n/


# 3c405c7e 17-Aug-2022 Jens Schweikhardt <schweikh@FreeBSD.org>

Indicate which port gdb.1 and kgdb.1 come from.


# c8786bba 14-Apr-2021 Gordon Bergling <gbe@FreeBSD.org>

Revert "config(8): Correct the mentioned paper in the SEE ALSO section"

config(8) was first imported from 4.4BSD.

Reported by: rgrimes

This reverts commit e6ab1e365c06559e964667d2f5a6de856fa28be6.


# e6ab1e36 12-Apr-2021 Gordon Bergling <gbe@FreeBSD.org>

config(8): Correct the mentioned paper in the SEE ALSO section

FreeBSD's version of the config(8) utility is based on 4.3BSD not
4.4BSD. So correct the mentioned paper in the SEE ALSO section.

Reported by: imp
Reviewed by: imp
X-MFC-with: 2b59392cb0da804e825c63469beb1934ec4267db
Differential Revision: https://reviews.freebsd.org/D29701


# 2b59392c 09-Apr-2021 Gordon Bergling <gbe@FreeBSD.org>

config(8): Mention the authors of a paper in the SEE ALSO section

Obtained from: OpenBSD
MFC after: 1 week


# 69efe369 31-Mar-2021 Konstantin Belousov <kib@FreeBSD.org>

config(8): remove support for -p

and other equivalent ways to request mcount-based profiling, like
'profile N' in kernel config.

Reviewed by: jhb
Sponsored by: The FreeBSD Foundation
Differential revision: https://reviews.freebsd.org/D29529


# aeb0c721 19-Dec-2020 Gordon Bergling <gbe@FreeBSD.org>

config: Fix a few mandoc related errors

- new sentence, new line
- no blank before trailing delimiter

MFC after: 1 week


# f36e950b 28-Jun-2020 Mateusz Piotrowski <0mp@FreeBSD.org>

Do not use macros in the argument to -width

This patch improves the presentation of the FILES section dramatically.

MFC after: 2 weeks


# fbbd9655 28-Feb-2017 Warner Losh <imp@FreeBSD.org>

Renumber copyright clause 4

Renumber cluase 4 to 3, per what everybody else did when BSD granted
them permission to remove clause 3. My insistance on keeping the same
numbering for legal reasons is too pedantic, so give up on that point.

Submitted by: Jan Schaumann <jschauma@stevens.edu>
Pull Request: https://github.com/freebsd/freebsd/pull/96


# 69627a0d 29-Jan-2015 Craig Rodrigues <rodrigc@FreeBSD.org>

Add -s option to config.

This option allows for specifying the directory to use as the location for
kernel source files. This option was ported from NetBSD.

GitHub Pull Request: https://github.com/freebsd/freebsd/pull/18
Submitted by: Steve Kiernan <stevek@juniper.net>, Simon Gerraty <sjg@juniper.net>
Obtained from: Juniper Networks, Inc.
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D1722
Relnotes: yes


# f8d7aff9 29-Jul-2014 Joel Dahl <joel@FreeBSD.org>

mdoc: kill EOL whitespace.


# ae094461 20-Mar-2014 Alan Somers <asomers@FreeBSD.org>

Fix kern/187712: config(8) does not respect KERNCONFDIR.
The impact of this bug is that you cannot build a kernel if both of the
following are true:
1) The kernel config file is in a non-default location
2) The kernel config file uses the "include" statement from config(5).

usr.sbin/config/main.c
usr.sbin/config/config.8
usr.sbin/config/config.h
usr.sbin/config/lang.l
Added a "-I path" option to config(8). By analogy to cc(1), it adds
an extra path in which the "include" statement will search for
files.

Makefile.inc1
Pass "-I ${KERNCONFDIR}" to config(8).

PR: kern/187712
Reviewed by: will, imp (previous version)
MFC after: 3 weeks
Sponsored by: Spectra Logic Corporation


# 50d675f7 28-Mar-2012 Eitan Adler <eadler@FreeBSD.org>

Remove trailing whitespace per mdoc lint warning

Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days


# a7d5f7eb 19-Oct-2010 Jamie Gritton <jamie@FreeBSD.org>

A new jail(8) with a configuration file, to replace the work currently done
by /etc/rc.d/jail.


# 9b047d4a 12-Jul-2010 Nathan Whitehorn <nwhitehorn@FreeBSD.org>

Enhance config to handle MACHINEs with multiple architectures:

- Passing -m to config will now print the MACHINE and MACHINE_ARCH
given in the passed kernel configuration file and then exit.
- If an option is defined in options.MACHINE with the same name as the
architecture of the kernel being configured, that option will be
considered set. This allows conditional compilation based on CPU
architecture.

Config version is now 600010.

Reviewed by: imp


# fe0506d7 09-Mar-2010 Marcel Moolenaar <marcel@FreeBSD.org>

Create the altix project branch. The altix project will add support
for the SGI Altix 350 to FreeBSD/ia64. The hardware used for porting
is a two-module system, consisting of a base compute module and a
CPU expansion module. SGI's NUMAFlex architecture can be an excellent
platform to test CPU affinity and NUMA-aware features in FreeBSD.


# 50a45965 26-Jan-2009 Warner Losh <imp@FreeBSD.org>

Delete commented out ancient history.


# d7f03759 19-Oct-2008 Ulf Lilleengen <lulf@FreeBSD.org>

- Import the HEAD csup code which is the basis for the cvsmode work.


# 744b947e 12-May-2007 Wojciech A. Koszek <wkoszek@FreeBSD.org>

Improve INCLUDE_CONFIG_FILE support.

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@


# fffa30fb 21-Oct-2006 Ruslan Ermilov <ru@FreeBSD.org>

Comment out the first paragraph; while it tells the true (we're using
the old BSD config(8) utility in FreeBSD), it does not look good.

PR: docs/100328


# 71d8a448 10-Aug-2005 David E. O'Brien <obrien@FreeBSD.org>

Add an option to tell what version of config(8) this is.


# 59a3c79d 18-Jan-2005 Ruslan Ermilov <ru@FreeBSD.org>

Sort sections.


# fff666a6 16-Dec-2004 Ruslan Ermilov <ru@FreeBSD.org>

The ioconf.c is no longer generated.

Submitted by: Craig Rodrigues


# 23717fc4 06-Aug-2004 Warner Losh <imp@FreeBSD.org>

Per letter dated July 22, 1999, delete clause 3 from code directly
from Berkeley.


# 3b5e7092 06-Aug-2003 Simon L. B. Nielsen <simon@FreeBSD.org>

Add a reference to config(5) in the SEE ALSO section.

Suggested by: dcs
Approved by: ceri (mentor)


# c2f1217b 20-Apr-2003 Christian Brueffer <brueffer@FreeBSD.org>

Grammar fix

PR: 51164
Submitted by: Jeff Ito <jeffi@rcn.com>
MFC after: 3 days


# 7f373b5b 18-Feb-2003 Ceri Davies <ceri@FreeBSD.org>

Bring the suggested command for extracting a configuration file from the
kernel into line with that suggested in LINT.

PR: bin/48157
Submitted by: naddy
MFC After: 4.8


# 8d5d039f 12-Dec-2002 Ruslan Ermilov <ru@FreeBSD.org>

Uniformly refer to a file system as "file system".

Approved by: re


# a654c53e 13-Aug-2002 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: Removed redundant .Ns calls.


# 490d5836 14-Jul-2002 Philippe Charnier <charnier@FreeBSD.org>

The .Nm utility


# 67c8020f 15-May-2002 Tom Rhodes <trhodes@FreeBSD.org>

Consistancy check: s/file system/filesystem/g


# 66d4a748 26-Oct-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police:

- Bump document date.
- Remove hard sentence breaks.
- Fix markup.


# 753d686d 14-Aug-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: s/BSD/.Bx/ where appropriate.


# f247324d 15-Jul-2001 Dima Dorfman <dd@FreeBSD.org>

Remove whitespace at EOL.


# a4c37c81 10-Jul-2001 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: removed HISTORY info from the .Os call.


# b0fa8b5b 04-Jul-2001 Warner Losh <imp@FreeBSD.org>

Bring FILES section up to date.

submitted by: Mark Peek <mark-ml@whistle.com>


# 971470c3 30-Jun-2001 Warner Losh <imp@FreeBSD.org>

Move kernel compile directory from sys/compile/FOO to
sys/compile/${MACHINE}/FOO.

Reviewed by: obrien, peter and the USENIX terminal room secret kernel cabal


# b8e39fd1 22-Jan-2001 Peter Wemm <peter@FreeBSD.org>

Clean up some obsolete stuff. config -r has not been needed since around
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. :-(


# 1cb88f42 11-Dec-2000 Ben Smithurst <ben@FreeBSD.org>

.Nm Config -> .Nm, there is no such program "Config" in FreeBSD.

PR: 23404
Submitted by: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>


# e97407b4 20-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

mdoc(7) police: use the new features of the Nm macro.


# b5c508fb 14-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

Use Fx macro wherever possible.


# 726b61ab 10-Nov-2000 Ruslan Ermilov <ru@FreeBSD.org>

Avoid use of direct troff requests in mdoc(7) manual pages.


# f2e366a1 01-Mar-2000 Sheldon Hearn <sheldonh@FreeBSD.org>

Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.


# d67724c7 23-Jan-2000 Philippe Charnier <charnier@FreeBSD.org>

Use Ns and Sx. -current is 4 not 3.


# 94142695 08-Jan-2000 Peter Wemm <peter@FreeBSD.org>

Apply the axe to some more cruft in config(8). In particular:
- 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.


# c1454d67 30-Oct-1999 Marcel Moolenaar <marcel@FreeBSD.org>

Add option "-d destdir" which instructs config to use another output
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


# 1b00e6b5 08-Oct-1999 Peter Wemm <peter@FreeBSD.org>

Zap references to 'major' token, it's not used.
Zap references to devices.i386 - it's not used. (neither is devices.pc98
or devices.alpha)


# 97d92980 27-Aug-1999 Peter Wemm <peter@FreeBSD.org>

$Id$ -> $FreeBSD$


# f437b38c 17-Aug-1999 Chris Costello <chris@FreeBSD.org>

Fix a bunch of broken cross-references


# 414a35e6 12-Jul-1999 Nik Clayton <nik@FreeBSD.org>

Add $Id$, to make it simpler for members of the translation teams to
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


# 4357ca88 10-Apr-1999 Greg Lehey <grog@FreeBSD.org>

Back out default debug kernel. The flags revert to historical behaviour.

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.


# fb6a9d37 09-Apr-1999 Andrey A. Chernov <ache@FreeBSD.org>

add -s to synopsis


# 84676b86 07-Apr-1999 Greg Lehey <grog@FreeBSD.org>

1. Modify config to issue different code for debugging.
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.


# b272cc1e 17-Feb-1998 Eivind Eklund <eivind@FreeBSD.org>

Make '-n' the default, and introduce a new flag '-r' to get old
behaviour. Also indicate which option(s) are unknown if there are any
old-style options.


# d5831691 15-Sep-1997 Philippe Charnier <charnier@FreeBSD.org>

Use err(3), add usage(). -Wall clean.


# 3ec03428 07-Sep-1997 Bruce Evans <bde@FreeBSD.org>

Don't say that swapping is configured by config.


# 43b74d61 08-Jun-1996 Jordan K. Hubbard <jkh@FreeBSD.org>

Bring back the `config file in the kernel' feature from the 1.x days. This
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>


# 912e6037 29-Dec-1995 Bruce Evans <bde@FreeBSD.org>

Implemented non-statistical kernel profiling. This is based on
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.


# b5909509 22-Feb-1995 Jordan K. Hubbard <jkh@FreeBSD.org>

Make good on my promise to finally clean up the config clobbering.
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.


# 5ddd6b6a 14-Jan-1995 Garrett Wollman <wollman@FreeBSD.org>

Fix Sharnoff complaint #121 (cross-reference to config.new which does not
exist on the i386 platform).


# 5ced58e4 17-Aug-1994 David Greenman <dg@FreeBSD.org>

Support for Bruce Evans' new dynamic interrupt support.

Submitted by: Bruce Evans


# 4eaaddb7 26-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

Upgrade config to be compatible with our i386 port, pull in 95% of the
changes that have been made in FreeBSD 1.x, except for possibly the nfs
diskless support this is a completed config.


# dea673e9 25-May-1994 Rodney W. Grimes <rgrimes@FreeBSD.org>

BSD 4.4 Lite usr.sbin Sources