Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Dec 2002 15:10:14 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Terry Lambert <tlambert2@mindspring.com>
Cc:        Oleg Sharoiko <os@rsu.ru>, hackers@FreeBSD.ORG, Andrey Beresovsky <and@rsu.ru>, Peter Pentchev <roam@ringlet.net>
Subject:   Re: Need to override KRNLCONFDIR variable in command line of mak
Message-ID:  <XFMail.20021203151014.jhb@FreeBSD.org>
In-Reply-To: <3DED0B95.2D2E6A30@mindspring.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <jhb@FreeBSD.org>  <><  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021203151014.jhb>