Date: Tue, 11 Jul 2000 13:29:47 +0200 (SAST) From: Peter van Heusden <pvh@egenetics.com> To: Brad Knowles <blk@skynet.be> Cc: stable@FreeBSD.ORG Subject: Re: HEADS UP! Always use the 'make buildkernel' target to make your kernels Message-ID: <Pine.BSF.4.21.0007111324170.27918-100000@fling.sanbi.ac.za> In-Reply-To: <v0422080eb590add14190@[195.238.1.121]>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <pvh@egenetics.com> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0007111324170.27918-100000>