Module Name:    src
Committed By:   matt
Date:           Tue Feb  5 07:28:19 UTC 2013

Modified Files:
        src/sys/arch/evbarm/stand: Makefile
        src/sys/arch/evbarm/stand/gzboot: Makefile

Log Message:
There are other little endian arm machine_arches other than "arm"
Use MACHINE_CPU and TARGET_ENDIANNESS instead of MACHINE_ARCH


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sys/arch/evbarm/stand/Makefile
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/evbarm/stand/gzboot/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/evbarm/stand/Makefile
diff -u src/sys/arch/evbarm/stand/Makefile:1.4 src/sys/arch/evbarm/stand/Makefile:1.5
--- src/sys/arch/evbarm/stand/Makefile:1.4	Tue Nov 27 20:00:39 2012
+++ src/sys/arch/evbarm/stand/Makefile	Tue Feb  5 07:28:19 2013
@@ -1,8 +1,10 @@
-#	$NetBSD: Makefile,v 1.4 2012/11/27 20:00:39 jkunz Exp $
+#	$NetBSD: Makefile,v 1.5 2013/02/05 07:28:19 matt Exp $
+
+.include <bsd.endian.mk>
 
 SUBDIR+= gzboot
 SUBDIR+= boot2440
-.if ${MACHINE_ARCH} == "arm"
+.if ${MACHINE_CPU} == "arm" && ${TARGET_ENDIANNESS} == "1234"
 # According to the i.MX23 Reference Manual section 3.1, Page 3-3:
 # "The i.MX23 always operates in litle-endian mode."
 SUBDIR+= bootimx23

Index: src/sys/arch/evbarm/stand/gzboot/Makefile
diff -u src/sys/arch/evbarm/stand/gzboot/Makefile:1.10 src/sys/arch/evbarm/stand/gzboot/Makefile:1.11
--- src/sys/arch/evbarm/stand/gzboot/Makefile:1.10	Sat Jun  2 20:50:41 2012
+++ src/sys/arch/evbarm/stand/gzboot/Makefile	Tue Feb  5 07:28:19 2013
@@ -1,6 +1,8 @@
-#	$NetBSD: Makefile,v 1.10 2012/06/02 20:50:41 skrll Exp $
+#	$NetBSD: Makefile,v 1.11 2013/02/05 07:28:19 matt Exp $
 
-.if ${MACHINE_ARCH} == "arm"
+.include <bsd.endian.mk>
+
+.if ${MACHINE_CPU} == "arm" && ${TARGET_ENDIANNESS} == "1234"
 # Little endian platforms
 SUBDIR=  ADI_BRH_flash_0x00140000
 SUBDIR+= GEMINI_dram_0x01600000

Reply via email to