freebsd-skq/usr.sbin/config
wkoszek 2e673327ec 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@
2007-05-12 19:38:18 +00:00
..
SMM.doc
config.5 Document multiple hints lines. 2006-10-24 00:44:40 +00:00
config.8 Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
config.h Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
config.y Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
configvers.h Added rudimentary support for the "include" directive (inside "files"). 2006-10-01 17:17:29 +00:00
kernconf.tmpl Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
lang.l Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
main.c Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
Makefile Improve INCLUDE_CONFIG_FILE support. 2007-05-12 19:38:18 +00:00
mkheaders.c Clean some code that became obfuscated over the years: 2005-11-25 22:25:34 +00:00
mkmakefile.c Don't leak files. 2006-10-24 07:12:31 +00:00
mkoptions.c Use calloc() instead of zeroing the memory our own. 2006-06-07 01:43:26 +00:00