xref: /netbsd-src/distrib/sgimips/cdroms/installcd/Makefile (revision 82ad575716605df31379cf04a2f3efbc97b8a6f5)
1#	$NetBSD: Makefile,v 1.2 2012/01/15 22:34:34 jmcneill Exp $
2CDBASE=		sgimipscd		# gives ${CDBASE}.iso
3CDRELEASE=	true			# include $RELEASEDIR/$MACHINE
4CDKERNELS=	netbsd-INSTALL32_IP2x.gz ip2x
5CDKERNELS+=	netbsd-INSTALL32_IP3x.gz ip3x
6CDINSTKERNEL=	../../instkernel
7
8SGIVOLHDR.size= 4096
9
10image_md_post:
11	@echo "Prepending SGI volume header:"
12	mv ${CDIMAGE} ${CDIMAGE}.tmp
13	dd if=/dev/zero of=${CDIMAGE} bs=512 count=${SGIVOLHDR.size}
14	dd if=${CDIMAGE}.tmp of=${CDIMAGE} bs=512 seek=${SGIVOLHDR.size}
15	${TOOLDIR}/bin/nbsgivol -f -i -h ${SGIVOLHDR.size} ${CDIMAGE}
16	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot ${CDIMAGE}
17	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot ${CDIMAGE}
18	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot ${CDIMAGE}
19	${RM} -f ${CDIMAGE}.tmp
20
21.include "${.CURDIR}/../../../common/Makefile.bootcd"
22
23