[Android] MIPS: tune for mips32r2
Edward Wang
git at videolan.org
Sun Dec 16 14:42:20 CET 2012
vlc-ports/android | branch: master | Edward Wang <edward.c.wang at compdigitec.com> | Sun Dec 16 08:34:59 2012 -0500| [94dd7d7047719b88be3786339eb716efeda2b0a0] | committer: Edward Wang
MIPS: tune for mips32r2
Although there are no non-MIPS32 R2 devices supported by Android 2.x+ on MIPS as of right now, MIPS32 is the minimum as of 4.2[1]. However, it should be safe to tune for
MIPS32R2.
[1] https://android.googlesource.com/device/generic/mips/+/refs/tags/android-4.2_r1/BoardConfig.mk
> http://git.videolan.org/gitweb.cgi/vlc-ports/android.git/?a=commit;h=94dd7d7047719b88be3786339eb716efeda2b0a0
---
compile.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/compile.sh b/compile.sh
index 049aa0b..01f0de7 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=mips32 -mtune=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
More information about the Android
mailing list