From 8760d5ed0edbf08313634537cb23a1cf8cbbd658 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Sun, 2 Mar 2003 03:27:25 +0000 Subject: add a CD bootable minirooot image. deraadt@ ok --- distrib/sparc64/Makefile | 6 +++--- distrib/sparc64/cdfs/Makefile | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 distrib/sparc64/cdfs/Makefile (limited to 'distrib/sparc64') 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 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 +.include -- cgit v1.2.3