summaryrefslogtreecommitdiff
path: root/distrib/sun3/common/Make.fsimage
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-10-18 08:53:40 +0000
commitd6583bb2a13f329cf0332ef2570eb8bb8fc0e39c (patch)
treeece253b876159b39c620e62b6c9b1174642e070e /distrib/sun3/common/Make.fsimage
initial import of NetBSD tree
Diffstat (limited to 'distrib/sun3/common/Make.fsimage')
-rw-r--r--distrib/sun3/common/Make.fsimage42
1 files changed, 42 insertions, 0 deletions
diff --git a/distrib/sun3/common/Make.fsimage b/distrib/sun3/common/Make.fsimage
new file mode 100644
index 00000000000..53c19d6d192
--- /dev/null
+++ b/distrib/sun3/common/Make.fsimage
@@ -0,0 +1,42 @@
+#
+# $NetBSD: Make.fsimage,v 1.2 1995/10/13 16:38:26 gwr Exp $
+#
+
+# TOP is assumed to be defined by Makefile including this one.
+# These will be defined by it too:
+
+IMAGE?= xxx-${REV}
+CBIN?= xxx-crunched
+
+TREE?= ${.CURDIR}/${CBIN}.tree
+LISTS?= ${.CURDIR}/${CBIN}.list
+
+MOUNT_POINT?= /mnt
+DISKTYPE?= xxx-disktype
+BDEV?= /dev/rd0
+CDEV?= /dev/rd0
+
+IMAGE_DEPS?= ${CBIN}
+CLEANFILES+= ${IMAGE}.fs
+
+# These are all the parameters for the root fs:
+NBLKS?= 512
+# args: old fmt, minfree, opt, ...
+NEWFSARGS?= -O -m 0 -o space
+
+do_mount:
+ -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
+ mount ${BDEV} ${MOUNT_POINT}
+
+do_files:
+ mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
+ TOPDIR=${TOP} CURDIR=${.CURDIR} \
+ OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
+ sh ${TOP}/common/RunList.sh ${LISTS}
+
+do_umount:
+ @echo ""
+ @df -i ${MOUNT_POINT}
+ @echo ""
+ -umount ${MOUNT_POINT}
+