Module Name: src
Committed By: matt
Date: Sat Sep 12 18:31:43 UTC 2009
Modified Files:
src/distrib/sgimips/instkernel [matt-nb5-mips64]: Makefile
Log Message:
Support sgimips64
To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.6.26.1 src/distrib/sgimips/instkernel/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/distrib/sgimips/instkernel/Makefile
diff -u src/distrib/sgimips/instkernel/Makefile:1.6 src/distrib/sgimips/instkernel/Makefile:1.6.26.1
--- src/distrib/sgimips/instkernel/Makefile:1.6 Mon Jul 9 21:35:59 2007
+++ src/distrib/sgimips/instkernel/Makefile Sat Sep 12 18:31:43 2009
@@ -1,29 +1,37 @@
-# $NetBSD: Makefile,v 1.6 2007/07/09 21:35:59 he Exp $
+# $NetBSD: Makefile,v 1.6.26.1 2009/09/12 18:31:43 matt Exp $
.include <bsd.own.mk>
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
.include <bsd.kernobj.mk>
+.if ${MACHINE_ARCH} == "mipseb"
+SFX=32
+.else
+SFX=64
+.endif
+
IMAGE= diskimage
IMAGESIZE= 3500k
-LISTS= ${.CURDIR}/list
+LISTS= ${.CURDIR}/list${SFX}
MTREECONF= ${DISTRIBDIR}/common/mtree.dot
IMAGEENDIAN= be
-IMAGEDEPENDS= netbsd-INSTALL32_IP2x.gz netbsd-INSTALL32_IP3x.gz
+IMAGEDEPENDS= netbsd-INSTALL${SFX}_IP2x.gz netbsd-INSTALL${SFX}_IP3x.gz
RAMDISKDIR!= cd ${.CURDIR}/../ramdisk && ${PRINTOBJDIR}
RAMDISK= ${RAMDISKDIR}/ramdisk.fs
-MDSETTARGETS= INSTALL32_IP2x ${RAMDISK} netbsd-INSTALL32_IP2x \
- INSTALL32_IP3x ${RAMDISK} netbsd-INSTALL32_IP3x
+MDSETTARGETS= INSTALL${SFX}_IP2x ${RAMDISK} netbsd-INSTALL${SFX}_IP2x \
+ INSTALL${SFX}_IP3x ${RAMDISK} netbsd-INSTALL${SFX}_IP3x
MDSET_RELEASEDIR= binary/kernel
+.if ${MACHINE_ARCH} == "mipseb"
MDSET_SUFFIXES.netbsd-INSTALL32_IP2x=ecoff create-ecoff
create-ecoff= ${OBJCOPY} --impure -O ecoff-bigmips \
-R .pdr -R .mdebug.abi32 -R .comment -R .ident \
${.TARGET:R} ${.TARGET}
+.endif
IMAGE_RELEASEDIR= installation/diskimage