Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Sep 2003 12:31:33 +0200
From:      des@des.no (Dag-Erling =?iso-8859-1?q?Sm=F8rgrav?=)
To:        John Birrell <jb@cimlogic.com.au>
Cc:        current@freebsd.org
Subject:   Re: config(8) KERNEL setting
Message-ID:  <xzp3cfc7sl6.fsf@dwp.des.no>
In-Reply-To: <20030904041632.GA14639@freebsd1.cimlogic.com.au> (John Birrell's message of "Thu, 4 Sep 2003 14:16:32 %2B1000")
References:  <20030904041632.GA14639@freebsd1.cimlogic.com.au>

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

John Birrell <jb@cimlogic.com.au> writes:
> It would make more sense to me if kern.pre.mk contained this:
>
> KERNEL?=	kernel
> KERNEL_KO?=	${KERNEL}
> KODIR?=		/boot/${KERNEL}
>
> Comments?

I have

Index: kern.pre.mk
===================================================================
RCS file: /home/ncvs/src/sys/conf/kern.pre.mk,v
retrieving revision 1.34
diff -u -r1.34 kern.pre.mk
--- kern.pre.mk 22 Aug 2003 15:41:44 -0000      1.34
+++ kern.pre.mk 29 Aug 2003 21:06:02 -0000
@@ -9,7 +9,8 @@
 # Can be overridden by makeoptions or /etc/make.conf
 KERNEL_KO?=    kernel
 KERNEL?=       kernel
-KODIR?=                /boot/${KERNEL}
+KODIR?=                /boot/${KERN_IDENT}
+BOOTKODIR?=    /boot/${KERNEL}

 M=     ${MACHINE_ARCH}
 

and in /boot/loader.conf:

kernel="dwp_smp"
#kernel="dwp_up"

For old times' sake, I also have /boot/kernel as a symlink to
/boot/dwp_smp.  

I used to have a more extensive patch which created that symlink at
kernel install time so you wouldn't need to modify loader.conf, and
the system would boot whichever kernel you installed last.  I removed
that part because I couldn't be bothered to make it work correctly
with all combinations of make install / make reinstall and
pre-existing /boot/kernel directory or symlink.

DES
-- 
Dag-Erling Smørgrav - des@des.no


help

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