Improved INCLUDE_CONFIG_FILE

Eric Anderson anderson at freebsd.org
Fri Mar 23 04:03:07 UTC 2007


On 03/19/07 10:19, Wojciech A. Koszek wrote:
> Hello,
> 
> Current implementation of INCLUDE_CONFIG_FILE option has number of
> issues. Including it in MAC or SMP configurations will bring only text
> of this single file into the kernel file. We're not able to see
> configuration of running ("live") kernel, which could be helpful while
> tracking users' reports. You can't get easy to use file format, ready
> for configuration process.
> 
> In my Perforce wkoszek_kconftxt branch:
> 
> 	//depot/user/wkoszek/wkoszek_kconftxt/...
> 
> I brought some modifications to existing config(8) and added system
> interface that would let us to see configuration of running kernel
> (currently -- via kern.conftxt sysctl), as well as other kernel file
> through config(8)'s -k option.
> 
> It would be possible to redirect an output from either sysctl(8) or
> config -k <kernel> to the file, and config(8) would be smart enough to
> do use this file without additional modifications.
> 
> "subr_kopt.c" was chosen as a compromise, since I couldn't find a better
> place, where "opt_global.h" would be included.

I can't comment on where to put it, but I can say that this is a great 
feature update! I bet if you generate a nice patch for people, you'll 
get a lot of people tinkering with it.


Eric



More information about the freebsd-current mailing list