diff options
Diffstat (limited to 'meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch')
-rw-r--r-- | meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch | 37 |
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 0000000000..b3e38b3585 --- /dev/null +++ b/meta/recipes-devtools/cmake/cmake/aarch64-cmake.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From: Riku Voipio <riku.voipio@linaro.org> | ||
2 | Date: Fri, 21 Dec 2012 11:20:02 +0000 (+0200) | ||
3 | Subject: KWIML: Teach ABI.h about Aarch64 | ||
4 | X-Git-Url: http://cmake.org/gitweb?p=cmake.git;a=commitdiff_plain;h=34916522 | ||
5 | |||
6 | KWIML: Teach ABI.h about Aarch64 | ||
7 | |||
8 | The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian | ||
9 | and __AARCH64EL__ little endian. Only little endian tested, no big | ||
10 | endian toolchain exists yet. | ||
11 | |||
12 | Signed-off-by: Riku Voipio <riku.voipio@linaro.org> | ||
13 | |||
14 | Hand edited by: Marcin Juszkiewicz <marcin.juszkiewicz@linaro.org> to get it applied in OE | ||
15 | |||
16 | Upstream-status: Backport | ||
17 | --- | ||
18 | |||
19 | diff --git a/ABI.h.in b/ABI.h.in | ||
20 | index 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." | ||