Home | History | Annotate | Line # | Download | only in etc.sgimips
Makefile.inc revision 1.15
      1  1.15     bad #	$NetBSD: Makefile.inc,v 1.15 2007/03/16 21:12:19 bad 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.13  martin 	cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x
     18  1.13  martin 	cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x
     19  1.15     bad 	echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist}
     20  1.15     bad 	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.14  martin 	@SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \
     26  1.14  martin 		${DESTDIR}/usr/include/sys/bootblock.h` ; \
     27  1.14  martin 	EST=`ls -l ${CDROM.image} \
     28  1.14  martin 		| awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \
     29  1.14  martin 	echo "Estimated image size: $${EST} MB"; \
     30  1.14  martin 	dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
     31  1.14  martin 	${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
     32  1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
     33  1.14  martin 		${SGI.image}; \
     34  1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
     35  1.14  martin 		${SGI.image}; \
     36  1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
     37  1.14  martin 		${SGI.image}; \
     38  1.14  martin 	dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK}
     39   1.9  sekiya 	mv ${SGI.image} ${CDROM.image}
     40   1.9  sekiya 	rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
     41