Re: Improved INCLUDE_CONFIG_FILE

From: Eric Anderson <anderson_at_freebsd.org>
Date: Thu, 22 Mar 2007 23:03:06 -0500
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
Received on Fri Mar 23 2007 - 03:03:07 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:07 UTC