[systemd-commits] src/shared
Zbigniew JÄdrzejewski-Szmek
zbyszek at kemper.freedesktop.org
Thu Jul 3 06:04:36 PDT 2014
src/shared/architecture.h | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
New commits:
commit fd3b401e5d3d377f134e77bb3969088130f9f37c
Author: Zbigniew JÄdrzejewski-Szmek <zbyszek at in.waw.pl>
Date: Thu Jul 3 09:03:16 2014 -0400
architecture: add tuples for arm
diff --git a/src/shared/architecture.h b/src/shared/architecture.h
index 0807924..b94adae 100644
--- a/src/shared/architecture.h
+++ b/src/shared/architecture.h
@@ -142,8 +142,13 @@ Architecture uname_architecture(void);
# define native_architecture() ARCHITECTURE_ARM_BE
# error "Missing ARCH_TUPLE for ARM_BE"
# else
-# define native_architecture() ARCHITECTURE_ARM
-# error "Missing ARCH_TUPLE for ARM"
+# if defined(__ARM_PCS_VFP)
+# define native_architecture() ARCHITECTURE_ARM
+# define ARCH_TUPLE "arm-linux-gnueabihf"
+# else
+# define native_architecture() ARCHITECTURE_ARM
+# define ARCH_TUPLE "arm-linux-gnueabi"
+# endif
# endif
#elif defined(__sh64__)
# define native_architecture() ARCHITECTURE_SH64
More information about the systemd-commits
mailing list