From d3d91983f408b5141771e755b46f0d7fef365093 Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Fri, 12 Oct 2001 21:56:00 +0000 Subject: cdfs becomes miniroot --- distrib/sparc64/miniroot/Makefile | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 distrib/sparc64/miniroot/Makefile (limited to 'distrib/sparc64/miniroot/Makefile') diff --git a/distrib/sparc64/miniroot/Makefile b/distrib/sparc64/miniroot/Makefile new file mode 100644 index 00000000000..c9bbe4ded48 --- /dev/null +++ b/distrib/sparc64/miniroot/Makefile @@ -0,0 +1,58 @@ +# $OpenBSD: Makefile,v 1.1 2001/10/12 21:55:59 jason Exp $ + +TOP= ${.CURDIR}/.. + +.include "${TOP}/Makefile.inc" + +TARGET=miniroot${REV}.fs + +.ifndef DESTDIR +all ${TARGET}: + @echo setenv DESTDIR before making a ramdisk! + @false +.else + +all: ${TARGET} + +${TARGET}: vn_up install_files installboot showit vn_down + +vn_up: blank_filesystem + vnconfig svnd0 ${TARGET} + disklabel -w svnd0 fakeramdisk + newfs -m 0 /dev/rsvnd0a + mount /dev/svnd0a /mnt + +showit: + df -ki /mnt + +vn_down: + -umount /mnt + -vnconfig -u svnd0 + +install_files: bsd.rd ofwboot + +bsd.rd: + install -c -m 555 -o root -g wheel \ + ${.OBJDIR}/../bsd.rd/bsd.rd /mnt/bsd + +ofwboot: + install -c -m 555 -o root -g wheel \ + ${DESTDIR}/usr/mdec/ofwboot /mnt/ofwboot + +installboot: + /usr/mdec/installboot -v ${DESTDIR}/usr/mdec/bootblk /dev/svnd0c + +blank_filesystem: + dd if=/dev/zero of=${TARGET} bs=512 count=3200 + +.endif + +install: + cp ${TARGET} ${DESTDIR}/snapshot/ + +clean: + rm -f ${TARGET} + +.include +.include +.include -- cgit v1.2.3