cvs commit: src UPDATING

Ruslan Ermilov ru at FreeBSD.org
Thu May 26 11:08:05 PDT 2005


On Thu, May 26, 2005 at 11:13:49AM +0200, Alexander Leidinger wrote:
> On Thu, 26 May 2005 10:31:03 +0200
> Jeremie Le Hen <jeremie at le-hen.org> wrote:
> 
> > > +       make installkernel KERNCONF=YOUR_KERNEL_HERE KODIR=/boot/testkernel
> > > +       nextboot -k testkernel
> > 
> > wouldn't it be more intuitive to use KERNEL=testkernel instead of
> > KODIR=/boot/testkernel, in regards to the nextboot(8) syntax, which
> > does not explicitely specify the /boot directory.
> 
> I've a lot of experience with KODIR, but no experience with KERNEL. I
> was told it does what I want to do too, but I also was told that it is
> used in previous major versions of FreeBSD in a different way.
> 
> Yes, this is committed to current, not to an older version of FreeBSD.
> But FreeBSD 4 also has nextboot (even when it has a different syntax),
> and having users which tell other users out-of-context to use KERNEL=xxx
> and nextboot may result in frustated users.
> 
> Those are my quick thoughts about this. I don't mind if someone else
> thinks we should use KERNEL instead and goes ahead and changes the
> description.
> 
Using KERNEL is valid from within kernel object directory but not from
Makefile.inc1:

.if defined(KERNWARN)
        @echo "--------------------------------------------------------------"
        @echo ">>> WARNING: KERNEL= setting should be changed to KERNCONF="
        @echo "--------------------------------------------------------------"
        @sleep 3
.endif

... because it used to mean a completely different thing, as you have
noticed.  Instead, an official way to install a kernel in a different
/boot subdirectory is to:

	make installkernel ... INSTKERNNAME=testkernel

... which will set KODIR to /boot/testkernel.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20050526/9ddcc63f/attachment.bin


More information about the cvs-src mailing list