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>
next in thread | previous in thread | raw e-mail | index | archive | help
John Birrell <jb@cimlogic.com.au> writes: > It would make more sense to me if kern.pre.mk contained this: > > KERNEL?=3D kernel > KERNEL_KO?=3D ${KERNEL} > KODIR?=3D /boot/${KERNEL} > > Comments? I have Index: kern.pre.mk =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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?=3D kernel KERNEL?=3D kernel -KODIR?=3D /boot/${KERNEL} +KODIR?=3D /boot/${KERN_IDENT} +BOOTKODIR?=3D /boot/${KERNEL} M=3D ${MACHINE_ARCH} =20 and in /boot/loader.conf: kernel=3D"dwp_smp" #kernel=3D"dwp_up" For old times' sake, I also have /boot/kernel as a symlink to /boot/dwp_smp.=20=20 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 --=20 Dag-Erling Sm=F8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp3cfc7sl6.fsf>