summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Vasut <marex@denx.de>2015-11-26 20:48:00 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-30 15:17:11 (GMT)
commiteec87ec8a77550af5b39b95bead1d4be6a802637 (patch)
tree7310da64d2fa5e5a42b1301f4d7aa0c0bd2c3c21
parentded79a976e2b63bbfd7a63f27ec00bd071410e27 (diff)
downloadCMake-eec87ec8a77550af5b39b95bead1d4be6a802637.zip
CMake-eec87ec8a77550af5b39b95bead1d4be6a802637.tar.gz
CMake-eec87ec8a77550af5b39b95bead1d4be6a802637.tar.bz2
KWIML: Teach ABI.h that NIOS2 CPU is little-endian
Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl>
-rw-r--r--ABI.h.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/ABI.h.in b/ABI.h.in
index 6300ada..87b6e96 100644
--- a/ABI.h.in
+++ b/ABI.h.in
@@ -398,6 +398,10 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
+/* NIOS2 */
+#elif defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__)
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
+
/* OpenRISC 1000 */
#elif defined(__or1k__)
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG