forked from pool/cmake
7482c7e752
- cmake-endian.patch: Add support for aarch64. OBS-URL: https://build.opensuse.org/request/show/156876 OBS-URL: https://build.opensuse.org/package/show/devel:tools:building/cmake?expand=0&rev=107
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From 349165223d26f0ffc5ad004b4a05a8a92121ac20 Mon Sep 17 00:00:00 2001
|
|
From: Riku Voipio <riku.voipio@linaro.org>
|
|
Date: Fri, 21 Dec 2012 13:20:02 +0200
|
|
Subject: [PATCH] KWIML: Teach ABI.h about Aarch64
|
|
|
|
The __aarch64__ defines Aarch64, while __AARCH64EB__ defines bigendian
|
|
and __AARCH64EL__ little endian. Only little endian tested, no big
|
|
endian toolchain exists yet.
|
|
|
|
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
|
|
---
|
|
Utilities/KWIML/ABI.h.in | 8 ++++++++
|
|
1 file changed, 8 insertions(+)
|
|
|
|
Index: cmake-2.8.10.2/Utilities/KWIML/ABI.h.in
|
|
===================================================================
|
|
--- cmake-2.8.10.2.orig/Utilities/KWIML/ABI.h.in
|
|
+++ cmake-2.8.10.2/Utilities/KWIML/ABI.h.in
|
|
@@ -414,6 +414,14 @@ suppression macro @KWIML@_ABI_NO_VERIFY
|
|
#elif defined(__SYSC_ZARCH__)
|
|
# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
|
|
|
+/* Aarch64 */
|
|
+#elif defined(__aarch64__)
|
|
+# if !defined(__AARCH64EB__)
|
|
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_LITTLE
|
|
+# else
|
|
+# define @KWIML@_ABI_ENDIAN_ID @KWIML@_ABI_ENDIAN_ID_BIG
|
|
+# endif
|
|
+
|
|
/* Unknown CPU */
|
|
#elif !defined(@KWIML@_ABI_NO_ERROR_ENDIAN)
|
|
# error "Byte order of target CPU unknown."
|