diff options
author | Mats O Jansson <maja@cvs.openbsd.org> | 2008-02-24 11:52:18 +0000 |
---|---|---|
committer | Mats O Jansson <maja@cvs.openbsd.org> | 2008-02-24 11:52:18 +0000 |
commit | 8cebfd3904e548672e1f5f2d39f7519c68239517 (patch) | |
tree | 7150e160f5249b131566ca447dcbe90634348706 /distrib | |
parent | e82978f661d8bc241a32e8fa9291b2d6597d0eaa (diff) |
Add an iso image, based on ramdisk and amd64 iso. -moj
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/vax/iso/Makefile | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/distrib/vax/iso/Makefile b/distrib/vax/iso/Makefile new file mode 100644 index 00000000000..ba174da4c9a --- /dev/null +++ b/distrib/vax/iso/Makefile @@ -0,0 +1,59 @@ +# $OpenBSD: Makefile,v 1.1 2008/02/24 11:52:17 maja Exp $ + +TOP= ${.CURDIR}/.. + +CDROM= install${REV}.iso +RELXDIR= /home/relx-${MACHINE} +RELDIR?= /home/rel-${MACHINE} +DESTDIR?= /home/dest-${MACHINE} +MOUNT_POINT?= /mnt +VND?= svnd0 +VND_DEV= /dev/${VND}a +VND_RDEV= /dev/r${VND}a +DISKTYPE= isoroot +PID!= echo $$$$ +ISOIMAGE!= echo image.${PID} +ISOSIZE= 547041 # 33*11*1507 +BOOT= ${DESTDIR}/usr/mdec/boot +BOOTXX= ${DESTDIR}/usr/mdec/xxboot +NEWFSOPTS= -t ffs -m 0 -o space -f 1024 -b 8192 -i 8192 -s ${ISOSIZE} + +BASE= ${RELDIR}/base${OSrev}.tgz ${RELDIR}/comp${OSrev}.tgz \ + ${RELDIR}/etc${OSrev}.tgz ${RELDIR}/game${OSrev}.tgz \ + ${RELDIR}/man${OSrev}.tgz ${RELDIR}/misc${OSrev}.tgz \ + ${RELDIR}/bsd ${RELDIR}/bsd.rd \ + ${RELDIR}/INSTALL.${MACHINE} +XBASE= ${RELXDIR}/xbase${OSrev}.tgz ${RELXDIR}/xetc${OSrev}.tgz \ + ${RELXDIR}/xfont${OSrev}.tgz ${RELXDIR}/xshare${OSrev}.tgz \ + ${RELXDIR}/xserv${OSrev}.tgz + +all: ${CDROM} + +${CDROM}: ${BASE} ${XBASE} ${BOOT} ${BOOTXX} + -rm -f ${.OBJDIR}/image.* + dd if=/dev/zero of=${ISOIMAGE} count=${ISOSIZE} + vnconfig -v -c ${VND} ${ISOIMAGE} + disklabel -w ${VND} ${DISKTYPE} + newfs ${NEWFSOPTS} ${VND_RDEV} + mount ${VND_DEV} ${MOUNT_POINT} + cp ${BOOT} ${MOUNT_POINT}/ + cp ${RELDIR}/bsd.rd ${MOUNT_POINT}/bsd + mkdir -p ${MOUNT_POINT}/${OSREV}/${MACHINE} + cp -p ${BASE} ${MOUNT_POINT}/${OSREV}/${MACHINE} + cp -p ${XBASE} ${MOUNT_POINT}/${OSREV}/${MACHINE} + disklabel -B -b ${BOOTXX} ${VND} + @echo "" + @df -i ${MOUNT_POINT} + @echo "" + umount ${MOUNT_POINT} + vnconfig -u ${VND} + mv ${ISOIMAGE} ${CDROM} + +install: + cp ${CDROM} ${RELDIR}/ + +clean cleandir: + /bin/rm -f ${CDROM} ${.OBJDIR}/image.* + +.include <bsd.obj.mk> +.include <bsd.subdir.mk> |