From owner-freebsd-hackers Tue Dec 3 11:58:58 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 D654637B401 for ; Tue, 3 Dec 2002 11:58:56 -0800 (PST) Received: from mallard.mail.pas.earthlink.net (mallard.mail.pas.earthlink.net [207.217.120.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8558943EC2 for ; Tue, 3 Dec 2002 11:58:56 -0800 (PST) (envelope-from tlambert2@mindspring.com) Received: from pool0140.cvx22-bradley.dialup.earthlink.net ([209.179.198.140] helo=mindspring.com) by mallard.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 18JJBz-00020o-00; Tue, 03 Dec 2002 11:58:51 -0800 Message-ID: <3DED0CAC.D283E33@mindspring.com> Date: Tue, 03 Dec 2002 11:57:32 -0800 From: Terry Lambert X-Mailer: Mozilla 4.79 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 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). References: <20021203175208.M611-100000@moon.cc.rsu.ru> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Andrey Beresovsky wrote: > My project involves automatic or semiautomatic checkouts, updates and > removals of source trees. It would be unwise to keep kernel configs in this > 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. > > I guess the changes I suggest will definitely not break anything but only add > flexibility which is typical for BSD make files. > > The solution with links is not a right thing, because it involves more dirty > work which can be avoided with a help of simple makefile modification. I've found that a patch like yours is necessary, but I did not change the configuration directory; instead, I changed the config file name. The other thing you need to do, if you do this, is to modify the sysinstall to know the name of the kernel on the CDROM image; you can pas this in as a "-D" on the command line, if you modify the "release" Makefile. This is particularly useful if you are supporting, for example, an engineering department, or a product release image "golden master" install CDROM, such that you can rebuild your product from source 2 years later, and get the same software (a commercial necessity for things like embedded systems). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message