INCLUDE_CONFIG_FILE patches

Wojciech A. Koszek wkoszek at freebsd.org
Sun May 6 16:08:12 UTC 2007


Hello,

We talked about improved INCLUDE_CONFIG_FILE work some time ago. I
cleaned it up, and I have prepared a patch for the latest -CURRENT.

It's here:

	http://people.freebsd.org/~wkoszek/patches/kernconf.patch

If you have any suggestions, please let me know as I'd really like to
see this patch into the tree before RELENG_7. 

Please note that the changes aren't very serious, but config(8)'s
functionality is, so any worries should be stated now.

With this patch, after building a kernel with:

	options INCLUDE_CONFIG_FILE

you should be able to obtain it's configuration file with a new config(8)
and it's -k option:

	config -k <kernelfile>

The output should be ready to be redirected to a file:

	config -k <kernelfile> > NEWKERNEL

Now, you should be able to type:

	config NEWKERNEL

And newly created kernel should contain the very same options as the old
one.

Thanks,

-- 
Wojciech A. Koszek
wkoszek at FreeBSD.org
http://FreeBSD.czest.pl/dunstan/


More information about the freebsd-current mailing list