summaryrefslogtreecommitdiff
path: root/distrib
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2003-03-02 03:27:25 +0000
committerBrad Smith <brad@cvs.openbsd.org>2003-03-02 03:27:25 +0000
commit8760d5ed0edbf08313634537cb23a1cf8cbbd658 (patch)
treec191eaa77bccd328fb8ee97a8902756e1decfc05 /distrib
parent727d4fd600e72da0257f3aa9093b66f0817c36dc (diff)
add a CD bootable minirooot image.
deraadt@ ok
Diffstat (limited to 'distrib')
-rw-r--r--distrib/sparc64/Makefile6
-rw-r--r--distrib/sparc64/cdfs/Makefile27
2 files changed, 30 insertions, 3 deletions
diff --git a/distrib/sparc64/Makefile b/distrib/sparc64/Makefile
index 1ce040d3716..99be5f86d8e 100644
--- a/distrib/sparc64/Makefile
+++ b/distrib/sparc64/Makefile
@@ -1,6 +1,6 @@
-# $OpenBSD: Makefile,v 1.5 2001/11/07 07:45:34 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 2003/03/02 03:27:24 brad Exp $
-# preserve order: 'miniroot' depends on 'bsd.rd'
-SUBDIR+= ramdisk bsd.rd miniroot # ramdiskB
+# preserve order: 'miniroot' depends on 'bsd.rd', 'cdfs' depends on 'miniroot'
+SUBDIR+= ramdisk bsd.rd miniroot cdfs # ramdiskB
.include <bsd.subdir.mk>
diff --git a/distrib/sparc64/cdfs/Makefile b/distrib/sparc64/cdfs/Makefile
new file mode 100644
index 00000000000..7f1a5d732ec
--- /dev/null
+++ b/distrib/sparc64/cdfs/Makefile
@@ -0,0 +1,27 @@
+# $OpenBSD: Makefile,v 1.5 2003/03/02 03:27:24 brad Exp $
+
+TOP= ${.CURDIR}/..
+
+.include "${TOP}/Makefile.inc"
+
+CDFS= cd${REV}.fs
+
+all: ${CDFS}
+
+${CDFS}:
+ -rm -rf ${.OBJDIR}/cd-dir
+ -@mkdir ${.OBJDIR}/cd-dir
+ mkhybrid -o ${.OBJDIR}/${CDFS} ${.OBJDIR}/cd-dir
+ vnconfig -v -c svnd0 ${.OBJDIR}/${CDFS}
+ disklabel -w svnd0 fakecdrom "CD-ROM OpenBSD"
+ vnconfig -u svnd0
+ mksuncd f ${.OBJDIR}/${CDFS} ${.OBJDIR}/../miniroot/miniroot${REV}.fs
+
+install:
+ cp ${CDFS} ${DESTDIR}/snapshot
+
+clean cleandir:
+ /bin/rm -f ${CDFS}
+
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>