[Android] [PATCH] MIPS: compile for mips32r2.

Konstantin Pavlov thresh at videolan.org
Sun Dec 16 11:50:36 CET 2012


There are no non-MIPS32 R2 devices supported by Android 2.x+ on MIPS.

---
 compile.sh |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compile.sh b/compile.sh
index 049aa0b..bde10a9 100755
--- a/compile.sh
+++ b/compile.sh
@@ -136,7 +136,7 @@ elif [ ${ANDROID_ABI} = "armeabi" ] ; then
 elif [ ${ANDROID_ABI} = "x86" ] ; then
     EXTRA_CFLAGS="-march=pentium -ffunction-sections -funwind-tables -frtti -fno-exceptions"
 elif [ ${ANDROID_ABI} = "mips" ] ; then
-    EXTRA_CFLAGS="-march=mips32 -mhard-float"
+    EXTRA_CFLAGS="-march=mips32r2 -mhard-float"
     # All MIPS Linux kernels since 2.4.4 will trap any unimplemented FPU
     # instruction and emulate it, so we select -mhard-float.
     # See http://www.linux-mips.org/wiki/Floating_point#The_Linux_kernel_and_floating_point
-- 
1.7.10.4



More information about the Android mailing list