Makefile.inc revision 1.13
1# $NetBSD: Makefile.inc,v 1.13 2005/05/10 21:58:03 martin Exp $ 2# 3# etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets 4# 5 6KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x 7KERNEL_SUFFIXES= ecoff 8 9#EXTRA_KERNELS= NETBOOT 10 11BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x 12 13INSTALLATION_DIRS+= installation/netboot \ 14 installation/diskimage 15 16iso-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 22SGI.image= ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-sgimips.img 23 24iso-image-md-post: 25 EST=`ls -l ${CDROM.image} ${DESTDIR}/usr/mdec/aoutboot \ 26 ${DESTDIR}/usr/mdec/ip2xboot ${DESTDIR}/usr/mdec/ip3xboot \ 27 | awk '{ s += $$5} END { print int(s/1024/1024/32+1)*32 }'` ; \ 28 echo "Estimated image size: $${EST} MB"; \ 29 dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST} 30 ${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image} 31 ${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \ 32 ${SGI.image} 33 ${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \ 34 ${SGI.image} 35 ${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \ 36 ${SGI.image} 37# Don't hardcode this. Pick it up from bootblock.h 38 SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \ 39 ${DESTDIR}/usr/include/sys/bootblock.h` ; \ 40 dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK} 41 mv ${SGI.image} ${CDROM.image} 42 rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x 43