head	1.30;
access;
symbols
	perseant-exfatfs-base-20250801:1.30
	perseant-exfatfs-base-20240630:1.30
	perseant-exfatfs:1.30.0.48
	perseant-exfatfs-base:1.30
	cjep_sun2x:1.30.0.46
	cjep_sun2x-base:1.30
	cjep_staticlib_x-base1:1.30
	cjep_staticlib_x:1.30.0.44
	cjep_staticlib_x-base:1.30
	phil-wifi-20200421:1.30
	phil-wifi-20200411:1.30
	phil-wifi-20200406:1.30
	pgoyette-compat-merge-20190127:1.30
	pgoyette-compat-20190127:1.30
	pgoyette-compat-20190118:1.30
	pgoyette-compat-1226:1.30
	pgoyette-compat-1126:1.30
	pgoyette-compat-1020:1.30
	pgoyette-compat-0930:1.30
	pgoyette-compat-0906:1.30
	pgoyette-compat-0728:1.30
	pgoyette-compat-0625:1.30
	pgoyette-compat-0521:1.30
	pgoyette-compat-0502:1.30
	pgoyette-compat-0422:1.30
	pgoyette-compat-0415:1.30
	pgoyette-compat-0407:1.30
	pgoyette-compat-0330:1.30
	pgoyette-compat-0322:1.30
	pgoyette-compat-0315:1.30
	pgoyette-compat:1.30.0.42
	pgoyette-compat-base:1.30
	perseant-stdc-iso10646:1.30.0.40
	perseant-stdc-iso10646-base:1.30
	prg-localcount2-base3:1.30
	prg-localcount2-base2:1.30
	prg-localcount2-base1:1.30
	prg-localcount2:1.30.0.38
	prg-localcount2-base:1.30
	pgoyette-localcount-20170426:1.30
	bouyer-socketcan-base1:1.30
	pgoyette-localcount-20170320:1.30
	bouyer-socketcan:1.30.0.36
	bouyer-socketcan-base:1.30
	pgoyette-localcount-20170107:1.30
	pgoyette-localcount-20161104:1.30
	localcount-20160914:1.30
	pgoyette-localcount-20160806:1.30
	pgoyette-localcount-20160726:1.30
	pgoyette-localcount:1.30.0.34
	pgoyette-localcount-base:1.30
	netbsd-5-2-3-RELEASE:1.30
	netbsd-5-1-5-RELEASE:1.30
	yamt-pagecache-base9:1.30
	yamt-pagecache-tag8:1.30
	tls-earlyentropy:1.30.0.30
	tls-earlyentropy-base:1.30
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.30
	riastradh-drm2-base3:1.30
	netbsd-5-2-2-RELEASE:1.30
	netbsd-5-1-4-RELEASE:1.30
	netbsd-5-2-1-RELEASE:1.30
	netbsd-5-1-3-RELEASE:1.30
	agc-symver:1.30.0.32
	agc-symver-base:1.30
	tls-maxphys-base:1.30
	yamt-pagecache-base8:1.30
	netbsd-5-2:1.30.0.28
	yamt-pagecache-base7:1.30
	netbsd-5-2-RELEASE:1.30
	netbsd-5-2-RC1:1.30
	yamt-pagecache-base6:1.30
	yamt-pagecache-base5:1.30
	yamt-pagecache-base4:1.30
	netbsd-5-1-2-RELEASE:1.30
	netbsd-5-1-1-RELEASE:1.30
	yamt-pagecache-base3:1.30
	yamt-pagecache-base2:1.30
	yamt-pagecache:1.30.0.26
	yamt-pagecache-base:1.30
	bouyer-quota2-nbase:1.30
	bouyer-quota2:1.30.0.24
	bouyer-quota2-base:1.30
	matt-nb5-pq3:1.30.0.22
	matt-nb5-pq3-base:1.30
	netbsd-5-1:1.30.0.20
	netbsd-5-1-RELEASE:1.30
	netbsd-5-1-RC4:1.30
	netbsd-5-1-RC3:1.30
	netbsd-5-1-RC2:1.30
	netbsd-5-1-RC1:1.30
	netbsd-5-0-2-RELEASE:1.30
	netbsd-5-0-1-RELEASE:1.30
	jym-xensuspend-nbase:1.30
	netbsd-5-0:1.30.0.18
	netbsd-5-0-RELEASE:1.30
	netbsd-5-0-RC4:1.30
	netbsd-5-0-RC3:1.30
	netbsd-5-0-RC2:1.30
	jym-xensuspend:1.30.0.16
	jym-xensuspend-base:1.30
	netbsd-5-0-RC1:1.30
	netbsd-5:1.30.0.14
	netbsd-5-base:1.30
	yamt-pf42-base4:1.30
	yamt-pf42-base3:1.30
	hpcarm-cleanup-nbase:1.30
	yamt-pf42-base2:1.30
	yamt-pf42:1.30.0.12
	yamt-pf42-base:1.30
	mjf-devfs2:1.30.0.10
	mjf-devfs2-base:1.30
	keiichi-mipv6:1.30.0.8
	keiichi-mipv6-base:1.30
	mjf-devfs:1.30.0.6
	mjf-devfs-base:1.30
	cube-autoconf:1.30.0.4
	cube-autoconf-base:1.30
	hpcarm-cleanup:1.30.0.2
	hpcarm-cleanup-base:1.30
	netbsd-1-5-PATCH003:1.16.4.4
	netbsd-1-5-PATCH002:1.16.4.4
	netbsd-1-5-PATCH001:1.16.4.4
	netbsd-1-5-RELEASE:1.16.4.4
	netbsd-1-5-BETA2:1.16.4.4
	netbsd-1-5-BETA:1.16.4.4
	netbsd-1-4-PATCH003:1.5.2.2
	netbsd-1-5-ALPHA2:1.16.4.3
	netbsd-1-5:1.16.0.4
	netbsd-1-5-base:1.16
	minoura-xpg4dl:1.16.0.2
	minoura-xpg4dl-base:1.16
	netbsd-1-4-PATCH002:1.5.2.1
	wrstuden-devbsize-19991221:1.7
	wrstuden-devbsize:1.6.0.4
	wrstuden-devbsize-base:1.7
	comdex-fall-1999:1.6.0.2
	comdex-fall-1999-base:1.6
	netbsd-1-4-PATCH001:1.5
	netbsd-1-4-RELEASE:1.5
	netbsd-1-4:1.5.0.2
	netbsd-1-4-base:1.5;
locks; strict;
comment	@# @;


1.30
date	2002.02.03.16.22.23;	author lukem;	state dead;
branches;
next	1.29;

1.29
date	2002.01.08.04.00.01;	author tv;	state Exp;
branches;
next	1.28;

1.28
date	2001.11.08.02.10.27;	author christos;	state Exp;
branches;
next	1.27;

1.27
date	2001.11.07.03.54.13;	author christos;	state Exp;
branches;
next	1.26;

1.26
date	2001.10.04.04.11.26;	author jmc;	state Exp;
branches;
next	1.25;

1.25
date	2000.10.09.12.36.26;	author fvdl;	state Exp;
branches;
next	1.24;

1.24
date	2000.09.27.22.03.44;	author fvdl;	state Exp;
branches;
next	1.23;

1.23
date	2000.09.27.16.04.14;	author fvdl;	state Exp;
branches;
next	1.22;

1.22
date	2000.08.11.09.20.40;	author toddpw;	state Exp;
branches;
next	1.21;

1.21
date	2000.07.23.05.54.59;	author mycroft;	state Exp;
branches;
next	1.20;

1.20
date	2000.07.10.09.50.48;	author joda;	state Exp;
branches;
next	1.19;

1.19
date	2000.07.06.18.16.35;	author jhawk;	state Exp;
branches;
next	1.18;

1.18
date	2000.07.06.17.17.54;	author thorpej;	state Exp;
branches;
next	1.17;

1.17
date	2000.07.06.17.17.15;	author thorpej;	state Exp;
branches;
next	1.16;

1.16
date	2000.05.05.21.25.58;	author mycroft;	state Exp;
branches
	1.16.4.1;
next	1.15;

1.15
date	2000.05.05.21.08.01;	author mycroft;	state Exp;
branches;
next	1.14;

1.14
date	2000.05.05.21.01.35;	author mycroft;	state Exp;
branches;
next	1.13;

1.13
date	2000.05.05.20.13.32;	author mycroft;	state Exp;
branches;
next	1.12;

1.12
date	2000.05.04.14.12.13;	author hubertf;	state Exp;
branches;
next	1.11;

1.11
date	2000.05.02.16.06.49;	author sjg;	state Exp;
branches;
next	1.10;

1.10
date	2000.02.01.05.02.33;	author tsutsui;	state Exp;
branches;
next	1.9;

1.9
date	2000.01.24.17.52.26;	author mycroft;	state Exp;
branches;
next	1.8;

1.8
date	2000.01.19.16.40.12;	author tsutsui;	state Exp;
branches;
next	1.7;

1.7
date	99.11.09.00.22.40;	author he;	state Exp;
branches;
next	1.6;

1.6
date	99.07.02.22.00.17;	author fvdl;	state Exp;
branches
	1.6.4.1;
next	1.5;

1.5
date	99.03.23.18.05.45;	author drochner;	state Exp;
branches
	1.5.2.1;
next	1.4;

1.4
date	99.03.13.20.44.16;	author sommerfe;	state Exp;
branches;
next	1.3;

1.3
date	99.02.01.15.13.01;	author he;	state Exp;
branches;
next	1.2;

1.2
date	99.02.01.14.25.09;	author he;	state Exp;
branches;
next	1.1;

1.1
date	98.12.19.19.51.24;	author he;	state Exp;
branches;
next	;

1.16.4.1
date	2000.07.19.17.25.42;	author thorpej;	state Exp;
branches;
next	1.16.4.2;

1.16.4.2
date	2000.07.19.17.27.41;	author thorpej;	state Exp;
branches;
next	1.16.4.3;

1.16.4.3
date	2000.08.11.09.56.54;	author toddpw;	state Exp;
branches;
next	1.16.4.4;

1.16.4.4
date	2000.10.09.13.43.29;	author fvdl;	state Exp;
branches;
next	;

1.6.4.1
date	99.12.27.18.28.21;	author wrstuden;	state Exp;
branches;
next	;

1.5.2.1
date	99.11.11.21.06.32;	author he;	state Exp;
branches;
next	1.5.2.2;

1.5.2.2
date	2000.06.03.14.59.53;	author he;	state Exp;
branches;
next	;


desc
@@


1.30
log
@Major overhaul, to enable unprivileged (cross) building, removing the
requirement to build as root on a system with vnconfig.


Use ${KERNSRCDIR} and ${_SRC_TOP_} where appropriate

Remove now-obsolete:
	list2sh.awk runlist.sh bootfloppy-common/list

Bootfloppy-*/Makefile: don't need to set DISKTYPE or BLOCK8K any more

Rename  bootfloppy-common/Makefile.inc  to  common/Makefile.bootfloppy
and	fdset-common/Makefile.inc       to  common/Makefile.fdset
This uses makefs instead of vnconfig and disklabel, thus removing the
need for root privileges to build these floppies..

Add common/Makefile.ramdisk, to simplify ramdisk-*/Makefile.
Uses shared ${_SRC_TOP_}/distrib/common/Makefile.crunch and
${_SRC_TOP_}/distrib/common/Makefile.image to even further simply things.

Migrate ramdisk-*/dot.profile to a shared common/dot.profile, which
detects whether it's an install or rescue profile based on the existance
of /sysinst.  Remove /dev generation code as init(8) now does that for us.

Migrate common parts of */list to a shared common/list.ramdisk.
Convert ramdisk-*/list to new format used by distrib/common/parselist.awk
Don't bother running pwd_mkdb now that libhack's getpwent parses
/etc/master.passwd instead of /etc/passwd.

Migrate ramdisk-*/mtree.conf to a shared common/mtree.conf, which is now a
new full-path-style specfile.

Remove ramdisk-*/ramdiskbin.conf as it's now automatically generated
from ramdisk-*/list by parselist.awk.

Migrate ramdisk-*/termcap.mini to a shared common/termcap.mini.

Remove unused ramdisk-{small,tiny}/disktab.preinstall.

Use .for loops in kernel-*/Makefile to simply defining mostly-duplicated
targets.

ramdisk-*/Makefile: convert to using common/Makefile.ramdisk

Remove unused ramdisk-*/dot.hdprofile.
@
text
@#	$NetBSD: Makefile.inc,v 1.29 2002/01/08 04:00:01 tv Exp $

# TOP is assumed to be defined by Makefile including this one.

VND?=		vnd0
VND_DEV=	/dev/${VND}a
VND_RDEV=	/dev/r${VND}a
BASENAME?=	boot
IMAGE1?=	${BASENAME}1.fs
FSTMP=		ustar.tmp
MDEC=		${DESTDIR}/usr/mdec
BOOTCODE?=	${MDEC}/biosboot.sym
#BOOTCODE=	${MDEC}/biosboot_com0.sym	# Serial output
STRIP?=		strip
MOUNT_POINT?=	/mnt

DISKTYPE?=	floppy3
DISKSIZE?=	2880
BLOCK8K?=	179

CLEANFILES+=	netbsd boot ustar.tmp

realall:	unconfig netbsd boot
	tar cvf ${FSTMP} boot netbsd
	@@echo
	@@echo Making disk number one
	-mv -f ${IMAGE1} ${IMAGE1}.tmp
	dd if=/dev/zero of=${IMAGE1}.tmp count=${DISKSIZE}
	vnconfig -t ${DISKTYPE} -v -c ${VND} ${IMAGE1}.tmp
	disklabel -rw ${VND} ${DISKTYPE}
	dd bs=8k seek=1 count=${BLOCK8K} if=${FSTMP} of=${VND_RDEV}
	@@echo "installing new bootblocks"
	${MDEC}/installboot -b 17 -v -f ${BOOTCODE} ${VND_RDEV}
	vnconfig -u ${VND}
	@@ls -l ${FSTMP} | (read mode links uid gid size junk; \
		dksize=$$((${DISKSIZE} * 512 - 8 * 1024)); \
		disks=$$(($$size / $$dksize + 1)); \
		if test $$size -gt $$dksize; then \
			d=2; \
			while test $$d -le $$disks; do \
				echo; \
				echo Making disk number $$d.; \
				IMAGE=${BASENAME}$${d}.fs; \
				echo USTARFS $$d > $${IMAGE}; \
				skip=$$((($$d - 1) * ${BLOCK8K})); \
				if test $$d -eq $$disks; then \
					dd bs=8k seek=1 skip=$${skip} \
						conv=sync \
						if=${FSTMP} of=$${IMAGE}; \
				else \
					dd bs=8k seek=1 skip=$${skip} \
						conv=sync count=${BLOCK8K} \
						if=${FSTMP} of=$${IMAGE}; \
				fi; \
				d=$$(($$d + 1)); \
			done; \
		else \
			dd seek=$$(($${size} / 512 + 15)) count=1 \
				if=/dev/zero of=${IMAGE1}; \
		fi; \
		echo; \
                bytes=$$(($$dksize * $$disks - $$size));    \
                echo "There are $$bytes ($$(($$bytes / 1024))K) bytes free\
                        on disk $$disks."; \
	)
	mv -f ${IMAGE1}.tmp ${IMAGE1}

# Let the kernel on the diskette be called "netbsd" although
# it is compressed.  This is because the boot code will search
# for "netbsd" first, and calling it "netbsd" instead of "netbsd.gz" 
# we avoid scanning all the diskettes before reading the file.

netbsd: ${KERN}
	rm -f netbsd
	cp ${KERN} netbsd

# This is "cheating", just so that we have the available
# space at the start of the tar file.  Installboot will overwrite
# the start of the bootcode with the tail end of the "real", aligned 
# second-stage boot loader when it is run (which is quite a bit shorter
# than the entire ${BOOTCODE} file, even when symbols are removed.
# (the first 15*512 bytes are put into the first 8K filesystem block,
# around the disklabel)

boot: ${BOOTCODE}
	rm -f boot
	cp ${BOOTCODE} boot
	strip boot

release:
	-mkdir -p ${RELEASEDIR}/installation/floppy
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppy
	
unconfig:
	-umount -f ${MOUNT_POINT}
	-vnconfig -u ${VND}

clean cleandir distclean:
	/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs ${IMAGE1}.tmp

.include <bsd.own.mk>
.include <bsd.obj.mk>
.include <bsd.subdir.mk>

@


1.29
log
@Don't gzip these .fs's either; only boot-big.fs gets gzipped in the end.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.28 2001/11/08 02:10:27 christos Exp $
@


1.28
log
@1. delete all instances of /dev/{r,}vnd0d. Use vnconfig vnd0 and disklabel
   vnd0 and let opendisk(3) DTRT.
2. resize some of the images since we've gotten an average of 5K more
   with the new toolchain.
3. comment out the rescue disks, since they don't fit anymore.

Now the whole directory compiles and works with the in-tree toolchain,
but does not work still with USETOOLS.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.27 2001/11/07 03:54:13 christos Exp $
a92 3
	for f in ${RELEASEDIR}/installation/floppy/${BASENAME}?.fs; do \
		gzip <$$f >$$f.gz; \
	done
@


1.27
log
@Use the raw device for vnconfig.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.26 2001/10/04 04:11:26 jmc Exp $
a7 2
VND_CDEV=	/dev/${VND}d
VND_CRDEV=	/dev/r${VND}d
d29 3
a31 3
	vnconfig -t ${DISKTYPE} -v -c ${VND_CRDEV} ${IMAGE1}.tmp
	dd bs=8k seek=1 count=${BLOCK8K} if=${FSTMP} of=${VND_CDEV}
	disklabel -rw ${VND_CRDEV} ${DISKTYPE}
d34 1
a34 1
	vnconfig -u ${VND_CRDEV}
d99 1
a99 1
	-vnconfig -u ${VND_CRDEV}
@


1.26
log
@Add an unconfig target for the fdset's
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25 2000/10/09 12:36:26 fvdl Exp $
d31 1
a31 1
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}.tmp
d33 1
a33 1
	disklabel -rw ${VND_CDEV} ${DISKTYPE}
d36 1
a36 1
	vnconfig -u ${VND_CDEV}
d101 1
a101 1
	-vnconfig -u ${VND_DEV}
@


1.25
log
@Change to make sure that no bogusly made targets are left after
interrupt or failure was lost in when rearranging. Bring it back.
(pointed out by jhawk).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.24 2000/09/27 22:03:44 fvdl Exp $
d17 1
d25 1
a25 1
realall:	netbsd boot
d99 4
d109 1
@


1.24
log
@Allow BOOTCODE override (another overhaul victim).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.23 2000/09/27 16:04:14 fvdl Exp $
d28 3
a30 2
	dd if=/dev/zero of=${IMAGE1} count=${DISKSIZE}
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}
d67 1
d99 1
a99 1
	/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs
@


1.23
log
@Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2000/05/05 21:25:58 mycroft Exp $
d14 1
a14 1
BOOTCODE=	${MDEC}/biosboot.sym
@


1.22
log
@Have port-i386 use installation/floppy, for conformance with release(7).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.21 2000/07/23 05:54:59 mycroft Exp $
d14 1
a14 1
BOOTCODE?=	${MDEC}/biosboot.sym
d28 2
a29 3
	-mv -f ${IMAGE1} ${IMAGE1}.tmp
	dd if=/dev/zero of=${IMAGE1}.tmp count=${DISKSIZE}
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}.tmp
a65 1
	mv -f ${IMAGE1}.tmp ${IMAGE1}
d97 1
a97 1
	/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs ${IMAGE1}.tmp
@


1.21
log
@Revert revision 1.17.  This was not a bug, and should certainly not have been
changed in a vacuum.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.20 2000/07/10 09:50:48 joda Exp $
d92 3
a94 3
	-mkdir -p ${RELEASEDIR}/installation/floppies
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppies
	for f in ${RELEASEDIR}/installation/floppies/${BASENAME}?.fs; do \
@


1.20
log
@don't cause failures in mv -f to abort build
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.19 2000/07/06 18:16:35 jhawk Exp $
d58 3
@


1.19
log
@For all filesytem image building targets, build ${IMAGE}.tmp and
move it to ${IMAGE} when done, to ensure that an interrupted
build does not leave a broken non-functional target. (This can occur,
for instance, if one types 'make' as a non-root user and the vnconfig
fails, and then a subsequent 'make' will not rebuild the filesystem
image, using the all-zeroes image created by dd.)
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.18 2000/07/06 17:17:54 thorpej Exp $
d28 1
a28 1
	mv -f ${IMAGE1} ${IMAGE1}.tmp
@


1.18
log
@Allow BOOTCODE to be set by the file which includes this one.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2000/07/06 17:17:15 thorpej Exp $
d28 3
a30 2
	dd if=/dev/zero of=${IMAGE1} count=${DISKSIZE}
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}
d64 1
d96 1
a96 1
	/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs
@


1.17
log
@Don't truncate the image if it fits on a single floppy.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16 2000/05/05 21:25:58 mycroft Exp $
d14 1
a14 1
BOOTCODE=	${MDEC}/biosboot.sym
@


1.16
log
@GC some unused stuff.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.15 2000/05/05 21:08:01 mycroft Exp $
a56 3
		else \
			dd seek=$$(($${size} / 512 + 15)) count=1 \
				if=/dev/zero of=${IMAGE1}; \
@


1.16.4.1
log
@Pull up rev. 1.17:
Don't truncate the image if it fits on a single floppy.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.17 2000/07/06 17:17:15 thorpej Exp $
d57 3
@


1.16.4.2
log
@Pull up rev. 1.18:
Allow BOOTCODE to be set by the file which includes this one.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.16.4.1 2000/07/19 17:25:42 thorpej Exp $
d14 1
a14 1
BOOTCODE?=	${MDEC}/biosboot.sym
@


1.16.4.3
log
@Pull up Makefile.inc (etc.i386 1.22, bootfloppy-common 1.29, fdset-common 1.22)
  1.22 etc/etc.i386/Makefile.inc
  1.29 distrib/i386/floppies/bootfloppy-common/Makefile.inc
  1.22 distrib/i386/floppies/fdset-common/Makefile.inc
Change $RELEASEDIR/installation/floppies to $RELEASEDIR/installation/floppy,
in accordance with release(7). This is actually a stray diff from the 1.4.2
release cycle which is only now being carried forward. (cough cough)
@
text
@d1 1
a1 1
#	$NetBSD$
d87 3
a89 3
	-mkdir -p ${RELEASEDIR}/installation/floppy
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppy
	for f in ${RELEASEDIR}/installation/floppy/${BASENAME}?.fs; do \
@


1.16.4.4
log
@Sync with -current. Approved by jhawk. Original commit message:

Rearrange bootfloppies. The idea is that "rescue" tools go on the
floppies as long as they fit, but they are the first to be sacrificed
if space is short, and get moved to a seperate rescue floppy.

This means that the default fdset and the 2.88M image have them,
but others (the "small" and "tiny" floppies) do not.

Sysinst is also back on the "tiny" image, and tested to be working
within 4M.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.25 2000/10/09 12:36:26 fvdl Exp $
d28 2
a29 3
	-mv -f ${IMAGE1} ${IMAGE1}.tmp
	dd if=/dev/zero of=${IMAGE1}.tmp count=${DISKSIZE}
	vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE1}.tmp
a56 3
		else \
			dd seek=$$(($${size} / 512 + 15)) count=1 \
				if=/dev/zero of=${IMAGE1}; \
a62 1
	mv -f ${IMAGE1}.tmp ${IMAGE1}
d94 1
a94 1
	/bin/rm -f *.core ${CLEANFILES} ${BASENAME}?.fs ${IMAGE1}.tmp
@


1.15
log
@Minor cleanup in previous.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.14 2000/05/05 21:01:35 mycroft Exp $
a4 4
COMMONDIR=	${TOP}/fdset-common

.include <bsd.kernobj.mk>

d10 2
a11 2
BASENAME=	boot
IMAGE1=		${BASENAME}1.fs
a43 1
				PIMAGE=${BASENAME}$$(($$d - 1)).fs; \
a44 6
				(echo 'Prototype image created on: ';   \
					echo -n '     '; date;          \
					echo -n '     '; date -u)	\
					>> $${IMAGE}; \
				(echo Hash value of corresponding volume:; \
					md5 $${PIMAGE}) >> $${IMAGE}; \
@


1.14
log
@Make this capable of generating a single-floppy image.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.13 2000/05/05 20:13:32 mycroft Exp $
d41 1
a41 1
		disks=$$((($$size / (${DISKSIZE} * 512 - 8 * 1024)) + 1)); \
@


1.13
log
@Merge latest build system changes, and use the kernels built in ramdisk-kernel.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.12 2000/05/04 14:12:13 hubertf Exp $
d29 2
a31 8
	tar cvf ${FSTMP} boot netbsd
	@@ echo ''
	@@ls -l ${FSTMP} | (read mode links uid gid size junk;   \
		disks=$$((($$size / (${DISKSIZE} * 512 - 8 * 1024)) + 1)); \
                bytes=$$((${DISKSIZE} * 512 * $$disks - $$size));    \
                echo There are $$bytes \($$(($$bytes / 1024))K\) bytes free\
                        on disk $$disks.)
	@@ echo ''
a38 1
	:
d41 1
a42 2
			disks=$$((($$size / (${DISKSIZE} * 512 - 8 * 1024)) \
				+ 1)); \
d45 1
d68 9
a76 1
		fi; )
@


1.12
log
@Add commented-out BOOTCODE setting for bootfloppies with output to
serial console.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.11 2000/05/02 16:06:49 sjg Exp $
a16 1
KERN?=		netbsd-xxx
a21 4
RAMDISK	!=cd $(.CURDIR)/../ramdisk/; \
        printf "xxx: .MAKE\n\t@@echo \$${.OBJDIR}/ramdisk.fs\n" | \
	${MAKE} -s -f-

d26 1
a26 1
CLEANFILES+=	netbsd.ram.gz netbsd boot ustar.tmp
d43 1
a43 1
	${MDEC}/installboot -b 17 -v ${BOOTCODE} ${VND_RDEV}
a76 7
netbsd.ram.gz: ${KERN} ${RAMDISK}
	cp ${KERN} netbsd.tmp
	${DESTDIR}/usr/sbin/mdsetimage -v netbsd.tmp ${RAMDISK}
	${STRIP} netbsd.tmp
	gzip -9 netbsd.tmp
	mv netbsd.tmp.gz ${.TARGET}

d82 1
a82 1
netbsd: netbsd.ram.gz
d84 1
a84 1
	ln netbsd.ram.gz netbsd
@


1.11
log
@use bsd.kernobj.mk to tell us KERNOBJDIR for compiled kernels.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.10 2000/02/01 05:02:33 tsutsui Exp $
d20 1
@


1.10
log
@Revert STRIPPROG -> STRIP
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.9 2000/01/24 17:52:26 mycroft Exp $
d6 2
@


1.9
log
@Make these work again.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.8 2000/01/19 16:40:12 tsutsui Exp $
d18 1
a18 1
STRIPPROG?=	strip
d82 1
a82 1
	${STRIPPROG} netbsd.tmp
@


1.8
log
@STRIP -> STRIPPROG
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1999/11/09 00:22:40 he Exp $
d30 1
a30 1
all:	netbsd boot
@


1.7
log
@Provide some more automation in the "make release" process.  Also build
and install:
 o INSTALL and INSTALL_TINY kernels (for boot floppy images)
 o GENERIC_TINY kernel
 o Boot floppy images
Ideas borrowed from etc/etc.sun3/ setup.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.6 1999/07/02 22:00:17 fvdl Exp $
d18 1
a18 1
STRIP?=		strip
d82 1
a82 1
	${STRIP} netbsd.tmp
@


1.6
log
@Strip the kernel. Nothing on the bootfloppy uses them (except DDB, but
that's rare), and currently it's likely that you need to seek back
in the bootprocess to get the symbols, confusing ustarfs.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1999/03/23 18:05:45 drochner Exp $
d108 7
@


1.6.4.1
log
@Pull up to last week's -current.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.7 1999/11/09 00:22:40 he Exp $
a107 7
release:
	-mkdir -p ${RELEASEDIR}/installation/floppies
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppies
	for f in ${RELEASEDIR}/installation/floppies/${BASENAME}?.fs; do \
		gzip <$$f >$$f.gz; \
	done
	
@


1.5
log
@find "mdsetimage" in ${DESTDIR}
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.4 1999/03/13 20:44:16 sommerfe Exp $
d82 1
a82 1
	: ${STRIP} netbsd.tmp
@


1.5.2.1
log
@Pull up revision 1.7 (requested by he):
  Improve automation for "make release", so that boot images are
  automatically built and installed in RELEASEDIR.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5 1999/03/23 18:05:45 drochner Exp $
a107 7
release:
	-mkdir -p ${RELEASEDIR}/installation/floppies
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppies
	for f in ${RELEASEDIR}/installation/floppies/${BASENAME}?.fs; do \
		gzip <$$f >$$f.gz; \
	done
	
@


1.5.2.2
log
@Apply patch (requested by he):
  ``Make release'' goes to installation/floppy; use gzip -9.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.5.2.1 1999/11/11 21:06:32 he Exp $
d109 3
a111 3
	-mkdir -p ${RELEASEDIR}/installation/floppy
	cp -p ${BASENAME}?.fs ${RELEASEDIR}/installation/floppy
	for f in ${RELEASEDIR}/installation/floppy/${BASENAME}?.fs; do \
@


1.4
log
@Don't over-reserve space in the tarball for the bootfile; strip the bootblocks
(just being used as a "spacer" in the tarball).
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.3 1999/02/01 15:13:01 he Exp $
d81 1
a81 1
	mdsetimage -v netbsd.tmp ${RAMDISK}
@


1.3
log
@Fix clean target too.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.2 1999/02/01 14:25:09 he Exp $
d97 5
a101 3
# the start of the bootcode with the "real", aligned second-stage
# boot loader when it is run (which is quite a bit shorter than the
# entire ${BOOTCODE} file.
d106 1
@


1.2
log
@Rename boot disk set name from 'disk' to 'boot'.
@
text
@d1 1
a1 1
#	$NetBSD: Makefile.inc,v 1.1 1998/12/19 19:51:24 he Exp $
d106 1
a106 1
	/bin/rm -f *.core ${CLEANFILES} disk?.fs
@


1.1
log
@Makefile setup to construct multi-floppy boot using ustarfs.
@
text
@d1 1
a1 1
#	$NetBSD$
d12 2
a13 1
IMAGE1=		disk1.fs
d56 2
a57 2
				IMAGE=disk$${d}.fs; \
				PIMAGE=disk$$(($$d - 1)).fs; \
@

