1# $NetBSD: Makefile,v 1.4 2019/09/23 13:42:35 christos Exp $ 2CDBASE= sgimipscd # gives ${CDBASE}.iso 3CDRELEASE= true # include $RELEASEDIR/$RELEASEMACHINEDIR 4CDRELEASE_NODEBUG= true 5CDKERNELS= netbsd-INSTALL32_IP2x.gz ip2x 6CDKERNELS+= netbsd-INSTALL32_IP3x.gz ip3x 7CDINSTKERNEL= ../../instkernel 8 9SGIVOLHDR.size= 4096 10 11image_md_post: 12 @echo "Prepending SGI volume header:" 13 mv ${CDIMAGE} ${CDIMAGE}.tmp 14 dd if=/dev/zero of=${CDIMAGE} bs=512 count=${SGIVOLHDR.size} 15 dd if=${CDIMAGE}.tmp of=${CDIMAGE} bs=512 seek=${SGIVOLHDR.size} 16 ${TOOLDIR}/bin/nbsgivol -f -i -h ${SGIVOLHDR.size} ${CDIMAGE} 17 ${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot ${CDIMAGE} 18 ${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot ${CDIMAGE} 19 ${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot ${CDIMAGE} 20 ${RM} -f ${CDIMAGE}.tmp 21 22.include "${.CURDIR}/../../../common/Makefile.bootcd" 23 24