head	1.9;
access;
symbols
	netbsd-11-0-RC4:1.9
	netbsd-11-0-RC3:1.9
	netbsd-11-0-RC2:1.9
	netbsd-11-0-RC1:1.9
	perseant-exfatfs-base-20250801:1.9
	netbsd-11:1.9.0.10
	netbsd-11-base:1.9
	netbsd-10-1-RELEASE:1.9
	perseant-exfatfs-base-20240630:1.9
	perseant-exfatfs:1.9.0.8
	perseant-exfatfs-base:1.9
	netbsd-8-3-RELEASE:1.7
	netbsd-9-4-RELEASE:1.8
	netbsd-10-0-RELEASE:1.9
	netbsd-10-0-RC6:1.9
	netbsd-10-0-RC5:1.9
	netbsd-10-0-RC4:1.9
	netbsd-10-0-RC3:1.9
	netbsd-10-0-RC2:1.9
	netbsd-10-0-RC1:1.9
	netbsd-10:1.9.0.6
	netbsd-10-base:1.9
	netbsd-9-3-RELEASE:1.8
	cjep_sun2x-base1:1.9
	cjep_sun2x:1.9.0.4
	cjep_sun2x-base:1.9
	cjep_staticlib_x-base1:1.9
	netbsd-9-2-RELEASE:1.8
	cjep_staticlib_x:1.9.0.2
	cjep_staticlib_x-base:1.9
	netbsd-9-1-RELEASE:1.8
	phil-wifi-20200421:1.8
	phil-wifi-20200411:1.8
	is-mlppp:1.8.0.4
	is-mlppp-base:1.8
	phil-wifi-20200406:1.8
	netbsd-8-2-RELEASE:1.7
	netbsd-9-0-RELEASE:1.8
	netbsd-9-0-RC2:1.8
	netbsd-9-0-RC1:1.8
	phil-wifi-20191119:1.8
	netbsd-9:1.8.0.2
	netbsd-9-base:1.8
	phil-wifi-20190609:1.8
	netbsd-8-1-RELEASE:1.7
	netbsd-8-1-RC1:1.7
	pgoyette-compat-merge-20190127:1.7.12.1
	pgoyette-compat-20190127:1.8
	pgoyette-compat-20190118:1.8
	pgoyette-compat-1226:1.7
	pgoyette-compat-1126:1.7
	pgoyette-compat-1020:1.7
	pgoyette-compat-0930:1.7
	pgoyette-compat-0906:1.7
	netbsd-7-2-RELEASE:1.6
	pgoyette-compat-0728:1.7
	netbsd-8-0-RELEASE:1.7
	phil-wifi:1.7.0.14
	phil-wifi-base:1.7
	pgoyette-compat-0625:1.7
	netbsd-8-0-RC2:1.7
	pgoyette-compat-0521:1.7
	pgoyette-compat-0502:1.7
	pgoyette-compat-0422:1.7
	netbsd-8-0-RC1:1.7
	pgoyette-compat-0415:1.7
	pgoyette-compat-0407:1.7
	pgoyette-compat-0330:1.7
	pgoyette-compat-0322:1.7
	pgoyette-compat-0315:1.7
	netbsd-7-1-2-RELEASE:1.6
	pgoyette-compat:1.7.0.12
	pgoyette-compat-base:1.7
	netbsd-7-1-1-RELEASE:1.6
	matt-nb8-mediatek:1.7.0.10
	matt-nb8-mediatek-base:1.7
	perseant-stdc-iso10646:1.7.0.8
	perseant-stdc-iso10646-base:1.7
	netbsd-8:1.7.0.6
	netbsd-8-base:1.7
	prg-localcount2-base3:1.7
	prg-localcount2-base2:1.7
	prg-localcount2-base1:1.7
	prg-localcount2:1.7.0.4
	prg-localcount2-base:1.7
	pgoyette-localcount-20170426:1.7
	bouyer-socketcan-base1:1.7
	pgoyette-localcount-20170320:1.7
	netbsd-7-1:1.6.0.10
	netbsd-7-1-RELEASE:1.6
	netbsd-7-1-RC2:1.6
	netbsd-7-nhusb-base-20170116:1.6
	bouyer-socketcan:1.7.0.2
	bouyer-socketcan-base:1.7
	pgoyette-localcount-20170107:1.7
	netbsd-7-1-RC1:1.6
	pgoyette-localcount-20161104:1.7
	netbsd-7-0-2-RELEASE:1.6
	localcount-20160914:1.6
	netbsd-7-nhusb:1.6.0.8
	netbsd-7-nhusb-base:1.6
	pgoyette-localcount-20160806:1.6
	pgoyette-localcount-20160726:1.6
	pgoyette-localcount:1.6.0.6
	pgoyette-localcount-base:1.6
	netbsd-7-0-1-RELEASE:1.6
	netbsd-7-0:1.6.0.4
	netbsd-7-0-RELEASE:1.6
	netbsd-7-0-RC3:1.6
	netbsd-7-0-RC2:1.6
	netbsd-7-0-RC1:1.6
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.6.0.2
	netbsd-7-base:1.6
	yamt-pagecache-base9:1.5
	yamt-pagecache-tag8:1.4
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.5.0.2
	tls-earlyentropy-base:1.6
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.5
	riastradh-drm2-base3:1.5
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.16
	riastradh-drm2-base:1.4
	netbsd-6-1:1.4.0.22
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.4.0.20
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.4.0.18
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.3.0.14
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.14
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.12
	tls-maxphys-base:1.6
	matt-nb6-plus:1.4.0.10
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-6:1.4.0.8
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.6
	yamt-pagecache-base:1.4
	cherry-xenmp:1.4.0.4
	cherry-xenmp-base:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.2
	bouyer-quota2-base:1.4
	matt-mips64-premerge-20101231:1.4
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.12
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.10
	netbsd-5-1-RELEASE:1.3
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	netbsd-5-1-RC1:1.3
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	matt-premerge-20091211:1.4
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	matt-nb5-mips64:1.3.0.8
	netbsd-5-0-1-RELEASE:1.3
	jym-xensuspend-nbase:1.4
	netbsd-5-0:1.3.0.6
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.3.0.4
	jym-xensuspend-base:1.4
	netbsd-5-0-RC1:1.3
	netbsd-5:1.3.0.2
	netbsd-5-base:1.3
	matt-mips64-base2:1.3
	matt-mips64:1.2.0.26
	netbsd-4-0-1-RELEASE:1.2
	wrstuden-revivesa-base-3:1.3
	wrstuden-revivesa-base-2:1.3
	wrstuden-fixsa-newbase:1.2
	wrstuden-revivesa-base-1:1.2
	yamt-pf42-base4:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	wrstuden-revivesa:1.2.0.24
	wrstuden-revivesa-base:1.2
	yamt-pf42:1.2.0.22
	yamt-pf42-base:1.2
	mjf-devfs2:1.2.0.20
	mjf-devfs2-base:1.3
	keiichi-mipv6:1.2.0.18
	keiichi-mipv6-base:1.2
	mjf-devfs:1.2.0.16
	mjf-devfs-base:1.2
	matt-armv6-nbase:1.2
	matt-armv6-prevmlocking:1.2
	wrstuden-fixsa-base-1:1.2
	netbsd-4-0:1.2.0.14
	netbsd-4-0-RELEASE:1.2
	cube-autoconf:1.2.0.12
	cube-autoconf-base:1.2
	netbsd-4-0-RC5:1.2
	netbsd-4-0-RC4:1.2
	netbsd-4-0-RC3:1.2
	netbsd-4-0-RC2:1.2
	netbsd-4-0-RC1:1.2
	matt-armv6:1.2.0.10
	matt-armv6-base:1.2
	matt-mips64-base:1.2
	hpcarm-cleanup:1.2.0.8
	hpcarm-cleanup-base:1.2
	wrstuden-fixsa:1.2.0.6
	wrstuden-fixsa-base:1.2
	abandoned-netbsd-4-base:1.2
	abandoned-netbsd-4:1.2.0.2
	netbsd-4:1.2.0.4
	netbsd-4-base:1.2;
locks; strict;
comment	@# @;


1.9
date	2020.06.14.05.10.33;	author tsutsui;	state Exp;
branches;
next	1.8;
commitid	6p6w5JNzynWFo9cC;

1.8
date	2019.01.01.19.09.12;	author christos;	state Exp;
branches;
next	1.7;
commitid	p5qKj2TcH0wb576B;

1.7
date	2016.09.20.20.55.11;	author christos;	state Exp;
branches
	1.7.12.1
	1.7.14.1;
next	1.6;
commitid	5Ca76LnRtTsGr4nz;

1.6
date	2014.08.05.15.40.58;	author apb;	state Exp;
branches
	1.6.6.1;
next	1.5;
commitid	1Qp6Y0KwxUnrGbLx;

1.5
date	2014.01.27.08.18.07;	author apb;	state Exp;
branches
	1.5.2.1;
next	1.4;
commitid	wwPlzP7Kwl0vkJmx;

1.4
date	2009.04.03.22.36.35;	author perry;	state Exp;
branches
	1.4.6.1
	1.4.12.1;
next	1.3;

1.3
date	2008.06.23.02.16.53;	author matt;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2006.01.09.07.24.29;	author tsutsui;	state Exp;
branches
	1.2.20.1
	1.2.24.1;
next	1.1;

1.1
date	2005.12.29.16.01.31;	author tsutsui;	state Exp;
branches;
next	;

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

1.7.14.1
date	2019.06.10.21.42.21;	author christos;	state Exp;
branches;
next	;
commitid	jtc8rnCzWiEEHGqB;

1.6.6.1
date	2016.11.04.14.42.38;	author pgoyette;	state Exp;
branches;
next	;
commitid	2m1JRwYmpwPkOOsz;

1.5.2.1
date	2014.08.10.06.48.04;	author tls;	state Exp;
branches;
next	;
commitid	jzvuS5THSGLFzMLx;

1.4.6.1
date	2014.05.22.12.01.28;	author yamt;	state Exp;
branches;
next	;
commitid	yqlfOuaAhYmASwBx;

1.4.12.1
date	2014.08.19.23.45.39;	author tls;	state Exp;
branches;
next	;
commitid	jTnpym9Qu0o4R1Nx;

1.3.4.1
date	2009.05.13.19.17.42;	author jym;	state Exp;
branches;
next	;

1.2.20.1
date	2008.06.29.08.25.12;	author mjf;	state Exp;
branches;
next	1.2.20.2;

1.2.20.2
date	2008.10.05.20.10.17;	author mjf;	state dead;
branches;
next	;

1.2.24.1
date	2008.09.18.04.41.09;	author wrstuden;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Put a message in build error logs to notify what this target builds.
@
text
@#	$NetBSD: Makefile,v 1.8 2019/01/01 19:09:12 christos Exp $

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

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

MDSETTARGETS=		RAMDISK ${RAMDISK} -
MDSET_RELEASEDIR=	binary/kernel
MDSET_STRIPSECTIONS=	-R .MIPS.abiflags -R .gnu.attributes -R .pdr -R .reginfo

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

BOOT_RAMDISK=		boot-RAMDISK
BOOT_RELEASEDIR=	installation/boot

all realall:	${BOOT_RAMDISK}.gz

${BOOT_RAMDISK}.gz:	netbsd-RAMDISK.gz ${DESTDIR}/usr/mdec/boot_kernel.gz
	@@echo "Creating a bootloader binary with embedded RAMDISK kernel"
	gunzip -c ${DESTDIR}/usr/mdec/boot_kernel.gz > ${BOOT_RAMDISK}.tmp
	${TOOL_MDSETIMAGE} -v ${BOOT_RAMDISK}.tmp netbsd-RAMDISK.gz
	${MIPS_ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff
	${TOOL_GZIP_N} -9c ${BOOT_RAMDISK}.coff > ${.TARGET}

CLEANFILES+=	${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff ${BOOT_RAMDISK}.gz

release::	check_RELEASEDIR .WAIT ${BOOT_RAMDISK}.gz
	${RELEASE_INSTALL} ${BOOT_RAMDISK}.gz \
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}

.include <bsd.prog.mk>
@


1.8
log
@Rename ELF2ECOFF -> MIPS_ELF2ECOFF
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2016/09/20 20:55:11 christos Exp $
d21 1
@


1.7
log
@Strip more sections, and verbose printing.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2014/08/05 15:40:58 apb Exp $
d23 1
a23 1
	${ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff
@


1.7.14.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2019/01/01 19:09:12 christos Exp $
d23 1
a23 1
	${MIPS_ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff
@


1.7.12.1
log
@Synch with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2016/09/20 20:55:11 christos Exp $
d23 1
a23 1
	${MIPS_ELF2ECOFF} ${BOOT_RAMDISK}.tmp ${BOOT_RAMDISK}.coff
@


1.6
log
@Use ${TOOL_GZIP_N} instead of ${TOOL_GZIP} -n, and similarly
use ${TOOL_GZIP_N} -9 instead of ${TOOL_GZIP} -9n, etc.

This will pass -nT instead of just -n if the gzip program is
actually pigz.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2014/01/27 08:18:07 apb Exp $
d11 1
d22 1
a22 1
	${TOOL_MDSETIMAGE} ${BOOT_RAMDISK}.tmp netbsd-RAMDISK.gz
@


1.6.6.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2016/09/20 20:55:11 christos Exp $
a10 1
MDSET_STRIPSECTIONS=	-R .MIPS.abiflags -R .gnu.attributes -R .pdr -R .reginfo
d21 1
a21 1
	${TOOL_MDSETIMAGE} -v ${BOOT_RAMDISK}.tmp netbsd-RAMDISK.gz
@


1.5
log
@Use ${TOOL_GZIP} instead of just gzip in all Makefiles
outside */dist/* subdirectories.

When USE_PIGZGZIP=yes, bsd.own.mk sets TOOL_GZIP=${TOOL_PIGZ},
so there's no need to test USE_PIGZGZIP in these Makefiles.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/04/03 22:36:35 perry Exp $
d23 1
a23 1
	${TOOL_GZIP} -9nc ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.5.2.1
log
@Rebase.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2014/08/05 15:40:58 apb Exp $
d23 1
a23 1
	${TOOL_GZIP_N} -9c ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.4
log
@Consistently use gzip with the -n flag so dates are not embedded.

Not tested on all platforms.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2008/06/23 02:16:53 matt Exp $
d23 1
a23 1
	gzip -9nc ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.4.12.1
log
@Rebase to HEAD as of a few days ago.
@
text
@d1 1
a1 1
#	$NetBSD$
d23 1
a23 1
	${TOOL_GZIP_N} -9c ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.4.6.1
log
@sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/04/03 22:36:35 perry Exp $
d23 1
a23 1
	${TOOL_GZIP} -9nc ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.3
log
@Change remaining instances of ${RELEASEDIR}/${MACHINES} to
${RELEASEDIR}/${RELEASEMACHINEDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2006/01/09 07:24:29 tsutsui Exp $
d23 1
a23 1
	gzip -9c ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.3.4.1
log
@Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2009/04/03 22:36:35 perry Exp $
d23 1
a23 1
	gzip -9nc ${BOOT_RAMDISK}.coff > ${.TARGET}
@


1.2
log
@Make and install a bootloader binary with embedded RAMDISK kernel image.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2005/12/29 16:01:31 tsutsui Exp $
d29 1
a29 1
	    ${RELEASEDIR}/${MACHINE}/${BOOT_RELEASEDIR}
@


1.2.24.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2006/01/09 07:24:29 tsutsui Exp $
d29 1
a29 1
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
@


1.2.20.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d29 1
a29 1
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/${BOOT_RELEASEDIR}
@


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


1.1
log
@Add files for ews4800mips distribution.

XXX sysinst is disabled for now.
@
text
@d1 1
a1 1
#	$NetBSD$
d14 17
@

