ae77ae0ca1
can't find the el-torito boot image with the old syntax. This can be fixed by removed the leading "i386/" from the -b argument, but then the mkisofs from the current cdrtools-2.01 package won't find the boot image. Change the graf-point specifications so that a trailing / terminates the grafted directories. This way both versions of mkisofs can find the boot loader.
41 lines
1.5 KiB
Makefile
41 lines
1.5 KiB
Makefile
# $NetBSD: Makefile.inc,v 1.15 2007/03/16 21:12:19 bad Exp $
|
|
#
|
|
# etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets
|
|
#
|
|
|
|
KERNEL_SETS= GENERIC32_IP12 GENERIC32_IP2x GENERIC32_IP3x
|
|
KERNEL_SUFFIXES= ecoff
|
|
|
|
#EXTRA_KERNELS= NETBOOT
|
|
|
|
BUILD_KERNELS= INSTALL32_IP2x INSTALL32_IP3x
|
|
|
|
INSTALLATION_DIRS+= installation/netboot \
|
|
installation/diskimage
|
|
|
|
iso-image-md-pre:
|
|
cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP2x.gz ${RELEASEDIR}/ip2x
|
|
cp ${RELEASEDIR}/${MACHINE}/binary/kernel/netbsd-INSTALL32_IP3x.gz ${RELEASEDIR}/ip3x
|
|
echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist}
|
|
echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist}
|
|
|
|
SGI.image= ${RELEASEDIR}/${MACHINE}/installation/cdrom/netbsd-sgimips.img
|
|
|
|
iso-image-md-post:
|
|
@SEEK=`awk '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \
|
|
${DESTDIR}/usr/include/sys/bootblock.h` ; \
|
|
EST=`ls -l ${CDROM.image} \
|
|
| awk '{ s += $$5} END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 }'` ; \
|
|
echo "Estimated image size: $${EST} MB"; \
|
|
dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
|
|
${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
|
|
${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
|
|
${SGI.image}; \
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
|
|
${SGI.image}; \
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
|
|
${SGI.image}; \
|
|
dd if=${CDROM.image} of=${SGI.image} bs=512 seek=$${SEEK}
|
|
mv ${SGI.image} ${CDROM.image}
|
|
rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
|