summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch')
-rw-r--r--meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch b/meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch
new file mode 100644
index 0000000..3e26d58
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch
@@ -0,0 +1,37 @@
1From: Riku Voipio <riku.voipio@linaro.org>
2Date: Fri, 21 Dec 2012 11:20:02 +0000 (+0200)
3Subject: KWIML: Teach ABI.h about Aarch64
4X-Git-Url: http://cmake.org/gitweb?p=cmake.git;a=commitdiff_plain;h=34916522
5
6KWIML: Teach ABI.h about Aarch64
7
8The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian
9and __AARCH64EL__ little endian. Only little endian tested, no big
10endian toolchain exists yet.
11
12Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
13
14Hand edited by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> to get it applied in OE
15
16Upstream-Status: Backport
17---
18
19diff --git a/ABI.h.in b/ABI.h.in
20index f93ddba..7f4772a 100644
21--- a/Utilities/KWIML/ABI.h.in
22+++ b/Utilities/KWIML/ABI.h.in
23@@ -418,6 +418,14 @@ suppression macro @KWIML@_ABI_NO_VERIFY was defined.
24 #elif defined(__vax__)
25 # define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
26
27+/* Aarch64 */
28+#elif defined(__aarch64__)
29+# if !defined(__AARCH64EB__)
30+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
31+# else
32+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
33+# endif
34+
35 /* Unknown CPU */
36 #elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
37 # error "Byte order of target CPU unknown."