diff options
author | Christian Hesse <mail@eworm.de> | 2013-10-30 14:46:42 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2013-10-30 14:46:42 +0100 |
commit | 3b5bc51dd9d6b2059c931e3c1fa76283b4e1a088 (patch) | |
tree | fad9ff0a9778bf3895e24f3273653ddd7f820f0b | |
parent | 826b6004a06534deb7e9ee3c26e9eec2d96731fc (diff) | |
download | pacredir-3b5bc51dd9d6b2059c931e3c1fa76283b4e1a088.tar.gz pacredir-3b5bc51dd9d6b2059c931e3c1fa76283b4e1a088.tar.zst |
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)
-rw-r--r-- | config.def.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 |