Commit 0a74cb33 authored by Geoffrey Métais's avatar Geoffrey Métais

Fix syntax

parent 611e7d5f
...@@ -46,16 +46,16 @@ done ...@@ -46,16 +46,16 @@ done
# FLAGS # # FLAGS #
######### #########
# ARMv5 and ARMv6-nofpu are not really ABIs # ARMv5 and ARMv6-nofpu are not really ABIs
if [ ${ANDROID_ABI} == "armeabi-nofpu" ];then if [ "${ANDROID_ABI}" = "armeabi-nofpu" ];then
NO_FPU=0 NO_FPU=0
ANDROID_ABI="armeabi" ANDROID_ABI="armeabi"
fi fi
if [ ${ANDROID_ABI} == "armeabi-v5" ];then if [ "${ANDROID_ABI}" = "armeabi-v5" ];then
ARMV5=1 ARMV5=1
NO_FPU=0 NO_FPU=0
ANDROID_ABI="armeabi" ANDROID_ABI="armeabi"
fi fi
[ ${ANDROID_ABI} = "armeabi" ] && cat << EOF [ "${ANDROID_ABI}" = "armeabi" ] && cat << EOF
For an ARMv6 device without FPU: For an ARMv6 device without FPU:
$ export ANDROID_ABI="armeabi-nofpu" $ export ANDROID_ABI="armeabi-nofpu"
For an ARMv5 device: For an ARMv5 device:
...@@ -63,25 +63,25 @@ $ export ANDROID_ABI="armeabi-v5" ...@@ -63,25 +63,25 @@ $ export ANDROID_ABI="armeabi-v5"
EOF EOF
# Set up ABI variables # Set up ABI variables
if [ ${ANDROID_ABI} = "x86" ] ; then if [ "${ANDROID_ABI}" = "x86" ] ; then
TARGET_TUPLE="i686-linux-android" TARGET_TUPLE="i686-linux-android"
PATH_HOST="x86" PATH_HOST="x86"
PLATFORM_SHORT_ARCH="x86" PLATFORM_SHORT_ARCH="x86"
elif [ ${ANDROID_ABI} = "x86_64" ] ; then elif [ "${ANDROID_ABI}" = "x86_64" ] ; then
TARGET_TUPLE="x86_64-linux-android" TARGET_TUPLE="x86_64-linux-android"
PATH_HOST="x86_64" PATH_HOST="x86_64"
PLATFORM_SHORT_ARCH="x86_64" PLATFORM_SHORT_ARCH="x86_64"
HAVE_64=1 HAVE_64=1
elif [ ${ANDROID_ABI} = "mips" ] ; then elif [ "${ANDROID_ABI}" = "mips" ] ; then
TARGET_TUPLE="mipsel-linux-android" TARGET_TUPLE="mipsel-linux-android"
PATH_HOST=$TARGET_TUPLE PATH_HOST=$TARGET_TUPLE
PLATFORM_SHORT_ARCH="mips" PLATFORM_SHORT_ARCH="mips"
elif [ ${ANDROID_ABI} = "mips64" ] ; then elif [ "${ANDROID_ABI}" = "mips64" ] ; then
TARGET_TUPLE="mips64el-linux-android" TARGET_TUPLE="mips64el-linux-android"
PATH_HOST=$TARGET_TUPLE PATH_HOST=$TARGET_TUPLE
PLATFORM_SHORT_ARCH="mips64" PLATFORM_SHORT_ARCH="mips64"
HAVE_64=1 HAVE_64=1
elif [ ${ANDROID_ABI} = "arm64-v8a" ] ; then elif [ "${ANDROID_ABI}" = "arm64-v8a" ] ; then
TARGET_TUPLE="aarch64-linux-android" TARGET_TUPLE="aarch64-linux-android"
PATH_HOST=$TARGET_TUPLE PATH_HOST=$TARGET_TUPLE
HAVE_ARM=1 HAVE_ARM=1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment