Date: Wed, 21 Apr 2010 18:23:33 -0700 From: Navdeep Parhar <nparhar@gmail.com> To: Alexander Leidinger <netchild@FreeBSD.org> Cc: freebsd-current@FreeBSD.org Subject: Re: Does "makeoptions WITH_CTF=yes" actually work? Message-ID: <z2kd04e16b71004211823z6f92895cv45874f97c399866c@mail.gmail.com> In-Reply-To: <20100416155140.21425jmdvmha7z40@webmail.leidinger.net> References: <g2md04e16b71004140133ubee176eboe6baaeb7ef0f0605@mail.gmail.com> <20100414105819.13143mf12ccgjy4g@webmail.leidinger.net> <y2vd04e16b71004140231u4b638141w17215bf037a9c94@mail.gmail.com> <20100414132342.74616nl7805cljgo@webmail.leidinger.net> <20100414183540.GA2542@gypsy> <20100416155140.21425jmdvmha7z40@webmail.leidinger.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Apr 16, 2010 at 03:51:40PM +0200, Alexander Leidinger wrote:
> Quoting Navdeep Parhar <nparhar@gmail.com> (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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?z2kd04e16b71004211823z6f92895cv45874f97c399866c>
