Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src According to the i.MX23 Reference Manual section 3.1, Page 3-3:



details:   https://anonhg.NetBSD.org/src/rev/3d8b638686e1
branches:  trunk
changeset: 782937:3d8b638686e1
user:      jkunz <jkunz%NetBSD.org@localhost>
date:      Tue Nov 27 20:00:38 2012 +0000

description:
According to the i.MX23 Reference Manual section 3.1, Page 3-3:
"The i.MX23 always operates in litle-endian mode."
So build elftosb and bootloader for this processor only for evbarm(-el).

diffstat:

 external/bsd/elftosb/lib/Makefile               |  4 ++--
 external/bsd/elftosb/usr.sbin/elftosb/Makefile  |  4 ++--
 external/bsd/elftosb/usr.sbin/sbkeygen/Makefile |  4 ++--
 external/bsd/elftosb/usr.sbin/sbtool/Makefile   |  4 ++--
 sys/arch/evbarm/stand/Makefile                  |  6 +++++-
 tools/Makefile                                  |  4 ++--
 6 files changed, 15 insertions(+), 11 deletions(-)

diffs (94 lines):

diff -r d2afc7c5910f -r 3d8b638686e1 external/bsd/elftosb/lib/Makefile
--- a/external/bsd/elftosb/lib/Makefile Tue Nov 27 19:24:45 2012 +0000
+++ b/external/bsd/elftosb/lib/Makefile Tue Nov 27 20:00:38 2012 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.3 2012/11/16 05:39:25 christos Exp $
+# $NetBSD: Makefile,v 1.4 2012/11/27 20:00:38 jkunz Exp $
 
-.if (${MACHINE} == "evbarm")
+.if (${MACHINE} == "evbarm") && (${MACHINE_ARCH} == "arm")
 LIBISPRIVATE=  yes
 LIB=           elftosb
 SRCS=          AESKey.cpp \
diff -r d2afc7c5910f -r 3d8b638686e1 external/bsd/elftosb/usr.sbin/elftosb/Makefile
--- a/external/bsd/elftosb/usr.sbin/elftosb/Makefile    Tue Nov 27 19:24:45 2012 +0000
+++ b/external/bsd/elftosb/usr.sbin/elftosb/Makefile    Tue Nov 27 20:00:38 2012 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2012/11/15 19:49:16 jkunz Exp $
+# $NetBSD: Makefile,v 1.2 2012/11/27 20:00:38 jkunz Exp $
 
 .include <bsd.init.mk>
 
 .PATH:         ${DIST}/elftosb2
 
-.if (${MACHINE} == "evbarm")
+.if (${MACHINE} == "evbarm") && (${MACHINE_ARCH} == "arm")
 PROG_CXX=      elftosb
 SRCS=          BootImageGenerator.cpp \
                ConversionController.cpp \
diff -r d2afc7c5910f -r 3d8b638686e1 external/bsd/elftosb/usr.sbin/sbkeygen/Makefile
--- a/external/bsd/elftosb/usr.sbin/sbkeygen/Makefile   Tue Nov 27 19:24:45 2012 +0000
+++ b/external/bsd/elftosb/usr.sbin/sbkeygen/Makefile   Tue Nov 27 20:00:38 2012 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2012/11/15 19:49:16 jkunz Exp $
+# $NetBSD: Makefile,v 1.2 2012/11/27 20:00:39 jkunz Exp $
 
 .include <bsd.init.mk>
 
 .PATH:         ${DIST}/keygen
 
-.if (${MACHINE} == "evbarm")
+.if (${MACHINE} == "evbarm") && (${MACHINE_ARCH} == "arm")
 PROG_CXX=      sbkeygen
 SRCS=          keygen.cpp
 .endif
diff -r d2afc7c5910f -r 3d8b638686e1 external/bsd/elftosb/usr.sbin/sbtool/Makefile
--- a/external/bsd/elftosb/usr.sbin/sbtool/Makefile     Tue Nov 27 19:24:45 2012 +0000
+++ b/external/bsd/elftosb/usr.sbin/sbtool/Makefile     Tue Nov 27 20:00:38 2012 +0000
@@ -1,10 +1,10 @@
-# $NetBSD: Makefile,v 1.1 2012/11/15 19:49:17 jkunz Exp $
+# $NetBSD: Makefile,v 1.2 2012/11/27 20:00:39 jkunz Exp $
 
 .include <bsd.init.mk>
 
 .PATH:         ${DIST}/sbtool
 
-.if (${MACHINE} == "evbarm")
+.if (${MACHINE} == "evbarm") && (${MACHINE_ARCH} == "arm")
 PROG_CXX=      sbtool
 SRCS=          EncoreBootImageReader.cpp sbtool.cpp
 .endif
diff -r d2afc7c5910f -r 3d8b638686e1 sys/arch/evbarm/stand/Makefile
--- a/sys/arch/evbarm/stand/Makefile    Tue Nov 27 19:24:45 2012 +0000
+++ b/sys/arch/evbarm/stand/Makefile    Tue Nov 27 20:00:38 2012 +0000
@@ -1,7 +1,11 @@
-#      $NetBSD: Makefile,v 1.3 2012/11/20 19:17:03 jkunz Exp $
+#      $NetBSD: Makefile,v 1.4 2012/11/27 20:00:39 jkunz Exp $
 
 SUBDIR+= gzboot
 SUBDIR+= boot2440
+.if ${MACHINE_ARCH} == "arm"
+# According to the i.MX23 Reference Manual section 3.1, Page 3-3:
+# "The i.MX23 always operates in litle-endian mode."
 SUBDIR+= bootimx23
+.endif
 
 .include <bsd.subdir.mk>
diff -r d2afc7c5910f -r 3d8b638686e1 tools/Makefile
--- a/tools/Makefile    Tue Nov 27 19:24:45 2012 +0000
+++ b/tools/Makefile    Tue Nov 27 20:00:38 2012 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.160 2012/11/26 16:57:25 pooka Exp $
+#      $NetBSD: Makefile,v 1.161 2012/11/27 20:00:39 jkunz Exp $
 
 .include <bsd.own.mk>
 
@@ -154,7 +154,7 @@
 SUBDIR+=       hp300-mkboot
 .endif
 
-.if ${MACHINE} == "evbarm"
+.if ${MACHINE} == "evbarm" && ${MACHINE_ARCH} == "arm"
 SUBDIR+=       elftosb
 .endif
 



Home | Main Index | Thread Index | Old Index