Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jul 2000 01:54:41 +0200 (CEST)
From:      Cyrille Lefevre <root@gits.dyndns.org>
To:        clefevre@citeweb.net
Cc:        "Daniel C. Sobral" <dcs@newsguy.com>, Brad Knowles <blk@skynet.be>, Peter van Heusden <pvh@egenetics.com>, stable@FreeBSD.ORG
Subject:   Re: kernel.debug (was Re: HEADS UP! Always use the 'make buildkernel' target to make your kernels)
Message-ID:  <200007172354.BAA13072@gits.dyndns.org>
In-Reply-To: <hf9q1x2z.fsf_-_@pc166.gits.fr> "from Cyrille Lefevre at Jul 16, 2000 07:08:20 am"

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

--ELM963878081-12128-0_
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII

Cyrille Lefevre wrote:
> "Daniel C. Sobral" <dcs@newsguy.com> writes:
> 
> > Brad Knowles wrote:
> > > 
> > > At 1:29 PM +0200 2000/7/11, Peter van Heusden wrote:
> > > 
> > > >  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.
> > > 
> > >         Hmm.  Good idea.  Until then, this needs to be mentioned in the
> > > documentation.
> > 
> > Notice that KERNEL can be set from make.conf, and there is a default in
> > there. Either it is commented out, or the complain just apply to the
> > first time around, before running mergemaster.

well. I reply to myself to follow this thread.
about setting KERNEL in /etc/make.conf w/ more than one target makes
a make loop using buildkernel. I tried it.

much better to use KERNELS instead.
also, I've tested the building of multiple kernel w/ debugging
informations using // make w/o any problems using the buildkernel
target. the patch is in attachement.
 
> also, why the kernel object are in /usr/obj/.../sys/<KERNEL> and not in
> /usr/obj/.../sys/compile/<KERNEL> which match more the old way ?

nobody answer to that question ?

Cyrille.
--
home: mailto:clefevre@citeweb.net work: mailto:Cyrille.Lefevre@edf.fr

--ELM963878081-12128-0_
Content-Transfer-Encoding: 7bit
Content-Type: text/x-patch
Content-Disposition: attachment; filename=Makefile.inc1.patch
Content-Description: Makefile.inc1.patch

--- Makefile.inc1.orig	Sat Jun 17 05:43:06 2000
+++ Makefile.inc1	Tue Jul 18 01:50:15 2000
@@ -338,7 +338,7 @@
 # be set to cross-build, we have to make sure MACHINE is set
 # properly.
 
-KERNEL?=	GENERIC
+KERNELS?=	GENERIC
 
 # The only exotic MACHINE_ARCH/MACHINE combination valid at this
 # time is i386/pc98. In all other cases set MACHINE equal to
@@ -354,10 +354,17 @@
 .if !defined(NOCLEAN)
 CONFIGARGS+=	-r
 .endif
+.if defined(DEBUG)
+CONFIGARGS+=	-g
+KMAKEENV+=	DEBUG=-g
+.endif
+.if defined(JOBS)
+KMAKEARGS+=	${JOBS}
+.endif
 
 BUILDKERNELS=
 INSTALLKERNEL=
-.for _kernel in ${KERNEL}
+.for _kernel in ${KERNELS}
 .if exists(${KRNLCONFDIR}/${_kernel})
 BUILDKERNELS+=	${_kernel}
 .if empty(INSTALLKERNEL)
@@ -383,11 +390,12 @@
 		PATH=${TMPPATH} \
 		    config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
 	cd ${KRNLOBJDIR}/${_kernel}; \
-		MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx \
+		MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx ${KMAKEENV} \
 		    ${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/Makefile; \
 		${WMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} \
 		    ${MAKE} depend; \
-		${WMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} ${MAKE} all
+		${WMAKEENV} ${KMAKEENV} MACHINE=${MACHINE} KERNEL=${_kernel} \
+		    ${MAKE} ${KMAKEARGS} all
 .endfor
 
 #

--ELM963878081-12128-0_--


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?200007172354.BAA13072>