2005-10-04 20:11:15 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.14 2005/10/04 16:11:15 martin Exp $
|
2001-11-20 19:41:44 +03:00
|
|
|
#
|
|
|
|
# etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
2004-11-13 13:27:14 +03:00
|
|
|
KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x
|
2002-05-22 00:56:19 +04:00
|
|
|
KERNEL_SUFFIXES= ecoff
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2002-05-22 00:56:19 +04:00
|
|
|
#EXTRA_KERNELS= NETBOOT
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2003-11-13 05:33:39 +03:00
|
|
|
BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2002-05-22 00:56:19 +04:00
|
|
|
INSTALLATION_DIRS+= installation/netboot \
|
|
|
|
installation/diskimage
|
2003-11-15 11:58:27 +03:00
|
|
|
|
|
|
|
iso-image-md-pre:
|
2005-05-11 01:58:03 +04:00
|
|
|
cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x
|
|
|
|
cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x
|
2003-11-15 11:58:27 +03:00
|
|
|
echo "ip2x=${RELEASEDIR}/ip2x" >> ${CDROM.pathlist}
|
|
|
|
echo "ip3x=${RELEASEDIR}/ip3x" >> ${CDROM.pathlist}
|
|
|
|
|
|
|
|
SGI.image= ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-sgimips.img
|
|
|
|
|
|
|
|
iso-image-md-post:
|
2005-10-04 20:11:15 +04:00
|
|
|
@SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \
|
|
|
|
${DESTDIR}/usr/include/sys/bootblock.h` ; \
|
|
|
|
EST=`ls -l ${CDROM.image} \
|
|
|
|
| awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \
|
|
|
|
echo "Estimated image size: $${EST} MB"; \
|
|
|
|
dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
|
|
|
|
${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
|
|
|
dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK}
|
2003-11-15 11:58:27 +03:00
|
|
|
mv ${SGI.image} ${CDROM.image}
|
|
|
|
rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
|