From owner-freebsd-current@FreeBSD.ORG Thu Jan 12 10:40:29 2012 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 774D91065676 for ; Thu, 12 Jan 2012 10:40:29 +0000 (UTC) (envelope-from ray@dlink.ua) Received: from smtp.dlink.ua (smtp.dlink.ua [193.138.187.146]) by mx1.freebsd.org (Postfix) with ESMTP id 2592D8FC14 for ; Thu, 12 Jan 2012 10:40:28 +0000 (UTC) Received: from terran.dlink.ua (unknown [192.168.10.90]) (Authenticated sender: ray) by smtp.dlink.ua (Postfix) with ESMTPSA id B5823C492D; Thu, 12 Jan 2012 12:21:31 +0200 (EET) Date: Thu, 12 Jan 2012 12:22:50 +0200 From: Aleksandr Rybalko To: Luigi Rizzo Message-Id: <20120112122250.03176f4a.ray@dlink.ua> In-Reply-To: <20120112101739.GA11498@onelab2.iet.unipi.it> References: <20120112081139.GA9921@onelab2.iet.unipi.it> <20120112101653.57decd32@ernst.jennejohn.org> <20120112100601.GA11325@onelab2.iet.unipi.it> <20120112101739.GA11498@onelab2.iet.unipi.it> Organization: D-Link X-Mailer: Sylpheed 2.7.1 (GTK+ 2.20.1; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , current@freebsd.org Subject: Re: kernel config files outside of sys/${ARCH}/conf ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 10:40:29 -0000 On Thu, 12 Jan 2012 11:17:39 +0100 Luigi Rizzo 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 >> > 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 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@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-current >> To unsubscribe, send any mail to >> "freebsd-current-unsubscribe@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 aka Alex RAY