1 # $NetBSD: Makefile,v 1.1.2.2 2007/03/09 06:59:37 riz 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 ${CDBASE}.iso ${CDBASE}.iso.tmp 13 dd if=/dev/zero of=${CDBASE}.iso bs=512 count=${SGIVOLHDR.size} 14 dd if=${CDBASE}.iso.tmp of=${CDBASE}.iso bs=512 seek=${SGIVOLHDR.size} 15 ${TOOLDIR}/bin/nbsgivol -f -i -h ${SGIVOLHDR.size} ${CDBASE}.iso 16 ${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot ${CDBASE}.iso 17 ${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot ${CDBASE}.iso 18 ${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot ${CDBASE}.iso 19 ${RM} -f ${CDBASE}.iso.tmp 20 21 .include "${.CURDIR}/../../../common/Makefile.bootcd" 22 23