summaryrefslogtreecommitdiffstats
path: root/multiarch-dispatch.h
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-24 11:45:37 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-24 11:45:37 +0000
commit9bb5ff20f343fd212c521b47fc84d0099696e7da (patch)
tree4d1b2b1dfd528aafdbf302f6e14065f36d992256 /multiarch-dispatch.h
parent5d1702d2f54b3e60e095555eb978e4de8572b2be (diff)
downloadmultiarch-utils-9bb5ff20f343fd212c521b47fc84d0099696e7da.tar
multiarch-utils-9bb5ff20f343fd212c521b47fc84d0099696e7da.tar.gz
multiarch-utils-9bb5ff20f343fd212c521b47fc84d0099696e7da.tar.bz2
multiarch-utils-9bb5ff20f343fd212c521b47fc84d0099696e7da.tar.xz
multiarch-utils-9bb5ff20f343fd212c521b47fc84d0099696e7da.zip
add armel support (from Arnaud Patard)
Diffstat (limited to 'multiarch-dispatch.h')
-rw-r--r--multiarch-dispatch.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index e253410..51d724a 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -15,6 +15,10 @@
#undef mips
#define _multiarch_defined_mips
#endif
+#ifdef arm
+#undef arm
+#define _multiarch_defined_arm
+#endif
/* Dispatch arch dependent header */
#if defined(__linux__)
@@ -47,6 +51,12 @@
#else
#include _MULTIARCH_MAKE_HEADER(mipsel,_MULTIARCH_HEADER)
#endif
+#elif defined(__arm__)
+#if defined(__BIG_ENDIAN__)
+#include _MULTIARCH_MAKE_HEADER(armeb,_MULTIARCH_HEADER)
+#else
+#include _MULTIARCH_MAKE_HEADER(arm,_MULTIARCH_HEADER)
+#endif
#else
#error "Unknown architecture, please submit bug report"
#endif
@@ -71,3 +81,7 @@
#undef _multiarch_defined_mips
#define mips 1
#endif
+#ifdef _multiarch_defined_arm
+#undef _multiarch_defined_arm
+#define arm 1
+#endif