summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Välimaa <wally@mageia.org>2018-03-11 14:59:39 +0200
committerJani Välimaa <wally@mageia.org>2018-03-11 14:59:39 +0200
commitabdc7c5829e4df7100e38ea48fb560c6293a3ea0 (patch)
treea18a23d83c31ef3012e7c9cea2f029363e0fd791
parent9ed273d6a4ec74879278973007e095a0b2b9ae44 (diff)
downloadmultiarch-utils-abdc7c5829e4df7100e38ea48fb560c6293a3ea0.tar
multiarch-utils-abdc7c5829e4df7100e38ea48fb560c6293a3ea0.tar.gz
multiarch-utils-abdc7c5829e4df7100e38ea48fb560c6293a3ea0.tar.bz2
multiarch-utils-abdc7c5829e4df7100e38ea48fb560c6293a3ea0.tar.xz
multiarch-utils-abdc7c5829e4df7100e38ea48fb560c6293a3ea0.zip
Add aarch64 support
-rw-r--r--NEWS2
-rw-r--r--multiarch-dispatch.h14
2 files changed, 16 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index d042235..2fb7f8f 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,5 @@
+- add support for aarch64
+
Version 1.0.13 - 09 January 2011, by Olivier Blin
- fix other multiarch() macros by adding nil
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index f6c2cef..a76fe19 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -19,6 +19,10 @@
#undef arm
#define _multiarch_defined_arm
#endif
+#ifdef aarch64
+#undef aarch64
+#define _multiarch_defined_aarch64
+#endif
/* Undefine some interfering definitions (not built-ins) */
/* We can only redefine value 1, so we let it fail with other values */
@@ -62,6 +66,10 @@
#define _multiarch_defined_armeb
#undef armeb
#endif
+#if aarch64 == 1
+#define _multiarch_defined_aarch64
+#undef aarch64
+#endif
/* Dispatch arch dependent header */
#if defined(__linux__)
@@ -100,6 +108,8 @@
#else
#include _MULTIARCH_MAKE_HEADER(arm,_MULTIARCH_HEADER)
#endif
+#elif defined(__aarch64__)
+#include _MULTIARCH_MAKE_HEADER(aarch64,_MULTIARCH_HEADER)
#else
#error "Unknown architecture, please submit bug report"
#endif
@@ -170,3 +180,7 @@
#undef _multiarch_defined_armeb
#define armeb 1
#endif
+#ifdef _multiarch_defined_aarch64
+#undef _multiarch_defined_aarch64
+#define aarch64 1
+#endif