summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch')
-rw-r--r--meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch b/meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch
new file mode 100644
index 0000000..2b68eae
--- /dev/null
+++ b/meta/recipes-devtools/cmake/cmake/aarch64-kwsys.patch
@@ -0,0 +1,40 @@
1From: KWSys Robot <kwrobot@kitware.com>
2Date: Fri, 21 Dec 2012 13:29:37 +0000 (-0500)
3Subject: KWSys 2012-12-21 (8ce09af5)
4X-Git-Url: http://cmake.org/gitweb?p=cmake.git;a=commitdiff_plain;h=567e7d94
5
6KWSys 2012-12-21 (8ce09af5)
7
8Extract upstream KWSys using the following shell commands.
9
10$ git archive --prefix=upstream-kwsys/ 8ce09af5 | tar x
11$ git shortlog --no-merges --abbrev=8 --format='%h %s' 933eb822..8ce09af5
12Riku Voipio (1):
13 8ce09af5 CPU: Add Aarch64 support
14
15Change-Id: I4bd0a97abaa0f958e2679afe2d4ad4bcc37434a0
16
17Hand edited by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> to get it applied in OE
18
19Upstream-Status: Backport
20---
21
22diff --git a/CPU.h.in b/CPU.h.in
23index ecd29d1..2e1a584 100644
24--- a/Source/kwsys/CPU.h.in
25+++ b/Source/kwsys/CPU.h.in
26@@ -98,6 +98,14 @@
27 #elif defined(__SYSC_ZARCH__)
28 # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
29
30+/* Aarch64 */
31+#elif defined(__aarch64__)
32+# if !defined(__AARCH64EB__)
33+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_LITTLE
34+# else
35+# define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID @KWSYS_NAMESPACE@_CPU_ENDIAN_ID_BIG
36+# endif
37+
38 /* Unknown CPU */
39 #else
40 # define @KWSYS_NAMESPACE@_CPU_ENDIAN_ID 0