Don't build arm and armv7 android targets in the same directory
This commit is contained in:
parent
046df856fa
commit
0022a42f5a
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
export CFLAGS="-Os -mthumb -marm -march=armv6"
|
||||
TARGET_ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
||||
export TARGET_ARCH=armv6
|
||||
export CFLAGS="-Os -mthumb -marm -march=${TARGET_ARCH}"
|
||||
ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
export CFLAGS="-Os -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=armv7-a"
|
||||
TARGET_ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
||||
export TARGET_ARCH=armv7-a
|
||||
export CFLAGS="-Os -mfloat-abi=softfp -mfpu=vfpv3-d16 -mthumb -marm -march=${TARGET_ARCH}"
|
||||
ARCH=arm HOST_COMPILER=arm-linux-androideabi "$(dirname "$0")/android-build.sh"
|
||||
|
@ -11,7 +11,7 @@ if [ ! -f ./configure ]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ "x$TARGET_ARCH" = 'x' ] || [ "x$HOST_COMPILER" = 'x' ]; then
|
||||
if [ "x$TARGET_ARCH" = 'x' ] || [ "x$ARCH" = 'x' ] || [ "x$HOST_COMPILER" = 'x' ]; then
|
||||
echo "You shouldn't use android-build.sh directly, use android-[arch].sh instead"
|
||||
exit 1
|
||||
fi
|
||||
@ -26,7 +26,7 @@ export PATH="${PATH}:${TOOLCHAIN_DIR}/bin"
|
||||
rm -rf "${TOOLCHAIN_DIR}" "${PREFIX}"
|
||||
|
||||
bash $MAKE_TOOLCHAIN --platform="${NDK_PLATFORM:-android-14}" \
|
||||
--arch="$TARGET_ARCH" \
|
||||
--arch="$ARCH" \
|
||||
--install-dir="$TOOLCHAIN_DIR" && \
|
||||
./configure --host="${HOST_COMPILER}" \
|
||||
--with-sysroot="${TOOLCHAIN_DIR}/sysroot" \
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
export CFLAGS="-Os"
|
||||
TARGET_ARCH=mips HOST_COMPILER=mipsel-linux-android "$(dirname "$0")/android-build.sh"
|
||||
export TARGET_ARCH=mipsel
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
ARCH=mips HOST_COMPILER=mipsel-linux-android "$(dirname "$0")/android-build.sh"
|
||||
|
@ -1,3 +1,4 @@
|
||||
#!/bin/sh
|
||||
export CFLAGS="-Os"
|
||||
TARGET_ARCH=x86 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh"
|
||||
export TARGET_ARCH=i686
|
||||
export CFLAGS="-Os -march=${TARGET_ARCH}"
|
||||
ARCH=x86 HOST_COMPILER=i686-linux-android "$(dirname "$0")/android-build.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user