Home | History | Annotate | Line # | Download | only in etc.sgimips
Makefile.inc revision 1.11.2.3
      1  1.11.2.3    tron #	$NetBSD: Makefile.inc,v 1.11.2.3 2005/10/06 11:45:26 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.3    tron 	@SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \
     26  1.11.2.3    tron 		${DESTDIR}/usr/include/sys/bootblock.h` ; \
     27  1.11.2.3    tron 	EST=`ls -l ${CDROM.image} \
     28  1.11.2.3    tron 		| awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \
     29  1.11.2.3    tron 	echo "Estimated image size: $${EST} MB"; \
     30  1.11.2.3    tron 	dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
     31  1.11.2.3    tron 	${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
     32      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
     33  1.11.2.3    tron 		${SGI.image}; \
     34      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
     35  1.11.2.3    tron 		${SGI.image}; \
     36      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
     37  1.11.2.3    tron 		${SGI.image}; \
     38  1.11.2.3    tron 	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