Home | History | Annotate | Line # | Download | only in etc.sgimips
Makefile.inc revision 1.16.4.1
      1  1.16.4.1    matt #	Makefile.inc,v 1.16 2007/07/24 10:49:28 pavel 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.4.1    matt 	cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x
     21  1.16.4.1    matt 	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.4.1    matt SGI.image= ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom/netbsd-sgimips.img
     26       1.9  sekiya 
     27       1.9  sekiya iso-image-md-post:
     28      1.14  martin 	@SEEK=`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.14  martin 		| awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \
     32      1.14  martin 	echo "Estimated image size: $${EST} MB"; \
     33      1.14  martin 	dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
     34      1.14  martin 	${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
     35      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
     36      1.14  martin 		${SGI.image}; \
     37      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
     38      1.14  martin 		${SGI.image}; \
     39      1.11     jmc 	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
     40      1.14  martin 		${SGI.image}; \
     41      1.14  martin 	dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK}
     42       1.9  sekiya 	mv ${SGI.image} ${CDROM.image}
     43       1.9  sekiya 	rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
     44