2012-01-15 21:36:55 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.22 2012/01/15 17:36:55 joerg Exp $
|
2001-11-20 19:41:44 +03:00
|
|
|
#
|
|
|
|
# etc.sgimips/Makefile.inc -- sgimips-specific etc Makefile targets
|
|
|
|
#
|
|
|
|
|
2007-07-24 14:49:23 +04:00
|
|
|
# If you change the list of distributed kernels, don't forget
|
|
|
|
# to update the release documentation in distrib/notes/common/contents
|
|
|
|
|
2009-12-14 04:11:02 +03:00
|
|
|
.if ${MACHINE_ARCH} == "mipseb"
|
|
|
|
SFX=32
|
|
|
|
.else
|
|
|
|
SFX=64
|
|
|
|
.endif
|
|
|
|
|
|
|
|
KERNEL_SETS= GENERIC${SFX}_IP2x GENERIC${SFX}_IP3x
|
|
|
|
.if ${MACHINE_ARCH} == "mipseb"
|
2010-08-27 15:02:55 +04:00
|
|
|
KERNEL_SETS+= GENERIC32_IP12
|
2002-05-22 00:56:19 +04:00
|
|
|
KERNEL_SUFFIXES= ecoff
|
2009-12-14 04:11:02 +03:00
|
|
|
.endif
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2002-05-22 00:56:19 +04:00
|
|
|
#EXTRA_KERNELS= NETBOOT
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2009-12-14 04:11:02 +03:00
|
|
|
BUILD_KERNELS= INSTALL${SFX}_IP2x INSTALL${SFX}_IP3x
|
2001-11-20 19:41:44 +03:00
|
|
|
|
2002-05-22 00:56:19 +04:00
|
|
|
INSTALLATION_DIRS+= installation/netboot \
|
|
|
|
installation/diskimage
|
2003-11-15 11:58:27 +03:00
|
|
|
|
|
|
|
iso-image-md-pre:
|
2009-12-14 04:11:02 +03:00
|
|
|
cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL${SFX}_IP2x.gz ${RELEASEDIR}/ip2x
|
|
|
|
cp ${RELEASEDIR}/${RELEASEMACHINEDIR}/binary/kernel/netbsd-INSTALL${SFX}_IP3x.gz ${RELEASEDIR}/ip3x
|
2007-03-17 00:12:17 +03:00
|
|
|
echo "ip2x/=${RELEASEDIR}/ip2x/" >> ${CDROM.pathlist}
|
|
|
|
echo "ip3x/=${RELEASEDIR}/ip3x/" >> ${CDROM.pathlist}
|
2003-11-15 11:58:27 +03:00
|
|
|
|
2008-03-18 07:20:36 +03:00
|
|
|
SGI.image= ${RELEASEDIR}/${RELEASEMACHINEDIR}/installation/cdrom/netbsd-sgimips.img
|
2003-11-15 11:58:27 +03:00
|
|
|
|
|
|
|
iso-image-md-post:
|
2010-12-27 06:38:52 +03:00
|
|
|
@SEEK=$$(${TOOL_AWK} '/SGI_BOOT_BLOCK_SIZE_VOLHDR/{print $$3}' \
|
|
|
|
${DESTDIR}/usr/include/sys/bootblock.h) ; \
|
2012-01-15 21:36:55 +04:00
|
|
|
EST=$$(ls -l ${CDROM_IMAGE} \
|
2008-10-20 02:05:19 +04:00
|
|
|
| ${TOOL_AWK} '{ s += $$5 } \
|
|
|
|
END { print int(('$${SEEK}'*512+s)/1024/1024/32+1)*32 \
|
2010-12-27 06:38:52 +03:00
|
|
|
}') ; \
|
2005-10-04 20:11:15 +04:00
|
|
|
echo "Estimated image size: $${EST} MB"; \
|
|
|
|
dd if=/dev/zero of=${SGI.image} bs=1024k count=$${EST}; \
|
|
|
|
${TOOLDIR}/bin/nbsgivol -f -i ${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w aoutboot ${DESTDIR}/usr/mdec/aoutboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip2xboot ${DESTDIR}/usr/mdec/ip2xboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
2004-11-25 01:01:42 +03:00
|
|
|
${TOOLDIR}/bin/nbsgivol -f -w ip3xboot ${DESTDIR}/usr/mdec/ip3xboot \
|
2005-10-04 20:11:15 +04:00
|
|
|
${SGI.image}; \
|
2012-01-15 21:36:55 +04:00
|
|
|
dd if=${CDROM_IMAGE} of=${SGI.image} bs=512 seek=$${SEEK}
|
|
|
|
mv ${SGI.image} ${CDROM_IMAGE}
|
2003-11-15 11:58:27 +03:00
|
|
|
rm -f ${RELEASEDIR}/ip2x ${RELEASEDIR}/ip3x
|