Subject: Re: MDSET_NOSTRIP/MDSET_NOSYMBOLS not working
To: Manuel Bouyer <bouyer@antioche.eu.org>
From: Jachym Holecek <freza@dspfpga.com>
List: tech-toolchain
Date: 08/23/2006 18:50:01
# Manuel Bouyer 2006-08-23:
> I'd like to have the Xen INSTALL kernels not stripped in the distribution,
> so that ddb is easier to use (there's no space constraints for Xen install
> kernels). I tried the attached patch, but I still get
> netbsd-INSTALL_XEN2_DOMU and netbsd-INSTALL_XEN3_DOMU stripped,
> and the symbols.gz  files are still generated. Any idea why ?

In addition to your change, you may need something like the below
(untested). It seems _FILENAME is kept with invalid contents if _F
item of MDSETTARGETS is "-" (ie. MDSET_NOSTRIP.${_FILENAME} will
be "MDSET_NOSTRIP.-" as opposed to "MDSET_NOSTRIP.netbsd-FOO").

	-- Jachym

Index: Makefile.mdset
===================================================================
RCS file: /cvsroot/src/distrib/common/Makefile.mdset,v
retrieving revision 1.27
diff -d -p -u -r1.27 Makefile.mdset
--- Makefile.mdset	31 May 2005 16:23:37 -0000	1.27
+++ Makefile.mdset	23 Aug 2006 16:45:39 -0000
@@ -78,6 +78,7 @@ _KERNNAME.${_K}.${_F}:=	${KERNOBJDIR}/${
 _FILENAME:=${_F}		# (work around obscure issue in make(1))
 .if ${_FILENAME} == "-"
 _KERNEL.${_K}.${_F}:=	netbsd-${_K}
+_FILENAME:=		${_KERNEL.${_K}.${_F}}
 .else
 _KERNEL.${_K}.${_F}:=	${_F}
 .endif