Enables building examples with Android NDK
authorAttila Nagy <attilanagy@google.com>
Thu, 12 Apr 2012 09:50:19 +0000 (12:50 +0300)
committerAttila Nagy <attilanagy@google.com>
Wed, 20 Jun 2012 07:15:24 +0000 (10:15 +0300)
commit5daaa838a62921ad1f5c6e48dc7db180a55fdf3e
treeff0e4c2327fb63b76faa6cdd23ac7bacedb21bc6
parentb178fe7bfb96379d6dda6351b5739378d5c9f4d2
Enables building examples with Android NDK

Soft enable runtime cpu detect for armv7-android target, so that it
can be disabled and remove dependency on 'cpufeatures' lib.
Change the arm_cpu_caps implementation selection such that 'no rtcd' takes
precedence over system type.

Switch to use -mtune instead of -mcpu. NDK was complaining about
-mcpu=cortex-a8 conflicting with -march=armv7-a, not sure why.

Add a linker flag to fix some cortex-a8 bug, as suggested by NDK Dev
Guide.

Examples:
Configure for armv7+neon:

./configure --target=armv7-android-gcc \
            --sdk-path=/path/to/android/ndk \
            --disable-runtime-cpu-detect \
            --enable-realtime-only \
            --disable-unit-tests

...armv7 w/o neon:

./configure --target=armv7-android-gcc \
            --sdk-path=/path/to/android/ndk \
            --disable-runtime-cpu-detect \
            --enable-realtime-only \
            --disable-neon \
            --cpu=cortex-a9 \
            --disable-unit-tests

Change-Id: I37e2c0592745208979deec38f7658378d4bd6cfa
build/make/Android.mk
build/make/configure.sh
vpx_ports/arm_cpudetect.c