summaryrefslogtreecommitdiff
path: root/distrib/alpha/cdfs/Makefile
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/cdfs/Makefile
parent21d8acca5d2d5184877e1e3c7b00b26e7a472e71 (diff)
cd${rev}.iso for alpha too
Diffstat (limited to 'distrib/alpha/cdfs/Makefile')
-rw-r--r--distrib/alpha/cdfs/Makefile45
1 files changed, 45 insertions, 0 deletions
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>