From owner-freebsd-hackers Tue Dec 3 12:10:12 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 8E16737B401 for ; Tue, 3 Dec 2002 12:10:10 -0800 (PST) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1595F43EA9 for ; Tue, 3 Dec 2002 12:10:10 -0800 (PST) (envelope-from jhb@FreeBSD.org) Received: (qmail 19251 invoked from network); 3 Dec 2002 20:10:14 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail15.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 3 Dec 2002 20:10:14 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.6/8.12.6) with ESMTP id gB3KA7uH038291; Tue, 3 Dec 2002 15:10:07 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3DED0B95.2D2E6A30@mindspring.com> Date: Tue, 03 Dec 2002 15:10:14 -0500 (EST) From: John Baldwin To: Terry Lambert Subject: Re: Need to override KRNLCONFDIR variable in command line of mak Cc: Oleg Sharoiko , hackers@FreeBSD.ORG, Andrey Beresovsky , Peter Pentchev 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 On 03-Dec-2002 Terry Lambert wrote: > Peter Pentchev wrote: >> On Tue, Dec 03, 2002 at 05:37:34PM +0300, Andrey Beresovsky wrote: >> > I am developing a program which will allow me to build worlds and >> > kernels for several hosts with different options (make.conf files, >> > kernel configs and so on). I need to be able to override some >> > variables in /usr/src/Makefile.inc1. For the moment they are defined >> > with '=', and I suggest defining them with '?='. The variables I >> > need to override are KRNLSRCDIR, KRNLCONFDIR, KRNLOBJDIR. I have >> > sent PR (misc/45961) with patch to solve my request. >> > >> > Please, anyone who has a commit rights, commit this patch. >> >> I was wondering about that when I saw your PR; actually, I think that >> the current FreeBSD kernel building infrastructure is quite sufficient >> for what you want to do, without any more modifications. > > > Don't feel bad; this is the same thing they told me when I > submitted the same patch. > > What they really mean is that it's "sufficient for them", because > they don't understand what it is you want to do. Specifically, if > the kernel name isn't "GENERIC", you get screwed by sysinstall, if > you make a full release CDROM. > > The problem is that you are talking to people who rarely make their > own release CDROM's, and, when they do, they use GENERIC. I build a custom release at work that uses the a custom kernel by default on 4.x and make use of LOCAL_PATCHES and KERNELS to accomplish what I need. I do think I have a local patch that allows you to specify the kernel config for the "default" kernel, but that it doesn't apply to 5.x because 5.x does things differently in that area. 5.x doesn't install a kernel.GENERIC anymore though, which is a bit disturbing. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message