Skip to contentSkip to conversation

cmake: Add nios2 support

PATCH In review Marek Vasut 2 participants 2 messages Nov 26, 2015 – Dec 1, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cmake: Add nios2 support

Add the necessary bits for nios2 support into cmake.

Cc Ley Foon Tan <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
Cc Thomas Chou <[email protected]>
Cc Walter Goossens <[email protected]>
---
 meta/recipes-devtools/cmake/cmake.inc              |  1 +
 .../cmake/cmake/0001-Add-NIOS2-CPU-support.patch   | 50 ++++++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch
meta/recipes-devtools/cmake/cmake.inc +1 -0
index 57e93ac..f43327e 100644
@@ -14,6 +14,7 @@ CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}"
 SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
            file://support-oe-qt4-tools-names.patch \
            file://qt4-fail-silent.patch \
+           file://0001-Add-NIOS2-CPU-support.patch \
            "
 
 SRC_URI[md5sum] = "52638576f4e1e621fed6c3410d3a1b12"
meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch new file +50 -0

50 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw
Quoted 4 lines · Marek Vasut

Add the necessary bits for nios2 support into cmake.

This is ok.

Quoted 89 lines
Cc Ley Foon Tan <[email protected]>
Cc Richard Purdie <[email protected]>
Cc Ross Burton <[email protected]>
Cc Thomas Chou <[email protected]>
Cc Walter Goossens <[email protected]>

---
meta/recipes-devtools/cmake/cmake.inc | 1 +
.../cmake/cmake/0001-Add-NIOS2-CPU-support.patch | 50 ++++++++++++++++++++++

2 files changed, 51 insertions(+)

create mode 100644 meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch

meta/recipes-devtools/cmake/cmake.inc +1 -0
index 57e93ac..f43327e 100644
@@ -14,6 +14,7 @@ CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}"
 SRC_URI = "http://www.cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \
           file://support-oe-qt4-tools-names.patch \
           file://qt4-fail-silent.patch \
+           file://0001-Add-NIOS2-CPU-support.patch \
           "
 

SRC_URI[md5sum] = "52638576f4e1e621fed6c3410d3a1b12"

meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch new file +50 -1
new file mode 100644
index 0000000..6e0ab9f
@@ -0,0 +1,50 @@
+From 3f8c3d3011ea192da2c761560b615f55763715ef Mon Sep 17 00:00:00 2001
+From: Marek Vasut <[email protected]>
+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 <[email protected]>
+Cc: Ley Foon Tan <[email protected]>
+Cc: Thomas Chou <[email protected]>
+Cc: Walter Goossens <[email protected]>
+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
+
--

2.1.4

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core