xref: /netbsd-src/distrib/sgimips/cdroms/installcd/Makefile (revision 2de962bd804263c16657f586aa00f1704045df8e)
1#	$NetBSD: Makefile,v 1.1 2007/03/06 21:57:22 bouyer 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 ${CDBASE}.iso ${CDBASE}.iso.tmp
13	dd if=/dev/zero of=${CDBASE}.iso bs=512 count=${SGIVOLHDR.size}
14	dd if=${CDBASE}.iso.tmp of=${CDBASE}.iso bs=512 seek=${SGIVOLHDR.size}
15	${TOOLDIR}/bin/nbsgivol -f -i -h ${SGIVOLHDR.size} ${CDBASE}.iso
16	${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot ${CDBASE}.iso
17	${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot ${CDBASE}.iso
18	${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot ${CDBASE}.iso
19	${RM} -f ${CDBASE}.iso.tmp
20
21.include "${.CURDIR}/../../../common/Makefile.bootcd"
22
23