From 3b5bc51dd9d6b2059c931e3c1fa76283b4e1a088 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 30 Oct 2013 14:46:42 +0100 Subject: detect ARM architectures Did I get it right? mirror.archlinuxarm.org has repositories for * "armv7h" (version 7 with hard floating point unit) * "armv6h" (version 6 with hard floating point unit) * "arm" (version 6 without hard floating point unit) --- config.def.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.def.h b/config.def.h index 9d2cc6e..6df05cb 100644 --- a/config.def.h +++ b/config.def.h @@ -13,6 +13,14 @@ # define ARCH "x86_64" #elif defined __i386__ # define ARCH "i686" +#elif defined __ARM_ARCH_7__ +# define ARCH "armv7h" +#elif defined __ARM_ARCH_6__ +# if defined __VFP_FP__ +# define ARCH "armv6h" +# else +# define ARCH "armv6l" +# endif #else # error Unknown architecture! #endif -- cgit v1.2.3-70-g09d2