From owner-freebsd-current@FreeBSD.ORG Thu Jan 12 09:55:40 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 99D011065672 for ; Thu, 12 Jan 2012 09:55:40 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-tul01m020-f182.google.com (mail-tul01m020-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6057D8FC1D for ; Thu, 12 Jan 2012 09:55:40 +0000 (UTC) Received: by obbta17 with SMTP id ta17so792291obb.13 for ; Thu, 12 Jan 2012 01:55:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=B0YbZvZBznPn4E8HqIzW1/ewJ4Iwil6KoXk2g9Ml9Fg=; b=ILplXvDLQpyOmu+IBb+1Zc/UBZjLNW7kFuPab+mDtIj9hOs2Jl+0hVvwJoPZQbE1Qs cgXKapW+CzqKT2UOBKumYiMkGKmIw7HDMaQSpv8tvWdD+Ohvdd2LXXHQJIT2GjsBOftR tdawCM3Zs4sx/KbEmXKxIcQTYNYa1BOJEYdE0= MIME-Version: 1.0 Received: by 10.182.48.36 with SMTP id i4mr2490891obn.9.1326362139927; Thu, 12 Jan 2012 01:55:39 -0800 (PST) Received: by 10.182.152.6 with HTTP; Thu, 12 Jan 2012 01:55:39 -0800 (PST) In-Reply-To: <20120112100601.GA11325@onelab2.iet.unipi.it> References: <20120112081139.GA9921@onelab2.iet.unipi.it> <20120112101653.57decd32@ernst.jennejohn.org> <20120112100601.GA11325@onelab2.iet.unipi.it> Date: Thu, 12 Jan 2012 01:55:39 -0800 Message-ID: From: Garrett Cooper To: Luigi Rizzo Content-Type: text/plain; charset=ISO-8859-1 Cc: 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 09:55:40 -0000 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? Thanks, -Garrett