summaryrefslogtreecommitdiff
path: root/distrib/alpha
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-06 00:02:06 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-06 00:02:06 +0000
commit14cc13938e1a2b9e623c03d2112e7a987357f9e9 (patch)
tree961f822978da98b27efde867039c9d8e41dd6718 /distrib/alpha
parent21d8acca5d2d5184877e1e3c7b00b26e7a472e71 (diff)
cd${rev}.iso for alpha too
Diffstat (limited to 'distrib/alpha')
-rw-r--r--distrib/alpha/Makefile5
-rw-r--r--distrib/alpha/cdfs/Makefile45
2 files changed, 48 insertions, 2 deletions
diff --git a/distrib/alpha/Makefile b/distrib/alpha/Makefile
index 379159877a3..f9a135c170e 100644
--- a/distrib/alpha/Makefile
+++ b/distrib/alpha/Makefile
@@ -1,11 +1,12 @@
-# $OpenBSD: Makefile,v 1.5 2001/01/29 21:25:45 deraadt Exp $
+# $OpenBSD: Makefile,v 1.6 2003/03/06 00:02:05 deraadt Exp $
-SUBDIR= bsd.rd floppy floppyB # floppyC
+SUBDIR= bsd.rd floppy floppyB cdfs # floppyC
unconfig:
cd bsd.rd; ${MAKE} unconfig
cd floppy; ${MAKE} unconfig
cd floppyB; ${MAKE} unconfig
+ cd cdfs; ${MAKE} unconfig
# cd floppyC; ${MAKE} unconfig
.include <bsd.subdir.mk>
diff --git a/distrib/alpha/cdfs/Makefile b/distrib/alpha/cdfs/Makefile
new file mode 100644
index 00000000000..938f0d3893a
--- /dev/null
+++ b/distrib/alpha/cdfs/Makefile
@@ -0,0 +1,45 @@
+# $OpenBSD: Makefile,v 1.1 2003/03/06 00:02:05 deraadt Exp $
+
+TOP= ${.CURDIR}/..
+
+CDROM= cd${OSrev}.iso
+
+all: ${CDROM}
+
+${CDROM}:
+ -rm -rf ${.OBJDIR}/cd-dir
+ mkdir -p ${.OBJDIR}/cd-dir/${OSREV}/alpha
+ cp ${.OBJDIR}/../bsd.rd/bsd.rd ${.OBJDIR}/cd-dir/${OSREV}/alpha
+ ln ${.OBJDIR}/cd-dir/${OSREV}/alpha/bsd.rd ${.OBJDIR}/cd-dir/bsd.rd
+ ln ${.OBJDIR}/cd-dir/bsd.rd ${.OBJDIR}/cd-dir/bsd
+ cp ${DESTDIR}/usr/mdec/boot ${.OBJDIR}/cd-dir/${OSREV}/alpha
+ cp ${DESTDIR}/usr/mdec/bootxx ${.OBJDIR}/cd-dir/${OSREV}/alpha
+ (mkhybrid -a -R -v -v -T -L -d -D -N -o ${.OBJDIR}/${CDROM} \
+ -A "OpenBSD ${OSREV} alpha bootonly CD" \
+ -P "Copyright (c) 2003 Theo de Raadt, The OpenBSD project" \
+ -p "Theo de Raadt <deraadt@openbsd.org>" \
+ -V "OpenBSD/alpha ${OSREV} boot-only CD" \
+ ${.OBJDIR}/cd-dir 2>&1) | tee log
+ vnconfig -v -c svnd0 ${.OBJDIR}/${CDROM}
+ mount -t cd9660 /dev/svnd0a /mnt
+ /usr/mdec/installboot -v \
+ -s `cat log | grep -v 'Name' | egrep '/cd-dir/3.3/alpha/boot$$' | cut -d' ' -f1` \
+ -e `cat log | grep -v 'Name' | egrep '/cd-dir/3.3/alpha/boot$$' | cut -d' ' -f2` \
+ /mnt/3.3/alpha/boot /usr/mdec/bootxx /dev/rsvnd0c
+ #disklabel -w svnd0 fakecdrom "OpenBSD/alpha "
+ umount /mnt
+ vnconfig -u svnd0
+
+install:
+ cp ${CDROM} ${DESTDIR}/snapshot
+
+clean cleandir:
+ /bin/rm -f ${CDROM}
+ rm -rf cd-dir log
+
+unconfig:
+ -umount /mnt
+ -vnconfig -u svnd0
+
+.include <bsd.obj.mk>
+.include <bsd.subdir.mk>