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