Re: kernel config files outside of sys/${ARCH}/conf ?

From: Aleksandr Rybalko <ray_at_dlink.ua>
Date: Thu, 12 Jan 2012 12:22:50 +0200
On Thu, 12 Jan 2012 11:17:39 +0100
Luigi Rizzo <rizzo_at_iet.unipi.it> wrote:

>> On Thu, Jan 12, 2012 at 01:55:39AM -0800, Garrett Cooper wrote:
>> > On Thu, Jan 12, 2012 at 2:06 AM, Luigi Rizzo <rizzo_at_iet.unipi.it>
>> > wrote:
>> > > On Thu, Jan 12, 2012 at 10:16:53AM +0100, Gary Jennejohn wrote:
>> > >> On Thu, 12 Jan 2012 09:11:39 +0100
>> > >> Luigi Rizzo <rizzo_at_iet.unipi.it> wrote:
>> > >>
>> > >> > usr/sbin/config assumes that the kernel config file
>> > >> > lives in ${src_base}/sys/${arch}/conf , which means that
>> > >> > if you need to build a custom kernel one needs RW
>> > >> > access to that directory.
>> > >> >
>> > >> > Any idea on how we can enable config to work in a
>> > >> > generic directory ?
>> > >> >
>> > >> > I scanned the source code usr.sbin/config and found that
>> > >> > it uses hardwired paths -- specifically, it looks for
>> > >> > the kernel source tree in "../.." and has multiple
>> > >> > hardwired paths such as "../../conf/".
>> > >> > There is also a somewhat undocumented access to a
>> > >> > file called DEFAULTS that extends the configuration you pass.
>> > >> >
>> > >> > Any objections to the addition of a "-s" option to config(8)
>> > >> > to specify the location of the source tree ?
>> > >> >
>> > >>
>> > >> Seems like a good idea to me as long as the old behavior is
>> > >> kept.
>> > >
>> > > of course :)
>> > 
>> >     Why not just set KERNCONFDIR?
>> 
>> The variable does not seem to be used by usr/sbin/config
>> 
>> cheers
>> luigi
>> _______________________________________________
>> freebsd-current_at_freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-current
>> To unsubscribe, send any mail to
>> "freebsd-current-unsubscribe_at_freebsd.org"

Hi,

ZRouter.org use just full path to config file 
make KERNCONF=/path/to/config buildkernel

Main difference in: zrouter.org config don't use includes, but generate
full config.

WBW
-- 
Alexandr Rybalko <ray_at_dlink.ua> 
aka Alex RAY <ray_at_ddteam.net>
Received on Thu Jan 12 2012 - 09:40:29 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:23 UTC