From owner-freebsd-current@FreeBSD.ORG Thu Apr 22 01:23:35 2010 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F9F7106564A; Thu, 22 Apr 2010 01:23:35 +0000 (UTC) (envelope-from nparhar@gmail.com) Received: from mail-gw0-f54.google.com (mail-gw0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id C8DCC8FC0C; Thu, 22 Apr 2010 01:23:34 +0000 (UTC) Received: by gwj18 with SMTP id 18so1503848gwj.13 for ; Wed, 21 Apr 2010 18:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:received:message-id:subject:from:to:cc:content-type; bh=EE2wO4kH8bHgb9jfYz1kYrIudrf57cutIa9a6o4wW7s=; b=Lj8A+2aAN306/rJ51X6gNopoSg9BgiwKs3FEeKD4JzlnhsiBx6BVLT54ZCE3VhFCSf n7EPwnujl0ANV/kHsftdRWai1QtGzicCWMNMYyuVPFzM7zwR1p3vWBBf+G+aWs34L7RH RkKAeEolWDYFtdHrKoJ0xQe/V8JEhxHU2krak= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=uCWqclDyuIuoNARv2MGb2lQcPJ10SGhnYmJhEj+OXgYB2hxApnxHHHHH0jEFiYFuxr xQzhTjqaB/MBerVL4rXMxUeMMkVNC1vWn2d0+w2kfD6oof0EbwOTNsnNaerZCdPDWJxe edSSKk39+Jo7HAbdDIpKouEqhcX5RJHXpBLCo= MIME-Version: 1.0 Received: by 10.231.77.138 with HTTP; Wed, 21 Apr 2010 18:23:33 -0700 (PDT) In-Reply-To: <20100416155140.21425jmdvmha7z40@webmail.leidinger.net> References: <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net> <20100414132342.74616nl7805cljgo@webmail.leidinger.net> <20100414183540.GA2542@gypsy> <20100416155140.21425jmdvmha7z40@webmail.leidinger.net> Date: Wed, 21 Apr 2010 18:23:33 -0700 Received: by 10.101.139.6 with SMTP id r6mr22460667ann.14.1271899413839; Wed, 21 Apr 2010 18:23:33 -0700 (PDT) Message-ID: From: Navdeep Parhar To: Alexander Leidinger Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-current@FreeBSD.org Subject: Re: Does "makeoptions WITH_CTF=yes" actually work? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 01:23:35 -0000 On Fri, Apr 16, 2010 at 03:51:40PM +0200, Alexander Leidinger wrote: > Quoting Navdeep Parhar (from Wed, 14 Apr 2010 > 11:35:40 -0700): > > >Have you or anyone else ever used buildkernel successfully with > >"makeoptions WITH_CTF=yes" in the conf file? Something as simple as > >this does not work for me: > > Copy&paste patch, tabs probbly mangled: > ---snip--- > Index: Makefile.inc1 > =================================================================== > --- Makefile.inc1 (revision 206700) > +++ Makefile.inc1 (working copy) > @@ -314,7 +314,7 @@ > .endif > > # kernel stage > -KMAKEENV= ${WMAKEENV} > +KMAKEENV= ${WMAKEENV:NNO_CTF=1} > KMAKE= ${KMAKEENV} ${MAKE} KERNEL=${INSTKERNNAME} > > # > @@ -780,7 +780,7 @@ > @echo "--------------------------------------------------------------" > cd ${KRNLOBJDIR}/${_kernel}; \ > MAKESRCPATH=${KERNSRCDIR}/dev/aic7xxx/aicasm \ > - ${MAKE} SSP_CFLAGS= -DNO_CPU_CFLAGS -DNO_CTF \ > + ${MAKE} SSP_CFLAGS= -DNO_CPU_CFLAGS \ > -f ${KERNSRCDIR}/dev/aic7xxx/aicasm/Makefile > # XXX - Gratuitously builds aicasm in the ``makeoptions NO_MODULES'' case. > .if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && > exists(${KERNSRCDIR}/modules) > ---snip--- > > This lets the buildkernel generate ctf info in the object files (the > build is not finished yet, so I still have to verify that the final > kernel contains them too, but I do not see a reason ATM why this > should not be the case). Your patch works for me, thanks. There is just one more problem with the CTF generation that needs to be fixed: http://lists.freebsd.org/pipermail/freebsd-hackers/2009-April/028244.html While you're here can you take a look at the patch in that email too? Regards, Navdeep