From owner-freebsd-hackers Tue Dec 3 8: 8:28 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AD6B837B401 for ; Tue, 3 Dec 2002 08:08:26 -0800 (PST) Received: from whale.sunbay.crimea.ua (whale.sunbay.crimea.ua [212.110.138.65]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5D64A43EC5 for ; Tue, 3 Dec 2002 08:08:22 -0800 (PST) (envelope-from ru@whale.sunbay.crimea.ua) Received: from whale.sunbay.crimea.ua (ru@localhost [127.0.0.1]) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Sunbay) with ESMTP id gB3G8EVX038854 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Tue, 3 Dec 2002 18:08:14 +0200 (EET) (envelope-from ru@whale.sunbay.crimea.ua) Received: (from ru@localhost) by whale.sunbay.crimea.ua (8.12.6/8.12.6/Submit) id gB3G89Q4038832; Tue, 3 Dec 2002 18:08:09 +0200 (EET) Date: Tue, 3 Dec 2002 18:08:09 +0200 From: Ruslan Ermilov To: Andrey Beresovsky Cc: Peter Pentchev , hackers@FreeBSD.ORG, Oleg Sharoiko Subject: Re: Need to override KRNLCONFDIR variable in command line of make (file /usr/src/Makefile.inc1). Message-ID: <20021203160809.GA37607@sunbay.com> References: <20021203144918.GJ365@straylight.oblivion.bg> <20021203175208.M611-100000@moon.cc.rsu.ru> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RnlQjJ0d97Da+TV1" Content-Disposition: inline In-Reply-To: <20021203175208.M611-100000@moon.cc.rsu.ru> User-Agent: Mutt/1.5.1i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --RnlQjJ0d97Da+TV1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Dec 03, 2002 at 06:22:42PM +0300, Andrey Beresovsky wrote: > On Tue, 3 Dec 2002, Peter Pentchev wrote: >=20 > PP> I was wondering about that when I saw your PR; actually, I think that > PP> the current FreeBSD kernel building infrastructure is quite sufficient > PP> for what you want to do, without any more modifications. > PP> > PP> Why do you need different source trees and kernel config dirs? I see= no > PP> problem with keeping all kernel configs for the same version of FreeB= SD > PP> in the same src/sys//conf/ directory, or at least keeping symli= nks > PP> to different files in the same src/sys//conf/ directory. > PP> > PP> Different source trees - if you have a source tree checked out to use > PP> for building the kernel, what is stopping you from invoking the > PP> 'buildkernel' target from the corresponding src/ directory, the one > PP> directly above the sys/ directory? >=20 > My project involves automatic or semiautomatic checkouts, updates and > removals of source trees. It would be unwise to keep kernel configs in th= is > source trees. Thats why I need to change KRNLCONFDIR variable. Of course,= I > can do it with the help of links, but I think it's not a good solution. >=20 > I guess the changes I suggest will definitely not break anything but only= add > flexibility which is typical for BSD make files. >=20 > The solution with links is not a right thing, because it involves more di= rty > work which can be avoided with a help of simple makefile modification. >=20 KRNLCONFDIR shouldn't be overridden -- we already provide (undocumented) user-redefineable KERNCONFDIR which should be used in cases like this. KRNLCONFDIR, on the other hand, is dependent on src/ used, and should NOT be overridden. Cheers, --=20 Ruslan Ermilov Sysadmin and DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age --RnlQjJ0d97Da+TV1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE97NbpUkv4P6juNwoRAlz5AJwI8FrvwKuLTzDIoSPcoOK4CeOJVwCeOKWJ ppgNnFdr1afwD2IrPoknPYo= =vPQL -----END PGP SIGNATURE----- --RnlQjJ0d97Da+TV1-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message