Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-5]: src/distrib/i386/floppies/bootfloppy-big Pullup 1.10 [fvdl]:
details: https://anonhg.NetBSD.org/src/rev/fb91a52f3494
branches: netbsd-1-5
changeset: 489889:fb91a52f3494
user: tv <tv%NetBSD.org@localhost>
date: Wed Oct 18 03:34:43 2000 +0000
description:
Pullup 1.10 [fvdl]:
Switch this one back to FFS, at least until ustarfs is fixed. ustarfs seems
to fail for 2.88 images at certain image sizes.
diffstat:
distrib/i386/floppies/bootfloppy-big/Makefile | 64 ++++++++++++++++++++++++++-
1 files changed, 62 insertions(+), 2 deletions(-)
diffs (80 lines):
diff -r 77bf9e92463a -r fb91a52f3494 distrib/i386/floppies/bootfloppy-big/Makefile
--- a/distrib/i386/floppies/bootfloppy-big/Makefile Wed Oct 18 03:31:05 2000 +0000
+++ b/distrib/i386/floppies/bootfloppy-big/Makefile Wed Oct 18 03:34:43 2000 +0000
@@ -1,9 +1,10 @@
-# $NetBSD: Makefile,v 1.7.4.2 2000/10/09 13:43:28 fvdl Exp $
+# $NetBSD: Makefile,v 1.7.4.3 2000/10/18 03:34:43 tv Exp $
TOP= ${.CURDIR}/..
.include "${TOP}/Makefile.inc"
+COMMONDIR= ${TOP}/bootfloppy-common
IMAGE= boot-big.fs
KERN!= cd $(.CURDIR)/../kernel-ramdisk/; \
printf "xxx: .MAKE\n\t@echo \$${.OBJDIR}/netbsd.INSTALL.gz\n" | \
@@ -29,4 +30,63 @@
BLOCK8K= 359
PAD=yes
-.include "${TOP}/bootfloppy-common/Makefile.inc"
+MOUNT_POINT?= /mnt
+VND?= vnd0
+VND_DEV= /dev/${VND}a
+VND_RDEV= /dev/r${VND}a
+VND_CDEV= /dev/${VND}d
+VND_CRDEV= /dev/r${VND}d
+MDEC= ${DESTDIR}/usr/mdec
+BOOTCODE= ${MDEC}/biosboot.sym
+STRIP?= strip
+
+LISTS?= ${COMMONDIR}/list
+
+# Some reasonable values for the -i parameter to newfs are:
+#
+# 6144 1147k, 189 inodes free
+# 16384 1159k, 93 inodes free
+# on 1.44M:
+# 204800 1407k, 27 inodes free
+# (with a 4k blocksize, one cannot get fewer than ~32 inodes allocated)
+
+INO_BYTES?= 204800
+
+CLEANFILES+= netbsd
+
+realall: netbsd
+ -rm -f ${IMAGE}.tmp
+ dd if=/dev/zero of=${IMAGE}.tmp count=${DISKSIZE}
+ vnconfig -t ${DISKTYPE} -v -c ${VND_CDEV} ${IMAGE}.tmp
+ disklabel -rw ${VND_CDEV} ${DISKTYPE}
+ newfs -B le -m 0 -o space -i ${INO_BYTES} -c 80 ${VND_RDEV} ${DISKTYPE}
+ ${MDEC}/installboot -v -f ${BOOTCODE} ${VND_RDEV}
+ mount ${VND_DEV} ${MOUNT_POINT}
+ TOPDIR=${TOP} CURDIR=${.CURDIR} OBJDIR=${.OBJDIR} \
+ TARGDIR=${MOUNT_POINT} sh ${TOP}/runlist.sh ${LISTS}
+ @echo ""
+ @df -i ${MOUNT_POINT}
+ umount ${MOUNT_POINT}
+ vnconfig -u ${VND_CDEV}
+ mv -f ${IMAGE}.tmp ${IMAGE}
+
+unconfig:
+ -umount -f ${MOUNT_POINT}
+ -vnconfig -u ${VND_DEV}
+ -/bin/rm -f ${IMAGE} ${IMAGE}.tmp
+
+netbsd: ${KERN}
+ rm -f netbsd
+ cp ${KERN} netbsd
+
+release:
+ -mkdir -p ${RELEASEDIR}/installation/floppy
+ cp -p ${IMAGE} ${RELEASEDIR}/installation/floppy
+ gzip <${IMAGE} >${RELEASEDIR}/installation/floppy/${IMAGE}.gz
+
+clean cleandir distclean:
+ /bin/rm -f *.core ${CLEANFILES} ${IMAGE} ${IMAGE}.tmp
+
+.include <bsd.own.mk>
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>
Home |
Main Index |
Thread Index |
Old Index