1 # $NetBSD: Makefile.inc,v 1.11.2.4 2007/06/06 15:41:02 liamjfoy Exp $ 2 # 3 # etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets 4 # 5 6 KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x 7 KERNEL_SUFFIXES= ecoff 8 9 #EXTRA_KERNELS= NETBOOT 10 11 BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x 12 13 INSTALLATION_DIRS+= installation/netboot \ 14 installation/diskimage 15 16 iso-image-md-pre: 17 cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x 18 cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x 19 echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist} 20 echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist} 21 22 SGI.image= ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-sgimips.img 23 24 iso-image-md-post: 25 @SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \ 26 ${DESTDIR}/usr/include/sys/bootblock.h` ; \ 27 EST=`ls -l ${CDROM.image} \ 28 | awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \ 29 echo "Estimated image size: $${EST} MB"; \ 30 dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \ 31 ${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \ 32 ${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \ 33 ${SGI.image}; \ 34 ${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \ 35 ${SGI.image}; \ 36 ${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \ 37 ${SGI.image}; \ 38 dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK} 39 mv ${SGI.image} ${CDROM.image} 40 rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x 41