diff options
author | Marek Vasut <marex@denx.de> | 2015-11-26 21:43:05 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-12-09 08:48:26 +0000 |
commit | b4f6950451a133284fd0d754dfdb280b3f8daec6 (patch) | |
tree | cce0382d55a3a1f5179892a1f77a0a2f4680857c /meta | |
parent | 27b9f041df92fd8438962c2104a7a5d9dff77ce5 (diff) | |
download | poky-b4f6950451a133284fd0d754dfdb280b3f8daec6.tar.gz |
cmake: Add nios2 support
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>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake.inc | 1 | ||||
-rw-r--r-- | meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake.inc b/meta/recipes-devtools/cmake/cmake.inc index a14ce350fc..41be256434 100644 --- a/meta/recipes-devtools/cmake/cmake.inc +++ b/meta/recipes-devtools/cmake/cmake.inc | |||
@@ -14,6 +14,7 @@ CMAKE_MAJOR_VERSION = "${@'.'.join(d.getVar('PV',1).split('.')[0:2])}" | |||
14 | SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ | 14 | SRC_URI = "https://cmake.org/files/v${CMAKE_MAJOR_VERSION}/cmake-${PV}.tar.gz \ |
15 | file://support-oe-qt4-tools-names.patch \ | 15 | file://support-oe-qt4-tools-names.patch \ |
16 | file://qt4-fail-silent.patch \ | 16 | file://qt4-fail-silent.patch \ |
17 | file://0001-Add-NIOS2-CPU-support.patch \ | ||
17 | " | 18 | " |
18 | 19 | ||
19 | SRC_URI[md5sum] = "5febbd11bcaac854a27eebaf4a124be2" | 20 | SRC_URI[md5sum] = "5febbd11bcaac854a27eebaf4a124be2" |
diff --git a/meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch b/meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch new file mode 100644 index 0000000000..6e0ab9fb75 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake/0001-Add-NIOS2-CPU-support.patch | |||
@@ -0,0 +1,50 @@ | |||
1 | From 3f8c3d3011ea192da2c761560b615f55763715ef Mon Sep 17 00:00:00 2001 | ||
2 | From: Marek Vasut <marex@denx.de> | ||
3 | Date: Thu, 26 Nov 2015 21:31:04 +0100 | ||
4 | Subject: [PATCH] Add NIOS2 CPU support | ||
5 | |||
6 | Add necessary bits to support the NIOS2 little-endian CPU. | ||
7 | |||
8 | Signed-off-by: Marek Vasut <marex@denx.de> | ||
9 | Cc: Ley Foon Tan <lftan@altera.com> | ||
10 | Cc: Thomas Chou <thomas@wytron.com.tw> | ||
11 | Cc: Walter Goossens <waltergoossens@home.nl> | ||
12 | Upstream-Status: Submitted | ||
13 | --- | ||
14 | Source/kwsys/CPU.h.in | 4 ++++ | ||
15 | Utilities/KWIML/ABI.h.in | 4 ++++ | ||
16 | 2 files changed, 8 insertions(+) | ||
17 | |||
18 | diff --git a/Source/kwsys/CPU.h.in b/Source/kwsys/CPU.h.in | ||
19 | index 884d71a..66ffbb1 100644 | ||
20 | --- a/Source/kwsys/CPU.h.in | ||
21 | +++ b/Source/kwsys/CPU.h.in | ||
22 | @@ -88,6 +88,10 @@ | ||
23 | #elif defined(__mips) || defined(__mips__) || defined(__MIPS__) | ||
24 | # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG | ||
25 | |||
26 | +/* NIOS2 */ | ||
27 | +#elif defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__) | ||
28 | +# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE | ||
29 | + | ||
30 | /* OpenRISC 1000 */ | ||
31 | #elif defined(__or1k__) | ||
32 | # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG | ||
33 | diff --git a/Utilities/KWIML/ABI.h.in b/Utilities/KWIML/ABI.h.in | ||
34 | index 6300ada..87b6e96 100644 | ||
35 | --- a/Utilities/KWIML/ABI.h.in | ||
36 | +++ b/Utilities/KWIML/ABI.h.in | ||
37 | @@ -398,6 +398,10 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined. | ||
38 | #elif defined(__mips) || defined(__mips__) || defined(__MIPS__) | ||
39 | # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG | ||
40 | |||
41 | +/* NIOS2 */ | ||
42 | +#elif defined(__NIOS2__) || defined(__NIOS2) || defined(__nios2__) | ||
43 | +# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE | ||
44 | + | ||
45 | /* OpenRISC 1000 */ | ||
46 | #elif defined(__or1k__) | ||
47 | # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG | ||
48 | -- | ||
49 | 2.6.2 | ||
50 | |||