1 1.16.12.1 mjf # $NetBSD: Makefile.inc,v 1.16.12.2 2009/01/17 20:43:44 mjf 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.16 pavel # If you change the list of distributed kernels, don't forget 7 1.16 pavel # to update the release documentation in distrib/notes/common/contents 8 1.16 pavel 9 1.10 sekiya KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x 10 1.6 rafal KERNEL_SUFFIXES= ecoff 11 1.1 soren 12 1.6 rafal #EXTRA_KERNELS= NETBOOT 13 1.1 soren 14 1.8 sekiya BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x 15 1.1 soren 16 1.6 rafal INSTALLATION_DIRS+= installation/netboot \ 17 1.6 rafal installation/diskimage 18 1.9 sekiya 19 1.9 sekiya iso-image-md-pre: 20 1.16.12.1 mjf cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x 21 1.16.12.1 mjf cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x 22 1.15 bad echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist} 23 1.15 bad echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist} 24 1.9 sekiya 25 1.16.12.1 mjf SGI.image= ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom/netbsd-sgimips.img 26 1.9 sekiya 27 1.9 sekiya iso-image-md-post: 28 1.16.12.2 mjf @SEEK=`${TOOL_AWK} '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \ 29 1.14 martin ${DESTDIR}/usr/include/sys/bootblock.h` ; \ 30 1.14 martin EST=`ls -l ${CDROM.image} \ 31 1.16.12.2 mjf | ${TOOL_AWK} '{ s += $$5 } \ 32 1.16.12.2 mjf END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 \ 33 1.16.12.2 mjf }'` ; \ 34 1.14 martin echo "Estimated image size: $${EST} MB"; \ 35 1.14 martin dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \ 36 1.14 martin ${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \ 37 1.11 jmc ${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \ 38 1.14 martin ${SGI.image}; \ 39 1.11 jmc ${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \ 40 1.14 martin ${SGI.image}; \ 41 1.11 jmc ${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \ 42 1.14 martin ${SGI.image}; \ 43 1.14 martin dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK} 44 1.9 sekiya mv ${SGI.image} ${CDROM.image} 45 1.9 sekiya rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x 46