From owner-freebsd-stable Mon Jul 17 16:54:58 2000 Delivered-To: freebsd-stable@freebsd.org Received: from camus.cybercable.fr (camus.cybercable.fr [212.198.0.200]) by hub.freebsd.org (Postfix) with SMTP id 7EEB437B705 for ; Mon, 17 Jul 2000 16:54:51 -0700 (PDT) (envelope-from root@gits.dyndns.org) Received: (qmail 15882874 invoked from network); 17 Jul 2000 23:54:48 -0000 Received: from r224m65.cybercable.tm.fr (HELO gits.dyndns.org) ([195.132.224.65]) (envelope-sender ) by camus.cybercable.fr (qmail-ldap-1.03) with SMTP for ; 17 Jul 2000 23:54:48 -0000 Received: (from root@localhost) by gits.dyndns.org (8.9.3/8.9.3) id BAA13072; Tue, 18 Jul 2000 01:54:41 +0200 (CEST) (envelope-from root) From: Cyrille Lefevre Posted-Date: Tue, 18 Jul 2000 01:54:41 +0200 (CEST) Message-Id: <200007172354.BAA13072@gits.dyndns.org> Subject: Re: kernel.debug (was Re: HEADS UP! Always use the 'make buildkernel' target to make your kernels) In-Reply-To: "from Cyrille Lefevre at Jul 16, 2000 07:08:20 am" To: clefevre@citeweb.net Date: Tue, 18 Jul 2000 01:54:41 +0200 (CEST) Cc: "Daniel C. Sobral" , Brad Knowles , Peter van Heusden , stable@FreeBSD.ORG Reply-To: clefevre@citeweb.net Organization: ACME X-Face: V|+c;4!|B?E%BE^{E6);aI.[<97Zd*>^#%Y5Cxv;%Y[PT-LW3;A:fRrJ8+^k"e7@+30g0YD0*^^3jgyShN7o?a]C la*Zv'5NA,=963bM%J^o]C X-Mailer: ELM [version 2.4ME+ PL77 (25)] MIME-Version: 1.0 Content-Type: multipart/mixed; boundary=ELM963878081-12128-0_ Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --ELM963878081-12128-0_ Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Cyrille Lefevre wrote: > "Daniel C. Sobral" 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/ and not in > /usr/obj/.../sys/compile/ 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