aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/avd/util.c2
-rw-r--r--android/config/target-mips/config.h5
-rw-r--r--android/main.c3
3 files changed, 10 insertions, 0 deletions
diff --git a/android/avd/util.c b/android/avd/util.c
index a174ee3..cc51e0f 100644
--- a/android/avd/util.c
+++ b/android/avd/util.c
@@ -254,6 +254,8 @@ path_getBuildTargetArch( const char* androidOut )
result = "arm";
else if (!strcmp("armeabi-v7a", cpuAbi))
result = "arm";
+ else if (!strncmp("mips", cpuAbi, 4))
+ result = "mips";
else
result = cpuAbi;
diff --git a/android/config/target-mips/config.h b/android/config/target-mips/config.h
new file mode 100644
index 0000000..4002cdc
--- /dev/null
+++ b/android/config/target-mips/config.h
@@ -0,0 +1,5 @@
+/* MIPS-specific configuration */
+#include "android/config/config.h"
+
+#define TARGET_MIPS 1
+#define CONFIG_SOFTFLOAT 1
diff --git a/android/main.c b/android/main.c
index d9d2274..4178a6b 100644
--- a/android/main.c
+++ b/android/main.c
@@ -407,6 +407,9 @@ int main(int argc, char **argv)
#elif defined(TARGET_I386)
free(android_hw->hw_cpu_arch);
android_hw->hw_cpu_arch = ASTRDUP("x86");
+#elif defined(TARGET_MIPS)
+ free(android_hw->hw_cpu_arch);
+ android_hw->hw_cpu_arch = ASTRDUP("mips");
#endif
}