From owner-freebsd-current@FreeBSD.ORG Thu Jan 12 09:44:59 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 10ACA106564A for ; Thu, 12 Jan 2012 09:44:59 +0000 (UTC) (envelope-from gljennjohn@googlemail.com) Received: from mail-we0-f182.google.com (mail-we0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 957D58FC16 for ; Thu, 12 Jan 2012 09:44:58 +0000 (UTC) Received: by werb13 with SMTP id b13so1919749wer.13 for ; Thu, 12 Jan 2012 01:44:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :x-mailer:mime-version:content-type:content-transfer-encoding; bh=y7C7OaVJxluK9ulFuodOV1+P4ns3JP/HkxPiLIG7fuQ=; b=x0ftOWZp8vdPwP832b/lUf6LBGNW7hcoKB5rWuYC2RYaIXesrAOtiPkg+ZiGRM8/PW qvojM8tXzqrlFwje7pTCc3VDdT/H3104V75lnOewVvhGUt7pUpEdz8/viYeY+hdo1BSl +mzXo5+4GWO81aN1poPFz5bIG/0l9YE6jiwqg= Received: by 10.216.131.145 with SMTP id m17mr4274537wei.21.1326359816770; Thu, 12 Jan 2012 01:16:56 -0800 (PST) Received: from ernst.jennejohn.org (p578E3D0A.dip.t-dialin.net. [87.142.61.10]) by mx.google.com with ESMTPS id k33sm4997127wbo.5.2012.01.12.01.16.55 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 Jan 2012 01:16:55 -0800 (PST) Date: Thu, 12 Jan 2012 10:16:53 +0100 From: Gary Jennejohn To: Luigi Rizzo Message-ID: <20120112101653.57decd32@ernst.jennejohn.org> In-Reply-To: <20120112081139.GA9921@onelab2.iet.unipi.it> References: <20120112081139.GA9921@onelab2.iet.unipi.it> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.6; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Reply-To: gljennjohn@googlemail.com 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:44:59 -0000 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. -- Gary Jennejohn (gj@)