Date: Thu, 12 Jan 2012 10:16:53 +0100 From: Gary Jennejohn <gljennjohn@googlemail.com> To: Luigi Rizzo <rizzo@iet.unipi.it> Cc: current@freebsd.org Subject: Re: kernel config files outside of sys/${ARCH}/conf ? Message-ID: <20120112101653.57decd32@ernst.jennejohn.org> In-Reply-To: <20120112081139.GA9921@onelab2.iet.unipi.it> References: <20120112081139.GA9921@onelab2.iet.unipi.it>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 12 Jan 2012 09:11:39 +0100 Luigi Rizzo <rizzo@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. -- Gary Jennejohn (gj@)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120112101653.57decd32>