head	1.15;
access;
symbols
	netbsd-11-0-RC4:1.15
	netbsd-11-0-RC3:1.15
	netbsd-11-0-RC2:1.15
	netbsd-11-0-RC1:1.15
	perseant-exfatfs-base-20250801:1.15
	netbsd-11:1.15.0.4
	netbsd-11-base:1.15
	netbsd-10-1-RELEASE:1.14
	perseant-exfatfs-base-20240630:1.15
	perseant-exfatfs:1.15.0.2
	perseant-exfatfs-base:1.15
	netbsd-8-3-RELEASE:1.14
	netbsd-9-4-RELEASE:1.14
	netbsd-10-0-RELEASE:1.14
	netbsd-10-0-RC6:1.14
	netbsd-10-0-RC5:1.14
	netbsd-10-0-RC4:1.14
	netbsd-10-0-RC3:1.14
	netbsd-10-0-RC2:1.14
	netbsd-10-0-RC1:1.14
	netbsd-10:1.14.0.22
	netbsd-10-base:1.14
	netbsd-9-3-RELEASE:1.14
	cjep_sun2x-base1:1.14
	cjep_sun2x:1.14.0.20
	cjep_sun2x-base:1.14
	cjep_staticlib_x-base1:1.14
	netbsd-9-2-RELEASE:1.14
	cjep_staticlib_x:1.14.0.18
	cjep_staticlib_x-base:1.14
	netbsd-9-1-RELEASE:1.14
	phil-wifi-20200421:1.14
	phil-wifi-20200411:1.14
	is-mlppp:1.14.0.16
	is-mlppp-base:1.14
	phil-wifi-20200406:1.14
	netbsd-8-2-RELEASE:1.14
	netbsd-9-0-RELEASE:1.14
	netbsd-9-0-RC2:1.14
	netbsd-9-0-RC1:1.14
	phil-wifi-20191119:1.14
	netbsd-9:1.14.0.14
	netbsd-9-base:1.14
	phil-wifi-20190609:1.14
	netbsd-8-1-RELEASE:1.14
	netbsd-8-1-RC1:1.14
	pgoyette-compat-merge-20190127:1.14
	pgoyette-compat-20190127:1.14
	pgoyette-compat-20190118:1.14
	pgoyette-compat-1226:1.14
	pgoyette-compat-1126:1.14
	pgoyette-compat-1020:1.14
	pgoyette-compat-0930:1.14
	pgoyette-compat-0906:1.14
	netbsd-7-2-RELEASE:1.13
	pgoyette-compat-0728:1.14
	netbsd-8-0-RELEASE:1.14
	phil-wifi:1.14.0.12
	phil-wifi-base:1.14
	pgoyette-compat-0625:1.14
	netbsd-8-0-RC2:1.14
	pgoyette-compat-0521:1.14
	pgoyette-compat-0502:1.14
	pgoyette-compat-0422:1.14
	netbsd-8-0-RC1:1.14
	pgoyette-compat-0415:1.14
	pgoyette-compat-0407:1.14
	pgoyette-compat-0330:1.14
	pgoyette-compat-0322:1.14
	pgoyette-compat-0315:1.14
	netbsd-7-1-2-RELEASE:1.13
	pgoyette-compat:1.14.0.10
	pgoyette-compat-base:1.14
	netbsd-7-1-1-RELEASE:1.13
	matt-nb8-mediatek:1.14.0.8
	matt-nb8-mediatek-base:1.14
	perseant-stdc-iso10646:1.14.0.6
	perseant-stdc-iso10646-base:1.14
	netbsd-8:1.14.0.4
	netbsd-8-base:1.14
	prg-localcount2-base3:1.14
	prg-localcount2-base2:1.14
	prg-localcount2-base1:1.14
	prg-localcount2:1.14.0.2
	prg-localcount2-base:1.14
	pgoyette-localcount-20170426:1.14
	bouyer-socketcan-base1:1.14
	pgoyette-localcount-20170320:1.14
	netbsd-7-1:1.13.0.50
	netbsd-7-1-RELEASE:1.13
	netbsd-7-1-RC2:1.13
	netbsd-7-nhusb-base-20170116:1.13
	bouyer-socketcan:1.13.0.48
	bouyer-socketcan-base:1.13
	pgoyette-localcount-20170107:1.13
	netbsd-7-1-RC1:1.13
	pgoyette-localcount-20161104:1.13
	netbsd-7-0-2-RELEASE:1.13
	localcount-20160914:1.13
	netbsd-7-nhusb:1.13.0.46
	netbsd-7-nhusb-base:1.13
	pgoyette-localcount-20160806:1.13
	pgoyette-localcount-20160726:1.13
	pgoyette-localcount:1.13.0.44
	pgoyette-localcount-base:1.13
	netbsd-7-0-1-RELEASE:1.13
	netbsd-7-0:1.13.0.42
	netbsd-7-0-RELEASE:1.13
	netbsd-7-0-RC3:1.13
	netbsd-7-0-RC2:1.13
	netbsd-7-0-RC1:1.13
	netbsd-5-2-3-RELEASE:1.13
	netbsd-5-1-5-RELEASE:1.13
	netbsd-6-0-6-RELEASE:1.13
	netbsd-6-1-5-RELEASE:1.13
	netbsd-7:1.13.0.40
	netbsd-7-base:1.13
	yamt-pagecache-base9:1.13
	yamt-pagecache-tag8:1.13
	netbsd-6-1-4-RELEASE:1.13
	netbsd-6-0-5-RELEASE:1.13
	tls-earlyentropy:1.13.0.38
	tls-earlyentropy-base:1.13
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.13
	riastradh-drm2-base3:1.13
	netbsd-6-1-3-RELEASE:1.13
	netbsd-6-0-4-RELEASE:1.13
	netbsd-5-2-2-RELEASE:1.13
	netbsd-5-1-4-RELEASE:1.13
	netbsd-6-1-2-RELEASE:1.13
	netbsd-6-0-3-RELEASE:1.13
	netbsd-5-2-1-RELEASE:1.13
	netbsd-5-1-3-RELEASE:1.13
	netbsd-6-1-1-RELEASE:1.13
	riastradh-drm2-base2:1.13
	riastradh-drm2-base1:1.13
	riastradh-drm2:1.13.0.30
	riastradh-drm2-base:1.13
	netbsd-6-1:1.13.0.36
	netbsd-6-0-2-RELEASE:1.13
	netbsd-6-1-RELEASE:1.13
	khorben-n900:1.13.0.34
	netbsd-6-1-RC4:1.13
	netbsd-6-1-RC3:1.13
	agc-symver:1.13.0.32
	agc-symver-base:1.13
	netbsd-6-1-RC2:1.13
	netbsd-6-1-RC1:1.13
	yamt-pagecache-base8:1.13
	netbsd-5-2:1.13.0.28
	netbsd-6-0-1-RELEASE:1.13
	yamt-pagecache-base7:1.13
	netbsd-5-2-RELEASE:1.13
	netbsd-5-2-RC1:1.13
	matt-nb6-plus-nbase:1.13
	yamt-pagecache-base6:1.13
	netbsd-6-0:1.13.0.26
	netbsd-6-0-RELEASE:1.13
	netbsd-6-0-RC2:1.13
	tls-maxphys:1.13.0.24
	tls-maxphys-base:1.13
	matt-nb6-plus:1.13.0.22
	matt-nb6-plus-base:1.13
	netbsd-6-0-RC1:1.13
	yamt-pagecache-base5:1.13
	yamt-pagecache-base4:1.13
	netbsd-6:1.13.0.20
	netbsd-6-base:1.13
	netbsd-5-1-2-RELEASE:1.13
	netbsd-5-1-1-RELEASE:1.13
	yamt-pagecache-base3:1.13
	yamt-pagecache-base2:1.13
	yamt-pagecache:1.13.0.18
	yamt-pagecache-base:1.13
	cherry-xenmp:1.13.0.16
	cherry-xenmp-base:1.13
	bouyer-quota2-nbase:1.13
	bouyer-quota2:1.13.0.14
	bouyer-quota2-base:1.13
	matt-mips64-premerge-20101231:1.13
	matt-nb5-mips64-premerge-20101231:1.13
	matt-nb5-pq3:1.13.0.12
	matt-nb5-pq3-base:1.13
	netbsd-5-1:1.13.0.10
	netbsd-5-1-RELEASE:1.13
	netbsd-5-1-RC4:1.13
	matt-nb5-mips64-k15:1.13
	netbsd-5-1-RC3:1.13
	netbsd-5-1-RC2:1.13
	netbsd-5-1-RC1:1.13
	netbsd-5-0-2-RELEASE:1.13
	matt-nb5-mips64-premerge-20091211:1.13
	matt-premerge-20091211:1.13
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.13
	matt-nb4-mips64-k7-u2a-k9b:1.13
	matt-nb5-mips64-u1-k1-k5:1.13
	matt-nb5-mips64:1.13.0.8
	netbsd-5-0-1-RELEASE:1.13
	jym-xensuspend-nbase:1.13
	netbsd-5-0:1.13.0.6
	netbsd-5-0-RELEASE:1.13
	netbsd-5-0-RC4:1.13
	netbsd-5-0-RC3:1.13
	netbsd-5-0-RC2:1.13
	jym-xensuspend:1.13.0.4
	jym-xensuspend-base:1.13
	netbsd-5-0-RC1:1.13
	netbsd-5:1.13.0.2
	netbsd-5-base:1.13
	matt-mips64-base2:1.13
	matt-mips64:1.12.0.38
	netbsd-4-0-1-RELEASE:1.12
	wrstuden-revivesa-base-3:1.13
	wrstuden-revivesa-base-2:1.13
	wrstuden-fixsa-newbase:1.12
	wrstuden-revivesa-base-1:1.12
	yamt-pf42-base4:1.12
	yamt-pf42-base3:1.12
	hpcarm-cleanup-nbase:1.12
	yamt-pf42-baseX:1.12
	yamt-pf42-base2:1.12
	wrstuden-revivesa:1.12.0.36
	wrstuden-revivesa-base:1.12
	yamt-pf42:1.12.0.34
	yamt-pf42-base:1.12
	mjf-devfs2:1.12.0.32
	mjf-devfs2-base:1.13
	keiichi-mipv6:1.12.0.30
	keiichi-mipv6-base:1.12
	mjf-devfs:1.12.0.28
	mjf-devfs-base:1.12
	matt-armv6-nbase:1.12
	matt-armv6-prevmlocking:1.12
	wrstuden-fixsa-base-1:1.12
	netbsd-4-0:1.12.0.26
	netbsd-4-0-RELEASE:1.12
	cube-autoconf:1.12.0.24
	cube-autoconf-base:1.12
	netbsd-4-0-RC5:1.12
	netbsd-4-0-RC4:1.12
	netbsd-4-0-RC3:1.12
	netbsd-4-0-RC2:1.12
	netbsd-4-0-RC1:1.12
	matt-armv6:1.12.0.22
	matt-armv6-base:1.12
	matt-mips64-base:1.12
	hpcarm-cleanup:1.12.0.20
	hpcarm-cleanup-base:1.12
	netbsd-3-1-1-RELEASE:1.12
	netbsd-3-0-3-RELEASE:1.12
	wrstuden-fixsa:1.12.0.18
	wrstuden-fixsa-base:1.12
	abandoned-netbsd-4-base:1.12
	abandoned-netbsd-4:1.12.0.12
	netbsd-3-1:1.12.0.14
	netbsd-3-1-RELEASE:1.12
	netbsd-3-0-2-RELEASE:1.12
	netbsd-3-1-RC4:1.12
	netbsd-3-1-RC3:1.12
	netbsd-3-1-RC2:1.12
	netbsd-3-1-RC1:1.12
	netbsd-4:1.12.0.16
	netbsd-4-base:1.12
	netbsd-3-0-1-RELEASE:1.12
	netbsd-3-0:1.12.0.10
	netbsd-3-0-RELEASE:1.12
	netbsd-3-0-RC6:1.12
	netbsd-3-0-RC5:1.12
	netbsd-3-0-RC4:1.12
	netbsd-3-0-RC3:1.12
	netbsd-3-0-RC2:1.12
	netbsd-3-0-RC1:1.12
	netbsd-2-0-3-RELEASE:1.12
	netbsd-2-1:1.12.0.8
	netbsd-2-1-RELEASE:1.12
	netbsd-2-1-RC6:1.12
	netbsd-2-1-RC5:1.12
	netbsd-2-1-RC4:1.12
	netbsd-2-1-RC3:1.12
	netbsd-2-1-RC2:1.12
	netbsd-2-1-RC1:1.12
	netbsd-2-0-2-RELEASE:1.12
	netbsd-3:1.12.0.6
	netbsd-3-base:1.12
	netbsd-2-0-1-RELEASE:1.12
	netbsd-2:1.12.0.4
	netbsd-2-base:1.12
	netbsd-2-0-RELEASE:1.12
	netbsd-2-0-RC5:1.12
	netbsd-2-0-RC4:1.12
	netbsd-2-0-RC3:1.12
	netbsd-2-0-RC2:1.12
	netbsd-2-0-RC1:1.12
	netbsd-2-0:1.12.0.2
	netbsd-2-0-base:1.12
	netbsd-1-6-PATCH002-RELEASE:1.9
	netbsd-1-6-PATCH002:1.9
	netbsd-1-6-PATCH002-RC4:1.9
	netbsd-1-6-PATCH002-RC3:1.9
	netbsd-1-6-PATCH002-RC2:1.9
	netbsd-1-6-PATCH002-RC1:1.9
	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
	netbsd-1-5-PATCH003:1.1.2.2
	netbsd-1-5-PATCH002:1.1.2.2
	netbsd-1-5-PATCH001:1.1.2.2
	netbsd-1-5:1.1.0.2;
locks; strict;
comment	@# @;


1.15
date	2024.04.23.22.00.37;	author christos;	state Exp;
branches;
next	1.14;
commitid	uhYaOf8nQNYJHj7F;

1.14
date	2017.02.11.03.07.06;	author christos;	state Exp;
branches;
next	1.13;
commitid	RQbVHlgh5ObhUtFz;

1.13
date	2008.06.23.02.16.54;	author matt;	state Exp;
branches
	1.13.44.1
	1.13.48.1;
next	1.12;

1.12
date	2003.07.10.10.34.16;	author lukem;	state Exp;
branches
	1.12.32.1
	1.12.36.1;
next	1.11;

1.11
date	2003.01.03.15.34.35;	author lukem;	state Exp;
branches;
next	1.10;

1.10
date	2002.12.21.15.54.50;	author lukem;	state Exp;
branches;
next	1.9;

1.9
date	2002.05.05.21.24.51;	author jdolecek;	state Exp;
branches;
next	1.8;

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

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

1.6
date	2002.04.06.16.41.24;	author bjh21;	state Exp;
branches;
next	1.5;

1.5
date	2002.03.30.01.33.20;	author matt;	state Exp;
branches;
next	1.4;

1.4
date	2002.03.29.22.53.30;	author matt;	state Exp;
branches;
next	1.3;

1.3
date	2002.03.29.06.36.04;	author matt;	state Exp;
branches;
next	1.2;

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

1.1
date	2001.03.04.20.28.50;	author matt;	state Exp;
branches
	1.1.2.1;
next	;

1.13.44.1
date	2017.03.20.06.52.11;	author pgoyette;	state Exp;
branches;
next	;
commitid	jjw7cAwgyKq7RfKz;

1.13.48.1
date	2017.04.21.16.51.16;	author bouyer;	state Exp;
branches;
next	;
commitid	dUG7nkTKALCadqOz;

1.12.32.1
date	2008.06.29.08.25.13;	author mjf;	state Exp;
branches;
next	1.12.32.2;

1.12.32.2
date	2008.10.05.20.11.16;	author mjf;	state dead;
branches;
next	;

1.12.36.1
date	2008.09.18.04.41.22;	author wrstuden;	state Exp;
branches;
next	;

1.1.2.1
date	2001.03.04.20.28.50;	author he;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.03.20.18.35.26;	author he;	state Exp;
branches;
next	;


desc
@@


1.15
log
@VAX boot.fs: Fix owner/group/permissions for VAX's boot.fs (Jan-Benedict Glaw)

(Initial patch from Christos Zoulas.)  Don't create an archive based on local
permission bits and owner/group. Instead, feed a small manifest into `pax`
and let it to its work.

  NB: Don't also feed in an entry for the current directory ".", as `pax` will
then archive all files in the current directory, in `readdir()` order.
@
text
@#	$NetBSD: Makefile,v 1.14 2017/02/11 03:07:06 christos Exp $

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

.include <bsd.kernobj.mk>

.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif

INSTKERNOBJ!=	cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}

IMAGE=		boot.fs
IMAGESIZE=	1200k
XXBOOT=		${DESTDIR}/usr/mdec/xxboot_ustarfs 

IMAGEDEPENDS=	${XXBOOT} boot.vax netbsd.gz
CLEANFILES+=	netbsd.gz boot.vax ${IMAGE}.tmp

realall: ${IMAGE} ${XXBOOT} ${DESTDIR}/usr/mdec/boot

netbsd.gz: ${INSTKERNOBJ}/install.ram.gz
	cp -f ${.ALLSRC} ${.TARGET}

boot.vax: ${DESTDIR}/usr/mdec/boot
	cp -f ${.ALLSRC} ${.TARGET}

${IMAGE}: ${IMAGEDEPENDS}
	cat ${XXBOOT} > ${IMAGE}.tmp
	(echo "./boot.vax type=file uname=root gname=wheel mode=0755"; \
	 echo "./netbsd.gz type=file uname=root gname=wheel mode=0644") | \
		${TOOL_PAX} ${PAX_TIMESTAMP} -O -w -x ustar -M | \
		dd of=${IMAGE}.tmp seek=16
	dd if=${IMAGE}.tmp of=${IMAGE} bs=${IMAGESIZE} conv=sync

release: check_RELEASEDIR .WAIT ${IMAGE}
	${RELEASE_INSTALL} ${IMAGE} \
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/bootfs

.include <bsd.prog.mk>
@


1.14
log
@more MKREPRO_TIMESTAMP fixes (for pax/tar generated files)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.13 2008/06/23 02:16:54 matt Exp $
d32 4
a35 1
	${TOOL_PAX} ${PAX_TIMESTAMP} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.13
log
@Change remaining instances of ${RELEASEDIR}/${MACHINES} to
${RELEASEDIR}/${RELEASEMACHINEDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2003/07/10 10:34:16 lukem Exp $
d8 5
d32 1
a32 1
	${TOOL_PAX} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.13.48.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2017/02/11 03:07:06 christos Exp $
a7 5
.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif

d27 1
a27 1
	${TOOL_PAX} ${PAX_TIMESTAMP} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.13.44.1
log
@Sync with HEAD
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.14 2017/02/11 03:07:06 christos Exp $
a7 5
.if ${MKREPRO_TIMESTAMP:Uno} != "no"
MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}"
PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}"
.endif

d27 1
a27 1
	${TOOL_PAX} ${PAX_TIMESTAMP} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.12
log
@Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.11 2003/01/03 15:34:35 lukem Exp $
d32 1
a32 1
	    ${RELEASEDIR}/${MACHINE}/installation/bootfs
@


1.12.36.1
log
@Sync with wrstuden-revivesa-base-2.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2003/07/10 10:34:16 lukem Exp $
d32 1
a32 1
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/bootfs
@


1.12.32.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
#	$NetBSD$
d32 1
a32 1
	    ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/bootfs
@


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


1.11
log
@Install release files under "${RELEASEDIR}/${MACHINE}/..." instead of
"${RELEASEDIR}/...".

${RELEASEDIR} is never cleaned , and ${RELEASEDIR}/${MACHINE} is only
cleaned if UPDATE is not defined.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10 2002/12/21 15:54:50 lukem Exp $
d27 1
a27 1
	${PAX} -O -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.10
log
@Invoke ${PAX} with '-O' so that various errors don't hang the make
or the command with an interactive question.  (This also prevents
weird problems if a directory element of '-f path' is missing and
'make -j N' is being used).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2002/05/05 21:24:51 jdolecek Exp $
d31 2
a32 1
	${RELEASE_INSTALL} ${IMAGE} ${RELEASEDIR}/installation/bootfs
@


1.9
log
@ramdisk-kernel creates install.ram.gz now, not netbsd.INSTALL.gz
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2002/05/02 18:03:00 lukem Exp $
d27 1
a27 1
	${PAX} -w -x ustar boot.vax netbsd.gz | dd of=${IMAGE}.tmp seek=16
@


1.8
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.7 2002/04/30 15:28:32 lukem Exp $
d19 1
a19 1
netbsd.gz: ${INSTKERNOBJ}/netbsd.INSTALL.gz 
@


1.7
log
@minor consistency tweaks
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2002/04/06 16:41:24 bjh21 Exp $
d4 1
a4 1
.include "${NETBSDSRCDIR}/distrib/Makefile.inc"
d29 3
@


1.6
log
@Replace "obs" with "bs" and "conv=osync" with "conv=sync" in the dd command.
This is necessary because POSIX doesn't specify "conv=osync" and GNU dd
doesn't implement it.  I believe that in this case, where only one output
block should ever be generated and the input is a regular file, bs/sync is
equivalent to obs/osync.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2002/03/30 01:33:20 matt Exp $
a2 1
.include "${.CURDIR}/../../Makefile.inc"
d4 2
@


1.5
log
@Simplify even more.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2002/03/29 22:53:30 matt Exp $
d27 1
a27 1
	dd if=${IMAGE}.tmp of=${IMAGE} obs=${IMAGESIZE} conv=osync
@


1.4
log
@Simplify a bit.  Use installboot.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2002/03/29 06:36:04 matt Exp $
d13 2
a14 2
IMAGEDEPENDS=	${XXBOOT} boot netbsd.gz
CLEANFILES+=	netbsd.gz boot ${IMAGE}.tmp
d21 1
a21 1
boot: ${DESTDIR}/usr/mdec/boot
d25 2
a26 7
	echo USTARFS 0 > ${IMAGE}.tmp
	pax -w -x ustar boot netbsd.gz | dd of=${IMAGE}.tmp seek=16
.if ${USETOOLS} == "yes"
	${TOOLDIR}/bin/nbvax-installboot -v ${IMAGE}.tmp ${XXBOOT}
.else
	${DESTDIR}/usr/mdec/installboot -v ${IMAGE}.tmp ${XXBOOT}
.endif
@


1.3
log
@Convert floppy to use ustarfs
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2002/03/28 04:51:25 lukem Exp $
d10 2
d13 2
a14 3
IMAGEDEPENDS=	${DESTDIR}/usr/mdec/boot ${DESTDIR}/usr/mdec/xxboot_ustarfs \
		netbsd.gz
CLEANFILES+=	netbsd.gz ${IMAGE}.tar
d16 1
a16 1
realall: ${IMAGE} ${DESTDIR}/usr/mdec/xxboot_ustarfs ${DESTDIR}/usr/mdec/boot
d21 3
d25 8
a32 5
	( dd if=${DESTDIR}/usr/mdec/xxboot_ustarfs bs=8k conv=sync && \
	  tar -cf - -b 2384 \
		-C ${DESTDIR}/usr/mdec boot \
		-C ${.OBJDIR} netbsd.gz) > ${IMAGE}.tmp
	mv ${IMAGE}.tmp ${IMAGE}
@


1.2
log
@use distrib/common/Makefile.image, allowing for UNPRIVED builds.
(untested)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 2001/03/04 20:28:50 matt Exp $
a9 1
IMAGESIZE=	1440k
d11 15
a25 12
LISTS=		${.CURDIR}/list
IMAGEENDIAN=	le
IMAGEDEPENDS=	${DESTDIR}/usr/mdec/boot ${DESTDIR}/usr/mdec/xxboot \
		${INSTKERNOBJ}/netbsd.INSTALL.gz 

PARSELISTENV+=	INSTKERNOBJ=${INSTKERNOBJ:Q}

realall: ${IMAGE} ${DESTDIR}/usr/mdec/xxboot
	${DESTDIR}/usr/mdec/installboot -v ${IMAGE} ${DESTDIR}/usr/mdec/xxboot
		# XXXDISTRIB

.include "${DISTRIBDIR}/common/Makefile.image"
@


1.1
log
@Add a makefile to make boot.fs for vax.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.12 2001/01/24 06:11:40 jmc Exp $
d3 1
a3 3
TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
d7 2
d10 8
a17 2
INSTKERNOBJ!=	cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
KERN=		${KERNOBJDIR}/INSTALL/netbsd
d19 3
a21 33
MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_RDEVC=	/dev/r${VND}c
FD?=		fd0
FD_RDEV=	/dev/r${FD}a
MDEC=		${DESTDIR}/usr/mdec

DISKTYPE=	rx23

CLEANFILES+=	boot.fs

dependall all: ${MDEC}/boot ${INSTKERNOBJ}/netbsd.INSTALL.gz
	dd if=/dev/zero of=${IMAGE} bs=1440k count=1
	vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
	disklabel -Rr ${VND} ${.CURDIR}/floppy.lbl
	newfs -B le -m 0 -o space -i 56000 -c 80 -f 512 -b 4096 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	cp ${MDEC}/boot ${MOUNT_POINT}/boot
	cp ${INSTKERNOBJ}/netbsd.INSTALL.gz ${MOUNT_POINT}/netbsd
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	@@echo "installing new bootblocks"
	sync
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}
	${MDEC}/installboot -v ${IMAGE} ${MDEC}/xxboot

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}
d23 1
a23 2
clean cleandir distclean:
	rm -f *.core ${IMAGE} ${CLEANFILES}
d25 1
a25 1
.include <bsd.obj.mk>
@


1.1.2.1
log
@file Makefile was added on branch netbsd-1-5 on 2001-03-20 18:35:26 +0000
@
text
@d1 50
@


1.1.2.2
log
@Pull up revision 1.1 (new, requested by matt):
  Make a boot floppy for VAX.
@
text
@a0 50
#	$NetBSD: Makefile,v 1.1.2.1 2001/03/20 18:35:26 he Exp $

TOP=		${.CURDIR}/..

.include "${TOP}/Makefile.inc"
.include <bsd.own.mk>
.include <bsd.kernobj.mk>

IMAGE=		boot.fs
INSTKERNOBJ!=	cd ${.CURDIR}/../ramdisk-kernel && ${PRINTOBJDIR}
KERN=		${KERNOBJDIR}/INSTALL/netbsd

MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_RDEVC=	/dev/r${VND}c
FD?=		fd0
FD_RDEV=	/dev/r${FD}a
MDEC=		${DESTDIR}/usr/mdec

DISKTYPE=	rx23

CLEANFILES+=	boot.fs

dependall all: ${MDEC}/boot ${INSTKERNOBJ}/netbsd.INSTALL.gz
	dd if=/dev/zero of=${IMAGE} bs=1440k count=1
	vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE}
	disklabel -Rr ${VND} ${.CURDIR}/floppy.lbl
	newfs -B le -m 0 -o space -i 56000 -c 80 -f 512 -b 4096 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	cp ${MDEC}/boot ${MOUNT_POINT}/boot
	cp ${INSTKERNOBJ}/netbsd.INSTALL.gz ${MOUNT_POINT}/netbsd
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	@@echo "installing new bootblocks"
	sync
	umount ${MOUNT_POINT}
	vnconfig -u ${VND}
	${MDEC}/installboot -v ${IMAGE} ${MDEC}/xxboot

unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}

clean cleandir distclean:
	rm -f *.core ${IMAGE} ${CLEANFILES}

.include <bsd.obj.mk>
@
