summaryrefslogtreecommitdiff
path: root/distrib/mvme68k/miniroot/Makefile
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-12 01:18:07 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-12 01:18:07 +0000
commit70a1902d7725a18650bd68dd2d63c1e4b95dcee1 (patch)
tree38c677aa5b962995a62d93d3dafd6d1af766af48 /distrib/mvme68k/miniroot/Makefile
parent24e918b04736223c98128a7e9b14e80517500ddc (diff)
first cut, copied from sun3 stuff
Diffstat (limited to 'distrib/mvme68k/miniroot/Makefile')
-rw-r--r--distrib/mvme68k/miniroot/Makefile72
1 files changed, 72 insertions, 0 deletions
diff --git a/distrib/mvme68k/miniroot/Makefile b/distrib/mvme68k/miniroot/Makefile
new file mode 100644
index 00000000000..339166cbe38
--- /dev/null
+++ b/distrib/mvme68k/miniroot/Makefile
@@ -0,0 +1,72 @@
+# $NetBSD: Makefile,v 1.3.6.1 1996/08/29 03:24:24 gwr Exp $
+
+TOP= ${.CURDIR}/..
+
+# This include just sets REV=XX
+.include "${TOP}/Makefile.inc"
+
+IMAGE= miniroot
+CBIN= mini_usr
+
+TREE= ${TOP}/common/${IMAGE}.tree
+
+LISTS= ${TOP}/common/mini_sbin.list \
+ ${TOP}/common/mini_bin.list \
+ ${TOP}/common/${CBIN}.list \
+ ${TOP}/common/mini_xx.list \
+ ${TOP}/common/${IMAGE}.list
+
+KERNEL=${SRCSYSDIR}/arch/sun3/compile/GENERIC/netbsd
+
+MOUNT_POINT= /mnt
+BDEV= /dev/sd2b
+CDEV= /dev/rsd2b
+#BDEV= /dev/sd0d
+#CDEV= /dev/rsd0d
+
+# These are all the parameters for the miniroot: (8MB)
+DISKTYPE= miniroot
+NBLKS= 16384
+# old format, minfree, opt, b/i trks, sects, cpg
+NEWFSARGS= -O -m 0 -o space -i 8192 -t 8 -u 32 -c 16
+
+CLEANFILES= ${IMAGE}.gz install.sub
+
+${IMAGE}.gz: ${TREE} ${LISTS} ${CBIN} mini_xx install.sub
+ -newfs ${NEWFSARGS} -s ${NBLKS} ${CDEV} ${DISKTYPE}
+ mount ${BDEV} ${MOUNT_POINT}
+ mtree -def ${TREE} -p ${MOUNT_POINT}/ -u
+ TOPDIR=${TOP} CURDIR=${.CURDIR} \
+ OBJDIR=${.OBJDIR} TARGDIR=${MOUNT_POINT} \
+ sh ${TOP}/common/RunList.sh ${LISTS}
+ sync ; sleep 1 ; sync
+ cd ${MOUNT_POINT} ;\
+ usr/mdec/installboot -v ufsboot usr/mdec/bootxx ${CDEV}
+ cp ${KERNEL} ${MOUNT_POINT}/netbsd
+ sync
+ @echo ""
+ @df -i ${MOUNT_POINT}
+ @echo ""
+ -umount ${MOUNT_POINT}
+ dd if=${CDEV} bs=16b count=`expr ${NBLKS} / 16` |\
+ gzip > ${IMAGE}.tmp
+ -mv -f ${IMAGE}.tmp ${IMAGE}.gz
+
+# Do not delete this if I change my mind and kill make...
+.PRECIOUS: ${IMAGE}.gz
+
+# Rules for making ${CBIN} ...
+.include "${TOP}/common/Make.crunch"
+
+install.sub : ${TOP}/../miniroot/install.sub
+ sed -e "/^VERSION=/s/=.*/=${REV}/" < $? > $@
+
+clean cleandir: clean_xx
+ -rm -f a.out core *.core *.o
+ -rm -f ${CLEANFILES}
+
+# Standard rules needed by the above...
+.include <bsd.obj.mk>
+
+# Hacks for re-linking some program -static
+.include "${TOP}/common/mini_xx.mk"