NetBSD/distrib/sgimips/cdroms/installcd/Makefile
bouyer fee07bcfd4 Add an iso_image target (iso-image as a target name doesn't play well with
bsd.subdirs.mk) in distrib/makefile, which builds an iso image for $MACHINE
with binary sets, stored in ${RELEASEDIR}/iso. The image is bootable for:
alpha, amd64, cats, i386, pmax, sgimips, sparc, sparc64, sun3, vax.
mac68k/macppc no there yet because of missing feature in makefs.

call iso_image in distrib/ for iso-image in the top Makefile.
2007-03-06 21:56:47 +00:00

23 lines
913 B
Makefile

# $NetBSD: Makefile,v 1.1 2007/03/06 21:57:22 bouyer Exp $
CDBASE= sgimipscd # gives ${CDBASE}.iso
CDRELEASE= true # include $RELEASEDIR/$MACHINE
CDKERNELS= netbsd-INSTALL32_IP2x.gz ip2x
CDKERNELS+= netbsd-INSTALL32_IP3x.gz ip3x
CDINSTKERNEL= ../../instkernel
SGIVOLHDR.size= 4096
image_md_post:
@echo "Prepending SGI volume header:"
mv ${CDBASE}.iso ${CDBASE}.iso.tmp
dd if=/dev/zero of=${CDBASE}.iso bs=512 count=${SGIVOLHDR.size}
dd if=${CDBASE}.iso.tmp of=${CDBASE}.iso bs=512 seek=${SGIVOLHDR.size}
${TOOLDIR}/bin/nbsgivol -f -i -h ${SGIVOLHDR.size} ${CDBASE}.iso
${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot ${CDBASE}.iso
${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot ${CDBASE}.iso
${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot ${CDBASE}.iso
${RM} -f ${CDBASE}.iso.tmp
.include "${.CURDIR}/../../../common/Makefile.bootcd"