head	1.11;
access;
symbols
	perseant-exfatfs-base-20250801:1.11
	perseant-exfatfs-base-20240630:1.11
	perseant-exfatfs:1.11.0.48
	perseant-exfatfs-base:1.11
	cjep_sun2x:1.11.0.46
	cjep_sun2x-base:1.11
	cjep_staticlib_x-base1:1.11
	cjep_staticlib_x:1.11.0.44
	cjep_staticlib_x-base:1.11
	phil-wifi-20200421:1.11
	phil-wifi-20200411:1.11
	phil-wifi-20200406:1.11
	pgoyette-compat-merge-20190127:1.11
	pgoyette-compat-20190127:1.11
	pgoyette-compat-20190118:1.11
	pgoyette-compat-1226:1.11
	pgoyette-compat-1126:1.11
	pgoyette-compat-1020:1.11
	pgoyette-compat-0930:1.11
	pgoyette-compat-0906:1.11
	pgoyette-compat-0728:1.11
	pgoyette-compat-0625:1.11
	pgoyette-compat-0521:1.11
	pgoyette-compat-0502:1.11
	pgoyette-compat-0422:1.11
	pgoyette-compat-0415:1.11
	pgoyette-compat-0407:1.11
	pgoyette-compat-0330:1.11
	pgoyette-compat-0322:1.11
	pgoyette-compat-0315:1.11
	pgoyette-compat:1.11.0.42
	pgoyette-compat-base:1.11
	perseant-stdc-iso10646:1.11.0.40
	perseant-stdc-iso10646-base:1.11
	prg-localcount2-base3:1.11
	prg-localcount2-base2:1.11
	prg-localcount2-base1:1.11
	prg-localcount2:1.11.0.38
	prg-localcount2-base:1.11
	pgoyette-localcount-20170426:1.11
	bouyer-socketcan-base1:1.11
	pgoyette-localcount-20170320:1.11
	bouyer-socketcan:1.11.0.36
	bouyer-socketcan-base:1.11
	pgoyette-localcount-20170107:1.11
	pgoyette-localcount-20161104:1.11
	localcount-20160914:1.11
	pgoyette-localcount-20160806:1.11
	pgoyette-localcount-20160726:1.11
	pgoyette-localcount:1.11.0.34
	pgoyette-localcount-base:1.11
	netbsd-5-2-3-RELEASE:1.11
	netbsd-5-1-5-RELEASE:1.11
	yamt-pagecache-base9:1.11
	yamt-pagecache-tag8:1.11
	tls-earlyentropy:1.11.0.30
	tls-earlyentropy-base:1.11
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.11
	riastradh-drm2-base3:1.11
	netbsd-5-2-2-RELEASE:1.11
	netbsd-5-1-4-RELEASE:1.11
	netbsd-5-2-1-RELEASE:1.11
	netbsd-5-1-3-RELEASE:1.11
	agc-symver:1.11.0.32
	agc-symver-base:1.11
	tls-maxphys-base:1.11
	yamt-pagecache-base8:1.11
	netbsd-5-2:1.11.0.28
	yamt-pagecache-base7:1.11
	netbsd-5-2-RELEASE:1.11
	netbsd-5-2-RC1:1.11
	yamt-pagecache-base6:1.11
	yamt-pagecache-base5:1.11
	yamt-pagecache-base4:1.11
	netbsd-5-1-2-RELEASE:1.11
	netbsd-5-1-1-RELEASE:1.11
	yamt-pagecache-base3:1.11
	yamt-pagecache-base2:1.11
	yamt-pagecache:1.11.0.26
	yamt-pagecache-base:1.11
	bouyer-quota2-nbase:1.11
	bouyer-quota2:1.11.0.24
	bouyer-quota2-base:1.11
	matt-nb5-pq3:1.11.0.22
	matt-nb5-pq3-base:1.11
	netbsd-5-1:1.11.0.20
	netbsd-5-1-RELEASE:1.11
	netbsd-5-1-RC4:1.11
	netbsd-5-1-RC3:1.11
	netbsd-5-1-RC2:1.11
	netbsd-5-1-RC1:1.11
	netbsd-5-0-2-RELEASE:1.11
	netbsd-5-0-1-RELEASE:1.11
	jym-xensuspend-nbase:1.11
	netbsd-5-0:1.11.0.18
	netbsd-5-0-RELEASE:1.11
	netbsd-5-0-RC4:1.11
	netbsd-5-0-RC3:1.11
	netbsd-5-0-RC2:1.11
	jym-xensuspend:1.11.0.16
	jym-xensuspend-base:1.11
	netbsd-5-0-RC1:1.11
	netbsd-5:1.11.0.14
	netbsd-5-base:1.11
	yamt-pf42-base4:1.11
	yamt-pf42-base3:1.11
	hpcarm-cleanup-nbase:1.11
	yamt-pf42-base2:1.11
	yamt-pf42:1.11.0.12
	yamt-pf42-base:1.11
	mjf-devfs2:1.11.0.10
	mjf-devfs2-base:1.11
	keiichi-mipv6:1.11.0.8
	keiichi-mipv6-base:1.11
	mjf-devfs:1.11.0.6
	mjf-devfs-base:1.11
	cube-autoconf:1.11.0.4
	cube-autoconf-base:1.11
	hpcarm-cleanup:1.11.0.2
	hpcarm-cleanup-base:1.11
	netbsd-1-5-PATCH003:1.4.4.2
	netbsd-1-5-PATCH002:1.4.4.2
	netbsd-1-5-PATCH001:1.4.4.2
	netbsd-1-5-RELEASE:1.4.4.2
	netbsd-1-5-BETA2:1.4.4.2
	netbsd-1-5-BETA:1.4.4.2
	netbsd-1-4-PATCH003:1.1.2.3
	netbsd-1-5-ALPHA2:1.4
	netbsd-1-5:1.4.0.4
	netbsd-1-5-base:1.4
	minoura-xpg4dl:1.4.0.2
	minoura-xpg4dl-base:1.4
	netbsd-1-4-PATCH002:1.1.2.2
	wrstuden-devbsize-19991221:1.1
	wrstuden-devbsize:1.1.0.6
	wrstuden-devbsize-base:1.1
	comdex-fall-1999:1.1.0.4
	comdex-fall-1999-base:1.1
	netbsd-1-4-PATCH001:1.1
	netbsd-1-4-RELEASE:1.1
	netbsd-1-4:1.1.0.2
	netbsd-1-4-base:1.1;
locks; strict;
comment	@# @;


1.11
date	2000.10.20.11.56.57;	author pk;	state dead;
branches;
next	1.10;

1.10
date	2000.09.28.12.46.44;	author abs;	state Exp;
branches;
next	1.9;

1.9
date	2000.09.04.17.00.16;	author abs;	state Exp;
branches;
next	1.8;

1.8
date	2000.09.04.16.54.39;	author abs;	state Exp;
branches;
next	1.7;

1.7
date	2000.09.04.16.36.59;	author abs;	state Exp;
branches;
next	1.6;

1.6
date	2000.08.28.19.14.25;	author pk;	state Exp;
branches;
next	1.5;

1.5
date	2000.08.22.14.11.07;	author abs;	state Exp;
branches;
next	1.4;

1.4
date	2000.05.02.16.06.54;	author sjg;	state Exp;
branches
	1.4.4.1;
next	1.3;

1.3
date	2000.05.02.13.57.27;	author sjg;	state Exp;
branches;
next	1.2;

1.2
date	2000.01.10.15.17.32;	author pk;	state Exp;
branches;
next	1.1;

1.1
date	99.04.30.05.11.46;	author abs;	state Exp;
branches
	1.1.2.1;
next	;

1.4.4.1
date	2000.08.22.16.06.31;	author abs;	state Exp;
branches;
next	1.4.4.2;

1.4.4.2
date	2000.10.19.14.24.21;	author tv;	state dead;
branches;
next	;

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

1.1.2.2
date	2000.03.01.00.22.41;	author he;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2000.06.03.15.19.52;	author he;	state Exp;
branches;
next	;


desc
@@


1.11
log
@Boot from floppy now requires two disk images:
	- a bootable bootfs which contains a spartan md-based `ramdisk'
	  filesystem, which loads the tar file image:
	- instfs, which is constructed from the miniroot filesystem
	  and contains all installation utilities.

The current miniroot image also supersedes the former separate
{bootfs,ramdisk}.sysinst tools.
@
text
@#	$NetBSD: Makefile,v 1.10 2000/09/28 12:46:44 abs Exp $

TOP=		${.CURDIR}/..
MINIROOT=	${.CURDIR}/../../miniroot

.include "${TOP}/Makefile.inc"

.include <bsd.own.mk>   # So we use /etc/mk.conf.
.include <bsd.kernobj.mk>

KERN?=		${KERNOBJDIR}/INSTALL_SYSINST/netbsd

MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}${RAW_PART}
VND_CRDEV=	/dev/r${VND}${RAW_PART}
FD?=		fd0
FD_RDEV=	/dev/r${FD}a
IMAGE?=		syboot.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		${.CURDIR}/list
RAMDISK!=	cd ${TOP}/ramdisk.sysinst/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/syramdisk.fs\n" |\
		${MAKE} -s -f-

DISKTYPE=	floppy

# Some reasonable values for the -i parameter to newfs are:
#
#   6144	1147k, 189 inodes free
#  16384	1159k,  93 inodes free
# 204800	1167k,  29 inodes free
INO_BYTES=	204800

CLEANFILES+=	netbsd.syram.gz netbsd.tmp

${IMAGE}:	netbsd.syram.gz
	dd if=/dev/zero of=${IMAGE} bs=1440k count=1
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
	disklabel -rw ${VND_CDEV} ${DISKTYPE}
	disklabel -W ${VND_CDEV}
	newfs -B be -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	TOPDIR=${TOP} CURDIR=${MINIROOT} OBJDIR=${.OBJDIR} \
	    KERNOBJDIR=${KERNOBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${MINIROOT}/runlist.sh ${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	@@echo "installing new bootblocks"
	-rm -f ${MOUNT_POINT}/boot
	/usr/mdec/binstall -v ffs ${MOUNT_POINT}
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}

all:	${IMAGE}

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

netbsd.syram.gz: ${KERN} ${RAMDISK}
	cp ${KERN} netbsd.tmp
	mdsetimage -v netbsd.tmp ${RAMDISK}
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

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

depend install:

real-floppy:
	dd if=${IMAGE} of=${FD_RDEV} bs=32k

.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release: $(IMAGE)
	cp -p netbsd.syram.gz $(RELEASEDIR)/installation/bootfs/netbsd.syram.gz
	gzip -c -9 < $(.OBJDIR)/$(IMAGE) \
		> $(RELEASEDIR)/installation/bootfs/$(IMAGE).gz
.endif	# RELEASEDIR check

.include <bsd.obj.mk>
@


1.10
log
@Prior art in naming would suggest INSTALL_SYSINST rather than INSTALL-SYSINST.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.9 2000/09/04 17:00:16 abs Exp $
@


1.9
log
@Sync (to some extent) with bootfs/Makefile
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.8 2000/09/04 16:54:39 abs Exp $
d11 1
a11 1
KERN?=		${KERNOBJDIR}/INSTALL-SYSINST/netbsd
@


1.8
log
@Now the miniroot based 'netbsd.ram.gz' is being installed into the installation
release dir we need to rename our 'netbsd.ram.gz' to 'netbsd.syram.gz'.
Man{ag,gl}ing two installation systems for NetBSD/sparc just gets more fun.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.7 2000/09/04 16:36:59 abs Exp $
a5 2
KERN=		${KERNOBJDIR}/INSTALL-SYSINST/netbsd

d11 2
d68 1
a68 1
	gzip netbsd.tmp
d85 1
a85 1
	cp netbsd.syram.gz $(RELEASEDIR)/installation/netboot
@


1.7
log
@Handle 'make release'
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.6 2000/08/28 19:14:25 pk Exp $
d38 1
a38 1
CLEANFILES+=	netbsd.ram.gz netbsd.tmp
d40 1
a40 1
${IMAGE}:	netbsd.ram.gz
d65 1
a65 1
netbsd.ram.gz: ${KERN} ${RAMDISK}
d85 1
a85 1
	cp netbsd.ram.gz $(RELEASEDIR)/installation/netboot
@


1.6
log
@Install the default boot program again (hopefully this will last a while..)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/08/22 14:11:07 abs Exp $
d6 1
a6 1
KERN=		${KERNOBJDIR}/INSTALL/netbsd
d55 1
a55 1
	/usr/mdec/binstall -v -b boot ffs ${MOUNT_POINT}
d59 2
d78 11
@


1.5
log
@Switch to boot.400000, as the default sparc boot breaks if the in kernel
ramdisk is greater than 2950 (for the current INSTALL kernel).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4 2000/05/02 16:06:54 sjg Exp $
d55 1
a55 1
	/usr/mdec/binstall -b boot.400000 -v ffs ${MOUNT_POINT}
@


1.4
log
@use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.3 2000/05/02 13:57:27 sjg Exp $
d6 2
d9 2
a12 2
KERN=		${KERNOBJDIR}/INSTALL/netbsd

d40 1
a40 1
all:	netbsd.ram.gz
d55 1
a55 1
	/usr/mdec/binstall -v ffs ${MOUNT_POINT}
@


1.4.4.1
log
@fix sysinst floppy for NetBSD/sparc, plus small doc fix.
Approved by thorpej, pullup list:
	distrib/notes/sparc/install			1.24
	distrib/sparc/bootfs.sysinst/Makefile		1.5
	distrib/sparc/list2sh.awk			1.4
	distrib/sparc/ramdisk.sysinst/Makefile		1.8
	distrib/sparc/ramdisk.sysinst/disktab		1.2
	distrib/sparc/ramdisk.sysinst/disktab.preinstall delete
	distrib/sparc/ramdisk.sysinst/dot.profile.m4	1.5
	distrib/sparc/ramdisk.sysinst/list.m4		1.6
	distrib/sparc/ramdisk.sysinst/mtree.conf	1.2
	distrib/sparc/ramdisk.sysinst/ramdiskbin.m4	1.4
	distrib/utils/libhack/Makefile.inc		1.10
	sys/arch/sparc/conf/INSTALL			1.17
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.5 2000/08/22 14:11:07 abs Exp $
a5 2
KERN=		${KERNOBJDIR}/INSTALL/netbsd

d7 1
d9 1
a9 2
.include <bsd.own.mk>   # So we use /etc/mk.conf.
.include <bsd.kernobj.mk>
d38 1
a38 1
${IMAGE}:	netbsd.ram.gz
d53 1
a53 1
	/usr/mdec/binstall -b boot.400000 -v ffs ${MOUNT_POINT}
@


1.4.4.2
log
@Commit by patch [pk]:
- boot floppy image out of space: use a two disk system
- update INSTALL kernel
- updates/fixes to miniroot image
- support for building CD image
- update installation doc
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.4.4.1 2000/08/22 16:06:31 abs Exp $
@


1.3
log
@use KERNOBJDIR from bsd.kernobj.mk
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.2 2000/01/10 15:17:32 pk Exp $
d7 1
a8 1
.include <bsd.kernobj.mk>
d46 1
@


1.2
log
@Remove version number from boot image files.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1 1999/04/30 05:11:46 abs Exp $
d8 2
a9 1
KERN=		${TOP}/../../sys/arch/${MACHINE}/compile/INSTALL/netbsd
@


1.1
log
@Add sysinst setup for sparc, does not affect existing script based install.
ramdisk.sysinst should work unchanged for i386 also. Would be good to merge
after 1.4.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.10.2.1 1999/04/08 21:18:03 pk Exp $
d18 1
a18 1
IMAGE?=		syboot-${REV}.fs
d23 1
a23 1
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/syramdisk-${REV}.fs\n" |\
@


1.1.2.1
log
@file Makefile was added on branch netbsd-1-4 on 2000-03-01 00:22:41 +0000
@
text
@d1 73
@


1.1.2.2
log
@Apply patch (requested by toddpw):
  Fix build errors in distrib/sparc, support ``release'' target,
  increase size of ramdisk while removing dependency on /etc/disktab,
  and notifying kernel.
@
text
@a0 84
#	$NetBSD: Makefile,v 1.1.2.1 2000/03/01 00:22:41 he Exp $

TOP=		${.CURDIR}/..
MINIROOT=	${.CURDIR}/../../miniroot

.include "${TOP}/Makefile.inc"

KERN=		${TOP}/../../sys/arch/${MACHINE}/compile/INSTALL/netbsd

MOUNT_POINT?=	/mnt
VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
VND_CDEV=	/dev/${VND}${RAW_PART}
VND_CRDEV=	/dev/r${VND}${RAW_PART}
FD?=		fd0
FD_RDEV=	/dev/r${FD}a
IMAGE?=		syboot-${REV}.fs
MDEC=		${DESTDIR}/usr/mdec

LISTS=		${.CURDIR}/list
RAMDISK!=	cd ${TOP}/ramdisk.sysinst/; \
		printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/syramdisk-${REV}.fs\n" |\
		${MAKE} -s -f-

DISKTYPE=	floppy

# Some reasonable values for the -i parameter to newfs are:
#
#   6144	1147k, 189 inodes free
#  16384	1159k,  93 inodes free
# 204800	1167k,  29 inodes free
INO_BYTES=	204800

CLEANFILES+=	netbsd.ram.gz netbsd.tmp

all:	netbsd.ram.gz
	dd if=/dev/zero of=${IMAGE} bs=1440k count=1
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}
	disklabel -rw ${VND_CDEV} ${DISKTYPE}
	disklabel -W ${VND_CDEV}
	newfs -B be -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV}
	mount ${VND_DEV} ${MOUNT_POINT}
	TOPDIR=${TOP} CURDIR=${MINIROOT} OBJDIR=${.OBJDIR} \
	    TARGDIR=${MOUNT_POINT} sh ${MINIROOT}/runlist.sh ${LISTS}
	@@echo ""
	@@df -i ${MOUNT_POINT}
	@@echo ""
	@@echo "installing new bootblocks"
	-rm -f ${MOUNT_POINT}/boot
	/usr/mdec/binstall -v ffs ${MOUNT_POINT}
	umount ${MOUNT_POINT}
	vnconfig -u ${VND_CDEV}

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

netbsd.ram.gz: ${KERN} ${RAMDISK}
	cp ${KERN} netbsd.tmp
	mdsetimage -v netbsd.tmp ${RAMDISK}
	strip netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

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

depend install:

real-floppy:
	dd if=${IMAGE} of=${FD_RDEV} bs=32k

.ifndef RELEASEDIR
release:
	@@echo setenv RELEASEDIR first
	@@false
.else
release: $(IMAGE)
	gzip -c -9 < $(.OBJDIR)/${IMAGE} \
		> $(RELEASEDIR)/installation/bootfs/${IMAGE}.gz
.endif	# RELEASEDIR check

.include <bsd.obj.mk>
@


1.1.2.3
log
@Apply patch (requested by he):
  Don't strip kernel, use boot.700000, copy sysinst INSTALL
  kernel to kernel directory under ``make release''.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile,v 1.1.2.2 2000/06/03 15:19:52 he Exp $
d51 1
a51 1
	/usr/mdec/binstall -v -b boot.700000 ffs ${MOUNT_POINT}
d62 1
a62 1
#	strip netbsd.tmp
@
