Home | History | Annotate | Line # | Download | only in etc.sgimips
Makefile.inc revision 1.9.4.2
      1 #	$NetBSD: Makefile.inc,v 1.9.4.2 2007/04/05 20:48:36 bouyer Exp $
      2 #
      3 #	etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets
      4 #
      5 
      6 KERNEL_SETS=		GENERIC32_IP2x GENERIC32_IP3x
      7 KERNEL_SUFFIXES=	ecoff
      8 
      9 #EXTRA_KERNELS=		NETBOOT
     10 
     11 BUILD_KERNELS=		INSTALL32_IP2x INSTALL32_IP3x
     12 
     13 INSTALLATION_DIRS+=	installation/netboot \
     14 			installation/diskimage
     15 
     16 iso-image-md-pre:
     17 	gzip -d -c ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP2x.gz > ${RELEASEDIR}/ip2x
     18 	gzip -d -c ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP3x.gz > ${RELEASEDIR}/ip3x
     19 	echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist}
     20 	echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist}
     21 
     22 SGI.image= ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-sgimips.img
     23 
     24 iso-image-md-post:
     25 	dd if=/dev/zero of=${SGI.image} bs=1024k count=120
     26 	${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}
     27 	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
     28 		${SGI.image}
     29 	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
     30 		${SGI.image}
     31 	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
     32 		${SGI.image}
     33 # Don't hardcode this. Pick it up from bootblock.h
     34 	SEEK=`egrep SGI_BOOT_BLOCK_SIZE_VOLHDR \
     35 		${.CURDIR}/../../sys/sys/bootblock.h | sed -e 's/[^0-9]*//'`; \
     36 		dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK}
     37 	mv ${SGI.image} ${CDROM.image}
     38 	rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
     39