From owner-freebsd-stable Tue Jul 11 4:31:46 2000 Delivered-To: freebsd-stable@freebsd.org Received: from fling.sanbi.ac.za (fling.sanbi.ac.za [196.38.142.119]) by hub.freebsd.org (Postfix) with ESMTP id 6C25937BF34 for ; Tue, 11 Jul 2000 04:31:38 -0700 (PDT) (envelope-from pvh@egenetics.com) Received: from pvh (helo=localhost) by fling.sanbi.ac.za with local-esmtp (Exim 3.13 #4) id 13ByEV-0007WI-00; Tue, 11 Jul 2000 13:29:47 +0200 Date: Tue, 11 Jul 2000 13:29:47 +0200 (SAST) From: Peter van Heusden X-Sender: pvh@fling.sanbi.ac.za To: Brad Knowles Cc: stable@FreeBSD.ORG Subject: Re: HEADS UP! Always use the 'make buildkernel' target to make your kernels In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 11 Jul 2000, Brad Knowles wrote: > This should allow you to skip a second kernel build process, > won't it? I mean, buildkernel and installkernel are intelligent > enough to pull the correct kernel config out of > /usr/src/sys/i386/conf and DTRT, right? from Makefile.inc1: BUILDKERNELS= INSTALLKERNEL= .for _kernel in ${KERNEL} .if exists(${KRNLCONFDIR}/${_kernel}) BUILDKERNELS+= ${_kernel} .if empty(INSTALLKERNEL) INSTALLKERNEL= ${_kernel} .endif .endif .endfor ... buildkernel: @echo @echo "--------------------------------------------------------------" @echo ">>> Rebuilding kernel(s)" @echo "--------------------------------------------------------------" .for _kernel in ${BUILDKERNELS} @echo "===> ${_kernel}" mkdir -p ${KRNLOBJDIR} cd ${KRNLCONFDIR}; \ PATH=${TMPPATH} \ config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ... so, the kernels built are defined by KERNEL - there is no default. Personally, I can certainly live with this procedure, now that it has been explained adaquately. My only (minor) concern, from a useability point of view, is that there is no default BUILDKERNEL value - shouldn't it default to GENERIC if nothing else is specified? That way you won't actually be able to do a 'buildkernel' without building a kernel. Peter -- Peter van Heusden NOTE: I do not speak for my employer, Electric Genetics "Criticism has torn up the imaginary flowers from the chain not so that man shall wear the unadorned, bleak chain but so that he will shake off the chain and pluck the living flower." - Karl Marx, 1844 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message