head	1.22;
access;
symbols
	netbsd-11-0-RC4:1.22
	netbsd-11-0-RC3:1.22
	netbsd-11-0-RC2:1.22
	netbsd-11-0-RC1:1.22
	perseant-exfatfs-base-20250801:1.22
	netbsd-11:1.22.0.14
	netbsd-11-base:1.22
	netbsd-10-1-RELEASE:1.22
	perseant-exfatfs-base-20240630:1.22
	perseant-exfatfs:1.22.0.12
	perseant-exfatfs-base:1.22
	netbsd-8-3-RELEASE:1.21
	netbsd-9-4-RELEASE:1.22
	netbsd-10-0-RELEASE:1.22
	netbsd-10-0-RC6:1.22
	netbsd-10-0-RC5:1.22
	netbsd-10-0-RC4:1.22
	netbsd-10-0-RC3:1.22
	netbsd-10-0-RC2:1.22
	netbsd-10-0-RC1:1.22
	netbsd-10:1.22.0.10
	netbsd-10-base:1.22
	netbsd-9-3-RELEASE:1.22
	cjep_sun2x-base1:1.22
	cjep_sun2x:1.22.0.8
	cjep_sun2x-base:1.22
	cjep_staticlib_x-base1:1.22
	netbsd-9-2-RELEASE:1.22
	cjep_staticlib_x:1.22.0.6
	cjep_staticlib_x-base:1.22
	netbsd-9-1-RELEASE:1.22
	phil-wifi-20200421:1.22
	phil-wifi-20200411:1.22
	is-mlppp:1.22.0.4
	is-mlppp-base:1.22
	phil-wifi-20200406:1.22
	netbsd-8-2-RELEASE:1.21
	netbsd-9-0-RELEASE:1.22
	netbsd-9-0-RC2:1.22
	netbsd-9-0-RC1:1.22
	phil-wifi-20191119:1.22
	netbsd-9:1.22.0.2
	netbsd-9-base:1.22
	phil-wifi-20190609:1.22
	netbsd-8-1-RELEASE:1.21
	netbsd-8-1-RC1:1.21
	pgoyette-compat-merge-20190127:1.21.42.1
	pgoyette-compat-20190127:1.22
	pgoyette-compat-20190118:1.22
	pgoyette-compat-1226:1.21
	pgoyette-compat-1126:1.21
	pgoyette-compat-1020:1.21
	pgoyette-compat-0930:1.21
	pgoyette-compat-0906:1.21
	netbsd-7-2-RELEASE:1.21
	pgoyette-compat-0728:1.21
	netbsd-8-0-RELEASE:1.21
	phil-wifi:1.21.0.44
	phil-wifi-base:1.21
	pgoyette-compat-0625:1.21
	netbsd-8-0-RC2:1.21
	pgoyette-compat-0521:1.21
	pgoyette-compat-0502:1.21
	pgoyette-compat-0422:1.21
	netbsd-8-0-RC1:1.21
	pgoyette-compat-0415:1.21
	pgoyette-compat-0407:1.21
	pgoyette-compat-0330:1.21
	pgoyette-compat-0322:1.21
	pgoyette-compat-0315:1.21
	netbsd-7-1-2-RELEASE:1.21
	pgoyette-compat:1.21.0.42
	pgoyette-compat-base:1.21
	netbsd-7-1-1-RELEASE:1.21
	matt-nb8-mediatek:1.21.0.40
	matt-nb8-mediatek-base:1.21
	perseant-stdc-iso10646:1.21.0.38
	perseant-stdc-iso10646-base:1.21
	netbsd-8:1.21.0.36
	netbsd-8-base:1.21
	prg-localcount2-base3:1.21
	prg-localcount2-base2:1.21
	prg-localcount2-base1:1.21
	prg-localcount2:1.21.0.34
	prg-localcount2-base:1.21
	pgoyette-localcount-20170426:1.21
	bouyer-socketcan-base1:1.21
	pgoyette-localcount-20170320:1.21
	netbsd-7-1:1.21.0.32
	netbsd-7-1-RELEASE:1.21
	netbsd-7-1-RC2:1.21
	netbsd-7-nhusb-base-20170116:1.21
	bouyer-socketcan:1.21.0.30
	bouyer-socketcan-base:1.21
	pgoyette-localcount-20170107:1.21
	netbsd-7-1-RC1:1.21
	pgoyette-localcount-20161104:1.21
	netbsd-7-0-2-RELEASE:1.21
	localcount-20160914:1.21
	netbsd-7-nhusb:1.21.0.28
	netbsd-7-nhusb-base:1.21
	pgoyette-localcount-20160806:1.21
	pgoyette-localcount-20160726:1.21
	pgoyette-localcount:1.21.0.26
	pgoyette-localcount-base:1.21
	netbsd-7-0-1-RELEASE:1.21
	netbsd-7-0:1.21.0.24
	netbsd-7-0-RELEASE:1.21
	netbsd-7-0-RC3:1.21
	netbsd-7-0-RC2:1.21
	netbsd-7-0-RC1:1.21
	netbsd-5-2-3-RELEASE:1.17
	netbsd-5-1-5-RELEASE:1.17
	netbsd-6-0-6-RELEASE:1.21
	netbsd-6-1-5-RELEASE:1.21
	netbsd-7:1.21.0.22
	netbsd-7-base:1.21
	yamt-pagecache-base9:1.21
	yamt-pagecache-tag8:1.21
	netbsd-6-1-4-RELEASE:1.21
	netbsd-6-0-5-RELEASE:1.21
	tls-earlyentropy:1.21.0.20
	tls-earlyentropy-base:1.21
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.21
	riastradh-drm2-base3:1.21
	netbsd-6-1-3-RELEASE:1.21
	netbsd-6-0-4-RELEASE:1.21
	netbsd-5-2-2-RELEASE:1.17
	netbsd-5-1-4-RELEASE:1.17
	netbsd-6-1-2-RELEASE:1.21
	netbsd-6-0-3-RELEASE:1.21
	netbsd-5-2-1-RELEASE:1.17
	netbsd-5-1-3-RELEASE:1.17
	netbsd-6-1-1-RELEASE:1.21
	riastradh-drm2-base2:1.21
	riastradh-drm2-base1:1.21
	riastradh-drm2:1.21.0.12
	riastradh-drm2-base:1.21
	netbsd-6-1:1.21.0.18
	netbsd-6-0-2-RELEASE:1.21
	netbsd-6-1-RELEASE:1.21
	khorben-n900:1.21.0.16
	netbsd-6-1-RC4:1.21
	netbsd-6-1-RC3:1.21
	agc-symver:1.21.0.14
	agc-symver-base:1.21
	netbsd-6-1-RC2:1.21
	netbsd-6-1-RC1:1.21
	yamt-pagecache-base8:1.21
	netbsd-5-2:1.17.0.14
	netbsd-6-0-1-RELEASE:1.21
	yamt-pagecache-base7:1.21
	netbsd-5-2-RELEASE:1.17
	netbsd-5-2-RC1:1.17
	matt-nb6-plus-nbase:1.21
	yamt-pagecache-base6:1.21
	netbsd-6-0:1.21.0.10
	netbsd-6-0-RELEASE:1.21
	netbsd-6-0-RC2:1.21
	tls-maxphys:1.21.0.8
	tls-maxphys-base:1.21
	matt-nb6-plus:1.21.0.6
	matt-nb6-plus-base:1.21
	netbsd-6-0-RC1:1.21
	yamt-pagecache-base5:1.21
	yamt-pagecache-base4:1.21
	netbsd-6:1.21.0.4
	netbsd-6-base:1.21
	netbsd-5-1-2-RELEASE:1.17
	netbsd-5-1-1-RELEASE:1.17
	yamt-pagecache-base3:1.21
	yamt-pagecache-base2:1.21
	yamt-pagecache:1.21.0.2
	yamt-pagecache-base:1.21
	cherry-xenmp:1.19.0.4
	cherry-xenmp-base:1.19
	bouyer-quota2-nbase:1.19
	bouyer-quota2:1.19.0.2
	bouyer-quota2-base:1.19
	matt-mips64-premerge-20101231:1.19
	matt-nb5-mips64-premerge-20101231:1.17
	matt-nb5-pq3:1.17.0.12
	matt-nb5-pq3-base:1.17
	netbsd-5-1:1.17.0.10
	netbsd-5-1-RELEASE:1.17
	netbsd-5-1-RC4:1.17
	matt-nb5-mips64-k15:1.17
	netbsd-5-1-RC3:1.17
	netbsd-5-1-RC2:1.17
	netbsd-5-1-RC1:1.17
	netbsd-5-0-2-RELEASE:1.17
	matt-nb5-mips64-premerge-20091211:1.17
	matt-premerge-20091211:1.18
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.17
	matt-nb4-mips64-k7-u2a-k9b:1.17
	matt-nb5-mips64-u1-k1-k5:1.17
	matt-nb5-mips64:1.17.0.8
	netbsd-5-0-1-RELEASE:1.17
	jym-xensuspend-nbase:1.17
	netbsd-5-0:1.17.0.6
	netbsd-5-0-RELEASE:1.17
	netbsd-5-0-RC4:1.17
	netbsd-5-0-RC3:1.17
	netbsd-5-0-RC2:1.17
	jym-xensuspend:1.17.0.4
	jym-xensuspend-base:1.17
	netbsd-5-0-RC1:1.17
	netbsd-5:1.17.0.2
	netbsd-5-base:1.17
	matt-mips64-base2:1.17
	matt-mips64:1.14.0.14
	netbsd-4-0-1-RELEASE:1.14
	wrstuden-revivesa-base-3:1.17
	wrstuden-revivesa-base-2:1.17
	wrstuden-fixsa-newbase:1.14
	wrstuden-revivesa-base-1:1.17
	yamt-pf42-base4:1.17
	yamt-pf42-base3:1.16
	hpcarm-cleanup-nbase:1.16
	yamt-pf42-baseX:1.16
	yamt-pf42-base2:1.16
	wrstuden-revivesa:1.16.0.10
	wrstuden-revivesa-base:1.17
	yamt-pf42:1.16.0.8
	yamt-pf42-base:1.16
	mjf-devfs2:1.16.0.6
	mjf-devfs2-base:1.17
	keiichi-mipv6:1.16.0.4
	keiichi-mipv6-base:1.16
	mjf-devfs:1.16.0.2
	mjf-devfs-base:1.16
	matt-armv6-nbase:1.16
	matt-armv6-prevmlocking:1.14
	wrstuden-fixsa-base-1:1.14
	netbsd-4-0:1.14.0.12
	netbsd-4-0-RELEASE:1.14
	cube-autoconf:1.15.0.2
	cube-autoconf-base:1.15
	netbsd-4-0-RC5:1.14
	netbsd-4-0-RC4:1.14
	netbsd-4-0-RC3:1.14
	netbsd-4-0-RC2:1.14
	netbsd-4-0-RC1:1.14
	matt-armv6:1.14.0.10
	matt-armv6-base:1.15
	matt-mips64-base:1.14
	hpcarm-cleanup:1.14.0.8
	hpcarm-cleanup-base:1.16
	netbsd-3-1-1-RELEASE:1.13
	netbsd-3-0-3-RELEASE:1.13
	wrstuden-fixsa:1.14.0.6
	wrstuden-fixsa-base:1.14
	abandoned-netbsd-4-base:1.14
	abandoned-netbsd-4:1.14.0.2
	netbsd-3-1:1.13.0.12
	netbsd-3-1-RELEASE:1.13
	netbsd-3-0-2-RELEASE:1.13
	netbsd-3-1-RC4:1.13
	netbsd-3-1-RC3:1.13
	netbsd-3-1-RC2:1.13
	netbsd-3-1-RC1:1.13
	netbsd-4:1.14.0.4
	netbsd-4-base:1.14
	netbsd-3-0-1-RELEASE:1.13
	netbsd-3-0:1.13.0.10
	netbsd-3-0-RELEASE:1.13
	netbsd-3-0-RC6:1.13
	netbsd-3-0-RC5:1.13
	netbsd-3-0-RC4:1.13
	netbsd-3-0-RC3:1.13
	netbsd-3-0-RC2:1.13
	netbsd-3-0-RC1:1.13
	netbsd-2-0-3-RELEASE:1.13
	netbsd-2-1:1.13.0.8
	netbsd-2-1-RELEASE:1.13
	netbsd-2-1-RC6:1.13
	netbsd-2-1-RC5:1.13
	netbsd-2-1-RC4:1.13
	netbsd-2-1-RC3:1.13
	netbsd-2-1-RC2:1.13
	netbsd-2-1-RC1:1.13
	netbsd-2-0-2-RELEASE:1.13
	netbsd-3:1.13.0.6
	netbsd-3-base:1.13
	netbsd-2-0-1-RELEASE:1.13
	netbsd-2:1.13.0.4
	netbsd-2-base:1.13
	netbsd-2-0-RELEASE:1.13
	netbsd-2-0-RC5:1.13
	netbsd-2-0-RC4:1.13
	netbsd-2-0-RC3:1.13
	netbsd-2-0-RC2:1.13
	netbsd-2-0-RC1:1.13
	netbsd-2-0:1.13.0.2
	netbsd-2-0-base:1.13
	netbsd-1-6-PATCH002-RELEASE:1.9.2.1
	netbsd-1-6-PATCH002:1.9.2.1
	netbsd-1-6-PATCH002-RC4:1.9.2.1
	netbsd-1-6-PATCH002-RC3:1.9.2.1
	netbsd-1-6-PATCH002-RC2:1.9.2.1
	netbsd-1-6-PATCH002-RC1:1.9.2.1
	netbsd-1-6-PATCH001:1.9
	netbsd-1-6-PATCH001-RELEASE:1.9
	netbsd-1-6-PATCH001-RC3:1.9
	netbsd-1-6-PATCH001-RC2:1.9
	netbsd-1-6-PATCH001-RC1:1.9
	fvdl_fs64_base:1.10
	netbsd-1-6-RELEASE:1.9
	netbsd-1-6-RC3:1.9
	netbsd-1-6-RC2:1.9
	netbsd-1-6-RC1:1.9
	netbsd-1-6:1.9.0.2
	netbsd-1-6-base:1.9;
locks; strict;
comment	@# @;


1.22
date	2019.01.02.17.32.25;	author christos;	state Exp;
branches;
next	1.21;
commitid	jToTtJKI13b5we6B;

1.21
date	2011.07.10.04.37.56;	author tsutsui;	state Exp;
branches
	1.21.42.1
	1.21.44.1;
next	1.20;

1.20
date	2011.07.02.17.37.28;	author tsutsui;	state Exp;
branches;
next	1.19;

1.19
date	2010.10.04.15.56.53;	author tsutsui;	state Exp;
branches;
next	1.18;

1.18
date	2009.08.20.14.43.06;	author skrll;	state Exp;
branches;
next	1.17;

1.17
date	2008.06.09.20.05.12;	author he;	state Exp;
branches;
next	1.16;

1.16
date	2008.01.19.00.03.39;	author he;	state Exp;
branches
	1.16.2.1
	1.16.6.1
	1.16.8.1
	1.16.10.1;
next	1.15;

1.15
date	2007.11.19.10.28.15;	author skrll;	state Exp;
branches;
next	1.14;

1.14
date	2005.08.07.00.21.38;	author chris;	state Exp;
branches
	1.14.4.1
	1.14.6.1
	1.14.10.1;
next	1.13;

1.13
date	2003.10.25.04.39.48;	author lukem;	state Exp;
branches;
next	1.12;

1.12
date	2003.09.21.15.21.43;	author matt;	state Exp;
branches;
next	1.11;

1.11
date	2003.01.14.20.18.25;	author skrll;	state Exp;
branches;
next	1.10;

1.10
date	2002.11.23.16.02.55;	author thorpej;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.08.21.44.54;	author lukem;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2002.05.03.15.22.58;	author lukem;	state Exp;
branches;
next	1.7;

1.7
date	2002.05.02.18.02.29;	author lukem;	state Exp;
branches;
next	1.6;

1.6
date	2002.04.26.15.50.26;	author lukem;	state Exp;
branches;
next	1.5;

1.5
date	2002.04.14.01.41.24;	author lukem;	state Exp;
branches;
next	1.4;

1.4
date	2002.04.12.13.39.45;	author lukem;	state Exp;
branches;
next	1.3;

1.3
date	2002.04.12.05.33.59;	author lukem;	state Exp;
branches;
next	1.2;

1.2
date	2002.04.11.22.53.02;	author lukem;	state Exp;
branches;
next	1.1;

1.1
date	2002.04.11.16.33.59;	author skrll;	state Exp;
branches;
next	;

1.21.42.1
date	2019.01.18.08.48.31;	author pgoyette;	state Exp;
branches;
next	;
commitid	Lmlzg3OVT2cd6f8B;

1.21.44.1
date	2019.06.10.21.42.19;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.16.2.1
date	2008.01.19.00.03.39;	author he;	state dead;
branches;
next	1.16.2.2;

1.16.2.2
date	2008.01.19.00.03.40;	author he;	state Exp;
branches;
next	;

1.16.6.1
date	2008.06.29.08.25.12;	author mjf;	state Exp;
branches;
next	1.16.6.2;

1.16.6.2
date	2008.10.05.20.10.14;	author mjf;	state dead;
branches;
next	;

1.16.8.1
date	2008.06.17.09.13.32;	author yamt;	state Exp;
branches;
next	;

1.16.10.1
date	2008.06.23.04.28.54;	author wrstuden;	state Exp;
branches;
next	;

1.14.4.1
date	2008.09.16.18.48.23;	author bouyer;	state Exp;
branches;
next	;

1.14.6.1
date	2007.11.19.10.33.21;	author skrll;	state Exp;
branches;
next	;

1.14.10.1
date	2008.01.09.01.27.51;	author matt;	state Exp;
branches;
next	1.14.10.2;

1.14.10.2
date	2008.03.23.00.21.00;	author matt;	state Exp;
branches;
next	;

1.9.2.1
date	2003.08.12.18.28.31;	author tron;	state Exp;
branches;
next	;


desc
@@


1.22
log
@use arm_elf2aout
@
text
@#	$NetBSD: Makefile,v 1.21 2011/07/10 04:37:56 tsutsui Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK=	${RAMDISKDIR}/ramdisk.fs

MDSETTARGETS=		INSTALL ${RAMDISK} netbsd-INSTALL.aout \
			INSTALL.ABLE ${RAMDISK} -
MDSET_RELEASEDIR=	binary/kernel

MDSET_NOSTRIP=		# defined

MDSET_POST.netbsd-INSTALL.aout= \
    ${ARM_ELF2AOUT} ${.TARGET} ${.TARGET}.tmp && \
	mv ${.TARGET}.tmp ${.TARGET}

.include "${DISTRIBDIR}/common/Makefile.mdset"

.include <bsd.prog.mk>
@


1.21
log
@Use common ${OBJCOPY_ELF2AOUT_FLAGS}.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.20 2011/07/02 17:37:28 tsutsui Exp $
d16 1
a16 1
    ${OBJCOPY} ${OBJCOPY_ELF2AOUT_FLAGS} ${.TARGET} ${.TARGET}.tmp ;\
@


1.21.44.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.22 2019/01/02 17:32:25 christos Exp $
d16 1
a16 1
    ${ARM_ELF2AOUT} ${.TARGET} ${.TARGET}.tmp && \
@


1.21.42.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.21 2011/07/10 04:37:56 tsutsui Exp $
d16 1
a16 1
    ${ARM_ELF2AOUT} ${.TARGET} ${.TARGET}.tmp && \
@


1.20
log
@Sync with src/sys/arch/shark/conf/Makefile.shark.inc rev 1.14:
> also need to strip out GCC 4.5's new .debug_pubtypes section.
> while here, minor cleanup.

XXX: probably we should have something like ${ARM_AOUT_REMOVE_SECTIONS}
XXX: in bsd.own.mk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.19 2010/10/04 15:56:53 tsutsui Exp $
a14 6
REMOVE_SECTIONS= \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
	-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
	-R .debug_frame -R .debug_loc -R .debug_pubnames \
	-R .debug_aranges -R .debug_pubtypes -R .ARM.attributes

d16 1
a16 3
    ${OBJCOPY} -O a.out-arm-netbsd \
	${REMOVE_SECTIONS} \
	${.TARGET} ${.TARGET}.tmp ;\
@


1.19
log
@Use consistent names for distribution RAMDISK kernels:
 netbsd.able-INSTALL.gz -> netbsd-INSTALL.ABLE.gz
 netbsd.aout-INSTALL.gz -> netbsd-INSTALL.aout.gz

XXX: Probably it's simpler to have default ELF (currently ABLE) kernels
XXX: and optional a.out ones for old firmware as sgimips does for ecoff ones.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.18 2009/08/20 14:43:06 skrll Exp $
d15 6
d23 1
a23 4
	-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
	-R .debug_frame -R .debug_loc -R .debug_pubnames -R .debug_aranges \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
	-R .ARM.attributes \
@


1.18
log
@Remove .ARM.attributes when converting from ELF to a.out.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.17 2008/06/09 20:05:12 he Exp $
d9 2
a10 2
MDSETTARGETS=		INSTALL ${RAMDISK} netbsd.aout-INSTALL \
			INSTALL.ABLE ${RAMDISK} netbsd.able-INSTALL
d15 1
a15 1
MDSET_POST.netbsd.aout-INSTALL= \
d21 2
a22 1
	${.TARGET} ${.TARGET}
@


1.17
log
@Mirror the changes to sys/arch/cats/conf/Makefile.cats.inc: remove
some more ELF sections when copying to a.out format: .debug_frame,
.debug_loc, .debug_pubnames, and .debug_aranges.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2008/01/19 00:03:39 he Exp $
d20 1
@


1.16
log
@Fix another place where the newly added partial debugging symbols
need to be omitted in ELF -> a.out conversion.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.15 2007/11/19 10:28:15 skrll Exp $
d18 1
@


1.16.2.1
log
@file Makefile was added on branch mjf-devfs on 2008-01-19 00:03:40 +0000
@
text
@d1 23
@


1.16.2.2
log
@Fix another place where the newly added partial debugging symbols
need to be omitted in ELF -> a.out conversion.
@
text
@a0 23
#	$NetBSD: Makefile,v 1.16 2008/01/19 00:03:39 he Exp $

.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"

RAMDISKDIR!=	cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK=	${RAMDISKDIR}/ramdisk.fs

MDSETTARGETS=		INSTALL ${RAMDISK} netbsd.aout-INSTALL \
			INSTALL.ABLE ${RAMDISK} netbsd.able-INSTALL
MDSET_RELEASEDIR=	binary/kernel

MDSET_NOSTRIP=		# defined

MDSET_POST.netbsd.aout-INSTALL= \
    ${OBJCOPY} -O a.out-arm-netbsd \
	-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
	${.TARGET} ${.TARGET}

.include "${DISTRIBDIR}/common/Makefile.mdset"

.include <bsd.prog.mk>
@


1.16.6.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
a17 1
	-R .debug_frame -R .debug_loc -R .debug_pubnames -R .debug_aranges \
@


1.16.6.2
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16.6.1 2008/06/29 08:25:12 mjf Exp $
@


1.16.10.1
log
@Sync w/ -current. 34 merge conflicts to follow.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2008/01/19 00:03:39 he Exp $
a17 1
	-R .debug_frame -R .debug_loc -R .debug_pubnames -R .debug_aranges \
@


1.16.8.1
log
@sync with head.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.16 2008/01/19 00:03:39 he Exp $
a17 1
	-R .debug_frame -R .debug_loc -R .debug_pubnames -R .debug_aranges \
@


1.15
log
@Remove the .note.netbsd.ident section when converting the kernel to a.out.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2005/08/07 00:21:38 chris Exp $
d17 1
@


1.14
log
@As requested in PR port-cats/30460 add support for GENERIC.ABLE kernel to
sysinst, and also add the ABLE install kernel to the generated release
kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2003/10/25 04:39:48 lukem Exp $
d16 2
a17 1
    ${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs -R .comment \
@


1.14.4.1
log
@Sync with the following revisions (requested by skrll in ticket #1196):
	gnu/dist/gdb						removed
	gnu/usr.bin/gdb53					removed
	distrib/cats/instkernel/Makefile			1.14.6.1
	gnu/dist/gdb6/bfd/config.bfd				1.3.6.1
	gnu/dist/gdb6/bfd/elfxx-sparc.c				1.1.1.2.6.1
	gnu/dist/gdb6/bfd/elfxx-sparc.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/Makefile.in				1.2.2.1.2.2
	gnu/dist/gdb6/gdb/alpha-tdep.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alpha-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphabsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/alphabsd-nat.h			1.1.2.1
	gnu/dist/gdb6/gdb/alphabsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphabsd-tdep.h			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/alphanbsd-nat.c			1.1.2.1
	gnu/dist/gdb6/gdb/alphanbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64bsd-nat.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/amd64nbsd-nat.c			1.1.1.2.6.3
	gnu/dist/gdb6/gdb/amd64nbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/arm-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/armbsd-tdep.c				1.1.2.1
	gnu/dist/gdb6/gdb/armnbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/armnbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/configure				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/configure.ac				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/i386bsd-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/i386nbsd-tdep.c			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/m68kbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/mipsnbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/nbsd-thread.c				1.1.2.3
	gnu/dist/gdb6/gdb/ppcnbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/ppcnbsd-tdep.c			1.3.6.1
	gnu/dist/gdb6/gdb/sh-tdep.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/shnbsd-nat.c				1.1.1.2.6.3
	gnu/dist/gdb6/gdb/shnbsd-tdep.c				1.1.1.2.6.4
	gnu/dist/gdb6/gdb/shnbsd-tdep.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/sparc-nat.c				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/sparc64nbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/sparcnbsd-nat.c			1.1.1.2.6.2
	gnu/dist/gdb6/gdb/tramp-frame.h				1.1.1.2.6.1
	gnu/dist/gdb6/gdb/vaxbsd-nat.c				1.1.1.2.6.2
	gnu/dist/gdb6/gdb/config/alpha/nbsd.mh			1.1.1.2.6.1
	gnu/dist/gdb6/gdb/config/arm/nbsd.mt			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/arm/nbsdelf.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/i386/nbsd64.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/m68k/nbsdelf.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/mips/nbsd.mh			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/powerpc/nbsd.mh		1.1.1.2.6.1
	gnu/dist/gdb6/gdb/config/sh/nbsd.mh			1.1.1.1.6.2
	gnu/dist/gdb6/gdb/config/sh/tm-nbsd.h			1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/sparc/nbsd64.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/sparc/nbsdelf.mh		1.1.1.1.6.1
	gnu/dist/gdb6/gdb/config/vax/nbsdelf.mh			1.1.1.1.6.1
	gnu/dist/gdb6/opcodes/configure				1.1.1.2.6.1
	gnu/dist/gdb6/opcodes/configure.in			1.1.1.2.6.1
	gnu/usr.bin/Makefile					1.126.4.1
	gnu/usr.bin/gdb6/arch/alpha/config.h			1.3.4.1
	gnu/usr.bin/gdb6/arch/alpha/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/alpha/init.c			1.2.6.1
	gnu/usr.bin/gdb6/arch/alpha/nm.h			1.2.6.1
	gnu/usr.bin/gdb6/arch/arm/defs.mk			1.2.6.2
	gnu/usr.bin/gdb6/arch/arm/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/armeb/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/defs.mk			1.1.6.3
	gnu/usr.bin/gdb6/arch/armeb/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/tm.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/armeb/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/i386/defs.mk			1.4.4.1
	gnu/usr.bin/gdb6/arch/i386/init.c			1.3.6.1
	gnu/usr.bin/gdb6/arch/m68000/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/tm.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68000/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/m68k/defs.mk			1.1.4.1
	gnu/usr.bin/gdb6/arch/m68k/init.c			1.1.4.1
	gnu/usr.bin/gdb6/arch/mipseb/config.h			1.3.4.1
	gnu/usr.bin/gdb6/arch/mipseb/defs.mk			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipseb/init.c			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipsel/config.h			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/defs.mk			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/init.c			1.2.6.3
	gnu/usr.bin/gdb6/arch/mipsel/tm.h			1.2.6.2
	gnu/usr.bin/gdb6/arch/mipsel/version.c			1.2.6.2
	gnu/usr.bin/gdb6/arch/powerpc/defs.mk			1.3.6.1
	gnu/usr.bin/gdb6/arch/powerpc/init.c			1.3.6.1
	gnu/usr.bin/gdb6/arch/sh3eb/config.h			1.2.2.2
	gnu/usr.bin/gdb6/arch/sh3eb/defs.mk			1.2.8.3
	gnu/usr.bin/gdb6/arch/sh3eb/init.c			1.1.8.3
	gnu/usr.bin/gdb6/arch/sh3eb/nm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3eb/tm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3eb/version.c			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/config.h			1.2.2.2
	gnu/usr.bin/gdb6/arch/sh3el/defs.mk			1.2.8.3
	gnu/usr.bin/gdb6/arch/sh3el/init.c			1.1.8.3
	gnu/usr.bin/gdb6/arch/sh3el/nm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/tm.h			1.1.8.2
	gnu/usr.bin/gdb6/arch/sh3el/version.c			1.1.8.2
	gnu/usr.bin/gdb6/arch/sparc/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/sparc/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/sparc64/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/sparc64/init.c			1.1.6.1
	gnu/usr.bin/gdb6/arch/vax/config.h			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/init.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/tm.h				1.1.6.2
	gnu/usr.bin/gdb6/arch/vax/version.c			1.1.6.2
	gnu/usr.bin/gdb6/arch/x86_64/defs.mk			1.2.6.1
	gnu/usr.bin/gdb6/arch/x86_64/init.c			1.1.6.1
	gnu/usr.bin/gdb6/bfd/arch/armeb/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/armeb/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/bfdver.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/bfd.h			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/bfdver.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3eb/defs.mk			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3el/bfd.h			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/sh3el/bfdver.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/bfd/arch/sh3el/defs.mk			1.1.8.3
	gnu/usr.bin/gdb6/bfd/arch/vax/bfd.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/bfdver.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/config.h			1.1.6.2
	gnu/usr.bin/gdb6/bfd/arch/vax/defs.mk			1.1.6.2
	gnu/usr.bin/gdb6/gdb/Makefile				1.5.2.1.2.2
	gnu/usr.bin/gdb6/gdbtui/Makefile			1.2.6.1
	gnu/usr.bin/gdb6/libiberty/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3eb/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/sh3el/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/libiberty/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/libiberty/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3eb/defs.mk		1.1.8.3
	gnu/usr.bin/gdb6/opcodes/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/opcodes/arch/sh3el/defs.mk		1.1.8.3
	gnu/usr.bin/gdb6/opcodes/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/opcodes/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/armeb/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/armeb/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/m68000/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/m68000/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/mipsel/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/mipsel/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/sh3eb/config.h		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3eb/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3el/config.h		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/sh3el/defs.mk		1.1.8.2
	gnu/usr.bin/gdb6/readline/arch/vax/config.h		1.1.6.2
	gnu/usr.bin/gdb6/readline/arch/vax/defs.mk		1.1.6.2
	gnu/usr.bin/gdb6/sim/arch/mipseb/cconfig.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipseb/config.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipseb/defs.mk		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/cconfig.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/config.h		1.1.2.1
	gnu/usr.bin/gdb6/sim/arch/mipsel/defs.mk		1.1.2.1
	lib/libkvm/kvm_sparc64.c				1.10.18.2
	lib/libpthread/pthread.c				1.48.6.4
	lib/libpthread/pthread_barrier.c			1.6.18.1
	lib/libpthread/pthread_cond.c				1.18.12.2
	lib/libpthread/pthread_debug.h				1.8.18.1
	lib/libpthread/pthread_int.h				1.34.4.5
	lib/libpthread/pthread_lock.c				1.14.6.1
	lib/libpthread/pthread_mutex.c				1.22.4.2
	lib/libpthread/pthread_run.c				1.18.12.4
	lib/libpthread/pthread_rwlock.c				1.13.6.2
	lib/libpthread/pthread_sa.c				1.37.6.5
	lib/libpthread/pthread_sig.c				1.47.4.8
	lib/libpthread/pthread_sleep.c				1.7.6.2
	lib/libpthread/sem.c					1.9.6.2
	lib/libpthread/arch/sh3/pthread_md.h			1.3.6.1
	regress/lib/libpthread/resolv/Makefile			1.1.12.1
	regress/lib/libpthread/sigrunning/Makefile		1.1.2.1
	regress/lib/libpthread/sigrunning/sigrunning.c		1.1.2.1
	share/mk/bsd.own.mk					1.489.4.3
	sys/arch/amd64/amd64/locore.S				1.18.14.1
	sys/arch/amd64/amd64/machdep.c				1.44.2.3.2.1
	sys/arch/amd64/conf/kern.ldscript			1.1.70.1
	sys/arch/cats/conf/Makefile.cats.inc			1.17.30.1
	sys/arch/shark/conf/Makefile.shark.inc			1.6.30.1
	sys/arch/sparc64/conf/kern.ldscript			1.7.26.2
	sys/arch/sparc64/conf/kern32.ldscript			1.6.26.2
	sys/arch/sparc64/include/kcore.h			1.4.92.2
	sys/arch/sparc64/sparc64/locore.s			1.232.4.4
	sys/arch/sparc64/sparc64/machdep.c			1.193.4.3
	sys/arch/sparc64/sparc64/pmap.c				1.184.2.1.2.4
	sys/conf/newvers.sh					1.42.26.2
	sys/kern/kern_sa.c					1.87.4.11
	sys/kern/kern_synch.c					1.173.4.2
	sys/sys/savar.h						1.20.10.2
	tools/gdb/Makefile					1.9.4.1
	tools/gdb/mknative-gdb					1.1.6.1

pullup the wrstuden-fixsa CVS branch to netbsd-4:
toolchain/35540 - GDB 6 support for pthreads.
port-sparc64/37534 - ktrace firefox gives
    kernel trap 30: data access expection
GDB changes:
- delete gdb53
- enable gdb6 on all architectures
- add support for amd64 crash dumps
- add support for sparc64 crash dumps
- add support for /proc pid to executable filename for all archs
- enable thread support for all architectures
- add a note section to kernels to all platforms
- support detection/unwinding of signals for most architectures.
- Fix PTHREAD_UCONTEXT_TO_REG / PTHREAD_REG_TO_UCONTEXT on sh3.
- Apply fix from binutils-current so that sparc gdb can be cross built
  on a 64bit host.
SA/pthread changes:
Pre-allocate memory needed for event delivery. Eliminates dropped
interrupts under load.
Deliver intra-process signals to running threads
Eliminate some deadlock scenarios
Fix intra-process signal delivery when delivering to a thread waiting
for signals. Makes afs work again!
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2005/08/07 00:21:38 chris Exp $
d16 1
a16 2
    ${OBJCOPY} -O a.out-arm-netbsd \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
@


1.14.10.1
log
@sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD$
d16 1
a16 2
    ${OBJCOPY} -O a.out-arm-netbsd \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
@


1.14.10.2
log
@sync with HEAD
@
text
@d1 1
a1 1
#	Makefile,v 1.14.10.1 2008/01/09 01:27:51 matt Exp
a16 1
	-R .debug_abbrev -R .debug_info -R .debug_line -R .debug_str \
@


1.14.6.1
log
@Pull across:

revision 1.15
date: 2007/11/19 10:28:15;  author: skrll;  state: Exp;  lines: +3 -2
Remove the .note.netbsd.ident section when converting the kernel to a.out.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2005/08/07 00:21:38 chris Exp $
d16 1
a16 2
    ${OBJCOPY} -O a.out-arm-netbsd \
	-R .ident -R .arm.atpcs -R .comment -R .note.netbsd.ident \
@


1.13
log
@use simpler MDSET_NOSTRIP= instead of MDSET_NOSTRIP.xxxx=
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2003/09/21 15:21:43 matt Exp $
d9 2
a10 1
MDSETTARGETS=		INSTALL ${RAMDISK} netbsd.aout-INSTALL
@


1.12
log
@Need to remove .comment too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2003/01/14 20:18:25 skrll Exp $
d12 1
a12 1
MDSET_NOSTRIP.netbsd.aout-INSTALL=	# defined
@


1.11
log
@Don't strip the kernel before the objcopy as the result won't load with
the CATS firmware. I think this is due to a bug in bfd. We'll see.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2002/11/23 16:02:55 thorpej Exp $
d15 1
a15 1
    ${OBJCOPY} -O a.out-arm-netbsd -R .ident -R .arm.atpcs \
@


1.10
log
@Use objcopy to a.out'ify the install kernel image.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/05/08 21:44:54 lukem Exp $
d11 2
@


1.9
log
@- whitespace consistency cleanup
- build (mdset/nm/strip) into ${filename} as one rule, and move ${filename}.gz
  into separate rule
- rename MDSET.${filename}.nosymbols -> MDSET_NOSYMBOLS.${filename}
- rename MDSET.${filename}.post -> MDSET_POST.${filename}, and don't do
  suffix handling here
- rework suffix handling:
	- rename MDSET.${filename}.suffixes -> MDSET_SUFFIXES.${filename},
	  and change from list of suffixes to list of "suffix cmdtobuildsuffix",
  	  where cmdtobuildsuffix is the name of the variable containing the
	  command to build ${filename}.${suffix} (available as "${.TARGET}").
	- for each ${filename}.${suffix}, depend upon ${filename} and use
	  ${cmdtobuildsuffix} to create the former.
	- add separate ${filename}.${suffix}.gz rule
- mipsco & pmax: rename "install.gz" to "netbsd-INSTALL.gz", for
  consistency and so the target to build the mdset kernel doesn't get
  confused with general "install" target
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2002/05/03 15:22:58 lukem Exp $
d12 3
a14 4
MDSET_POST.netbsd.aout-INSTALL=OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
			    ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
			    ${.TARGET} ${.TARGET}

@


1.9.2.1
log
@Apply patch (requested by jmc in ticket #1404):
Fix 2 remaining places items are depending on execute permissions coming out
from a cvs checkout on scripts.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/05/08 21:44:54 lukem Exp $
d13 1
a13 1
			    sh ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
@


1.8
log
@rather than blocking parallel mdset builds with .WAIT, replace usage of
"netbsd.tmp" with "${.TARGET:R}" (et al)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2002/05/02 18:02:29 lukem Exp $
a7 1
MDSETTARGETS=	INSTALL ${RAMDISK} netbsd.aout-INSTALL
d9 6
a14 4
MDSET.netbsd.aout-INSTALL.post=	\
		OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
	    	    ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
		    ${.TARGET:R} ${.TARGET:R}
a15 1
MDSET_RELEASEDIR=	binary/kernel
@


1.7
log
@yet another distrib overhaul:
- move guts of distrib/Makefile.inc to distrib/common/Makefile.distrib
  (fixes problem caused by implicit include of ../Makefile.inc in certain
  submake conditions triggered by makefiles not yet in tree)
- removed mkdir of ${RELEASEDIR}/*;  rely upon "snap_pre" target of
  etc/Makefile to create all the release directories
- renamed RELINSTALL to RELEASE_INSTALL
- renamed FLOPPYINSTDIR to FLOPPY_RELEASEDIR
- renamed MDSETDIR to MDSET_RELEASEDIR
- removed ITARGET
- move release target from top level to appropriate subdirectory
- ensure release target has correct depends
- replace miniroot's IMAGE_MD_POST with common/Makefile.image IMAGEPOSTBUILD
- Makefile.image: add realall: ${IMAGE}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/04/26 15:50:26 lukem Exp $
d13 1
a13 1
		    netbsd.tmp netbsd.tmp
@


1.6
log
@replace _SRC_TOP_ with NETBSDSRCDIR, since the latter is the "public" version
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/04/14 01:41:24 lukem Exp $
d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d15 1
a15 1
MDSETDIR=	binary/kernel
@


1.5
log
@- Rename Makefile.mdset variables:
	MDEXTRA_SUFFIXES.${KERNEL} 	-> MDSET.${FILENAME}.suffixes
	${KERNEL.${_K}}.post		-> MDSET.${FILENAME}.post
  This allows "default" rules for for MDSETTARGETS with FILENAMEs of "-"
  by defined MDSET.-.post & MDSET.-.suffixes
- Document the above
- Use the above appropriately in various Makefiles
- Be a be quieter when building these kernels
- Add .WAIT syncs so that multiple kernels aren't built in parallel, because
  the temporary filename is the same, and it also avoid hairy magic in
  syncing the targets generated from MDSET.${FILENAME}.suffixes with
  the master target for that ${FILENAME}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2002/04/12 13:39:45 lukem Exp $
d4 1
a4 1
.include "${_SRC_TOP_}/distrib/Makefile.inc"
@


1.4
log
@Makefile.mdset:
	replace
		TARGETS = KERNEL IMAGE [...]
	with
		MDTARGETS = KERNEL IMAGE FILENAME [...]
	If FILENAME is "-", use "netbsd.${KERNEL}" as the target filename

The rest:
	Update for new MDTARGETS syntax.  In some cases, the kernel
	name from the "old" method will be used to override the default.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2002/04/12 05:33:59 lukem Exp $
d10 4
a13 3
netbsd.aout-INSTALL.post=	\
	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
	    ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh netbsd.tmp netbsd.tmp
@


1.3
log
@- don't pull in <bsd.prog.mk> in Makefile.mdset; do that in the caller instead
- renamed optional post-strip action variable from ${KERNEL}.post to
  netbsd.${KERNEL}.post
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2002/04/11 22:53:02 lukem Exp $
d8 1
a8 1
TARGETS=	INSTALL ${RAMDISK}
d10 3
a12 3
netbsd.INSTALL.post=	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
			    ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
			    netbsd.tmp netbsd.tmp
@


1.2
log
@convert to distrib/common/Makefile.mdset
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2002/04/11 16:33:59 skrll Exp $
d10 3
a12 3
INSTALL.post=	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
		    ${KERNSRCDIR}/arch/arm/conf/elf2aout.sh \
		    netbsd.tmp netbsd.tmp
d17 2
@


1.1
log
@The results of my cats NWDO hacking.

This was tested using a custom INSTALL kernel. The current one is >4Mb
which the cats firmware can't currently boot. We need to decide what
needs to be removed from INSTALL.
@
text
@d1 1
a1 1
#	$NetBSD$
d6 3
a8 1
.include <bsd.kernobj.mk>
d10 3
a12 1
CLEANFILES=	netbsd.tmp netbsd.tmp.gz
d14 1
a14 1
RAMDISKS=	RAMDISK	ramdisk
d16 1
a16 37
.for V F in ${RAMDISKS}
${V}DIR!=	cd ${.CURDIR}/../${F} && ${PRINTOBJDIR}
${V}=		${${V}DIR}/${F}.fs
.endfor

#	create netbsd.*.gz targets
#
#	TARGETS is a list of:
#		KERNEL_name	fs-image
#
TARGETS=	INSTALL		${RAMDISK}

.for K R in ${TARGETS}
KERNELS+=	netbsd.${K}.gz
KERNELSYMS+=	netbsd.${K}.symbols
CLEANFILES+=	netbsd.${K}.gz netbsd.${K}.symbols
netbsd.${K}.gz: .NOTMAIN ${KERNOBJDIR}/${K}/netbsd ${R}
	@@echo "Populating ${.TARGET} with ${R}"
	cp ${KERNOBJDIR}/${K}/netbsd netbsd.tmp
	${MDSETIMAGE} -v netbsd.tmp ${R}
	${NM} netbsd.tmp > netbsd.${K}.symbols
	${STRIP} netbsd.tmp
	OBJCOPY=${OBJCOPY:Q} SIZE=${SIZE:Q} \
	    ${_SRC_TOP_}/sys/arch/arm/conf/elf2aout.sh netbsd.tmp netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}
.endfor

#	do the work
#
realall: ${KERNELS}

release:
	-mkdir -p ${RELEASEDIR}/binary/kernel
	cp -p ${KERNELS} ${KERNELSYMS} ${RELEASEDIR}/binary/kernel

.include <bsd.prog.mk>
@

