Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Mar 2007 23:03:06 -0500
From:      Eric Anderson <anderson@freebsd.org>
To:        "Wojciech A. Koszek" <wkoszek@freebsd.org>
Cc:        freebsd-current@freebsd.org
Subject:   Re: Improved INCLUDE_CONFIG_FILE
Message-ID:  <4603517A.60008@freebsd.org>
In-Reply-To: <20070319151949.GB21673@FreeBSD.czest.pl>
References:  <20070319151949.GB21673@FreeBSD.czest.pl>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4603517A.60008>