mirror of
https://git.yoctoproject.org/poky
synced 2026-02-25 19:09:41 +01:00
Add the necessary bits for nios2 support into cmake. (From OE-Core rev: f6217be489d03cd72655f9457d4e7e21a097a9a7) Signed-off-by: Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Richard Purdie <richard.purdie@linuxfoundation.org> Cc: Ross Burton <ross.burton@intel.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
51 lines
1.7 KiB
Diff
51 lines
1.7 KiB
Diff
From 3f8c3d3011ea192da2c761560b615f55763715ef Mon Sep 17 00:00:00 2001
|
|
From: Marek Vasut <marex@denx.de>
|
|
Date: Thu, 26 Nov 2015 21:31:04 +0100
|
|
Subject: [PATCH] Add NIOS2 CPU support
|
|
|
|
Add necessary bits to support the NIOS2 little-endian CPU.
|
|
|
|
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>
|
|
Upstream-Status: Submitted
|
|
---
|
|
Source/kwsys/CPU.h.in | 4 ++++
|
|
Utilities/KWIML/ABI.h.in | 4 ++++
|
|
2 files changed, 8 insertions(+)
|
|
|
|
diff --git a/Source/kwsys/CPU.h.in b/Source/kwsys/CPU.h.in
|
|
index 884d71a..66ffbb1 100644
|
|
--- a/Source/kwsys/CPU.h.in
|
|
+++ b/Source/kwsys/CPU.h.in
|
|
@@ -88,6 +88,10 @@
|
|
#elif defined(__mips) || defined(__mips__) || defined(__MIPS__)
|
|
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
|
|
|
+/* NIOS2 */
|
|
+#elif defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__)
|
|
+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE
|
|
+
|
|
/* OpenRISC 1000 */
|
|
#elif defined(__or1k__)
|
|
# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
|
|
diff --git a/Utilities/KWIML/ABI.h.in b/Utilities/KWIML/ABI.h.in
|
|
index 6300ada..87b6e96 100644
|
|
--- a/Utilities/KWIML/ABI.h.in
|
|
+++ b/Utilities/KWIML/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
|
|
--
|
|
2.6.2
|
|
|