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