Home | History | Annotate | Line # | Download | only in etc.sgimips
Makefile.inc revision 1.9
      1 #	$NetBSD: Makefile.inc,v 1.9 2003/11/15 08:58:27 sekiya 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=1m count=120
     26 	vnconfig vnd0 ${SGI.image}
     27 	${TOOLDIR}/bin/nbsgivol -f -i vnd0
     28 	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot vnd0
     29 	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot vnd0
     30 	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot vnd0
     31 	vnconfig -u vnd0
     32 	dd if=${CDROM.image} of=${SGI.image} bs=512 seek=3135
     33 	mv ${SGI.image} ${CDROM.image}
     34 	rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
     35