summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-07-03 15:59:32 +0200
committerLennart Poettering <lennart@poettering.net>2014-07-03 15:59:32 +0200
commit579af51964e21201d11b9d5bd371e2de0da8d0c3 (patch)
tree76c3791fb686888033131e8df5483872691403f5 /src
parent2a9899d862ec00ad2287e3bc97194054a8c9c479 (diff)
architecture: also add tuples for old ARM BE ABI
Diffstat (limited to 'src')
-rw-r--r--src/shared/architecture.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index a014ad6c1d..4821d5d289 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -23,7 +23,10 @@
#include "util.h"
-/* A cleaned up architecture definition */
+/* A cleaned up architecture definition. We don't want to get lost in
+ * processor features, models, generations or even ABIs. Hence we
+ * focus on general family, and distuignish word width and
+ * endianess. */
typedef enum Architecture {
ARCHITECTURE_X86 = 0,
@@ -143,10 +146,14 @@ Architecture uname_architecture(void);
#elif defined(__arm__)
# if defined(WORDS_BIGENDIAN)
# define native_architecture() ARCHITECTURE_ARM_BE
-# if defined(__ARM_PCS_VFP)
-# define LIB_ARCH_TUPLE "armeb-linux-gnueabihf"
+# if defined(__ARM_EABI__)
+# if defined(__ARM_PCS_VFP)
+# define LIB_ARCH_TUPLE "armeb-linux-gnueabihf"
+# else
+# define LIB_ARCH_TUPLE "armeb-linux-gnueabi"
+# endif
# else
-# define LIB_ARCH_TUPLE "armeb-linux-gnueabi"
+# define LIB_ARCH_TUPLE "armeb-linux-gnu"
# endif
# else
# define native_architecture() ARCHITECTURE_ARM