Skip to content

Commit

Permalink
Remove android build for aarch64, arm and i686
Browse files Browse the repository at this point in the history
  • Loading branch information
malbarbo committed Apr 11, 2017
1 parent 1f7ebd1 commit f723268
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 34 deletions.
12 changes: 1 addition & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,9 @@ matrix:
CFG_DISABLE_CROSS_TESTS=1
MAKE_TARGETS=test-unit-$TARGET

# android targets
- env: TARGET=i686-linux-android
IMAGE=android
- env: TARGET=arm-linux-androideabi
IMAGE=android
# cross compiled targets
- env: TARGET=armv7-linux-androideabi
IMAGE=android
# Use nightly because of https://github.com/rust-lang/rust/issues/40903
- env: TARGET=i686-linux-android
IMAGE=android
rust: nightly

# cross compiled targets
- env: TARGET=arm-unknown-linux-gnueabi
IMAGE=cross
- env: TARGET=arm-unknown-linux-gnueabihf
Expand Down
2 changes: 1 addition & 1 deletion Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ $(DOC_DIR)/%: $(S)src/doc/%
@mkdir -p $(@D)
cp $< $@

OPENSSL_OS_aarch64-linux-android := linux-generic64
OPENSSL_OS_aarch64-linux-android := linux-aarch64
OPENSSL_OS_aarch64-unknown-linux-gnu := linux-aarch64
OPENSSL_OS_arm-linux-androideabi := android
OPENSSL_OS_arm-unknown-linux-gnueabi := linux-armv4
Expand Down
11 changes: 1 addition & 10 deletions src/ci/docker/android/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,9 @@ RUN apt-get install -y --no-install-recommends \
unzip -q android-ndk-r13b-linux-x86_64.zip && \
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \
--install-dir /android-ndk/arm --arch arm --api 21 && \
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \
--install-dir /android-ndk/arm64 --arch arm64 --api 21 && \
./android-ndk-r13b/build/tools/make_standalone_toolchain.py \
--install-dir /android-ndk/x86 --arch x86 --api 21 && \
rm -rf ./android-ndk-r13b-linux-x86_64.zip ./android-ndk-r13b && \
apt-get purge --auto-remove -y unzip python

ENV PATH=$PATH:/android-ndk/arm/bin
ENV PATH=$PATH:/android-ndk/arm64/bin
ENV PATH=$PATH:/android-ndk/x86/bin

ENV CARGO_TARGET_AARCH64_LINUX_ANDROID_LINKER=aarch64-linux-android-gcc \
CARGO_TARGET_ARM_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \
CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc \
CARGO_TARGET_I686_LINUX_ANDROID_LINKER=i686-linux-android-gcc
ENV CARGO_TARGET_ARMV7_LINUX_ANDROIDEABI_LINKER=arm-linux-androideabi-gcc
14 changes: 2 additions & 12 deletions src/ci/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,19 +49,9 @@ fi

# For some unknown reason libz is not found in the android docker image, so we
# use this workaround
case $TARGET in
arm-linux-androideabi | armv7-linux-androideabi )
if [ "$TARGET" = armv7-linux-androideabi ]; then
export DEP_Z_ROOT=/android-ndk/arm/sysroot/usr
;;

aarch64-linux-android )
export DEP_Z_ROOT=/android-ndk/arm64/sysroot/usr/
;;

i686-linux-android )
export DEP_Z_ROOT=/android-ndk/x86/sysroot/usr/
;;
esac
fi

$SRC/configure \
--prefix=/tmp/obj/install \
Expand Down

0 comments on commit f723268

Please sign in to comment.