aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2016-10-07 19:27:07 -0400
committerJack Lloyd <[email protected]>2016-10-07 19:27:07 -0400
commit62cd6e3651711f759f870460599596ff5be904a5 (patch)
treee13ac8e15fd8c7e28ad4b7d3d52fe65a59c06e70
parent896e175afc58d23d361a30d082bb8e63e29bc326 (diff)
parent787fa1cbf3d8f7fb72430497146808687859a8a0 (diff)
Merge GH #654 Fix PPC64le Travis CI build
-rw-r--r--.travis.yml2
-rwxr-xr-xsrc/scripts/ci/travis/build.sh9
-rwxr-xr-xsrc/scripts/ci/travis/install.sh24
3 files changed, 20 insertions, 15 deletions
diff --git a/.travis.yml b/.travis.yml
index a2ccb3a64..7591299a1 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -43,8 +43,6 @@ matrix:
- os: linux
env: BUILD_MODE="cross-ppc32"
- os: linux
- env: BUILD_MODE="cross-ppc64"
- - os: linux
env: BUILD_MODE="cross-win32"
exclude:
diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh
index ec84499ce..6825fbdfc 100755
--- a/src/scripts/ci/travis/build.sh
+++ b/src/scripts/ci/travis/build.sh
@@ -61,9 +61,9 @@ if [ "$TRAVIS_OS_NAME" = "osx" ] && [ "${BUILD_MODE:0:5}" != "cross" ]; then
fi
if [ "${BUILD_MODE:0:6}" = "cross-" ]; then
- CFG_FLAGS+=(--disable-shared)
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
+ CFG_FLAGS+=(--disable-shared)
MAKE_PREFIX="xcrun --sdk iphoneos"
if [ "$BUILD_MODE" = "cross-arm32" ]; then
CFG_FLAGS+=(--cpu=armv7 --cc-abi-flags="-arch armv7 -arch armv7s -stdlib=libc++")
@@ -71,7 +71,6 @@ if [ "${BUILD_MODE:0:6}" = "cross-" ]; then
CFG_FLAGS+=(--cpu=armv8-a --cc-abi-flags="-arch arm64 -stdlib=libc++")
fi
elif [ "$TRAVIS_OS_NAME" = "linux" ]; then
- CFG_FLAGS+=(--cc-abi-flags="-static-libstdc++")
if [ "$BUILD_MODE" = "cross-arm32" ]; then
CC_BIN=arm-linux-gnueabihf-g++-4.8
@@ -90,13 +89,13 @@ if [ "${BUILD_MODE:0:6}" = "cross-" ]; then
CFG_FLAGS+=(--module-policy=modern --enable-modules=tls)
elif [ "$BUILD_MODE" = "cross-ppc64" ]; then
CC_BIN=powerpc64le-linux-gnu-g++-4.8
- TEST_PREFIX="qemu-ppc64 -L /usr/powerpc64le-linux-gnu/"
- CFG_FLAGS+=(--cpu=ppc64)
+ TEST_PREFIX="qemu-ppc64le -L /usr/powerpc64le-linux-gnu/"
+ CFG_FLAGS+=(--cpu=ppc64 --with-endian=little)
CFG_FLAGS+=(--module-policy=modern --enable-modules=tls)
elif [ "$BUILD_MODE" = "cross-win32" ]; then
CC_BIN=i686-w64-mingw32-g++
# No test prefix needed, PE executes as usual with Wine installed
- CFG_FLAGS+=(--cpu=x86_32 --os=mingw --cc-abi-flags="-static")
+ CFG_FLAGS+=(--cpu=x86_32 --os=mingw --cc-abi-flags="-static" --disable-shared)
TEST_EXE=./botan-test.exe
fi
fi
diff --git a/src/scripts/ci/travis/install.sh b/src/scripts/ci/travis/install.sh
index 987438127..9459e448d 100755
--- a/src/scripts/ci/travis/install.sh
+++ b/src/scripts/ci/travis/install.sh
@@ -24,14 +24,6 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
if [ "$BUILD_MODE" = "valgrind" ]; then
sudo apt-get install valgrind
- elif [ "$BUILD_MODE" = "cross-arm32" ]; then
- sudo apt-get install g++-4.8-arm-linux-gnueabihf libc6-dev-armhf-cross qemu-user
- elif [ "$BUILD_MODE" = "cross-arm64" ]; then
- sudo apt-get install g++-4.8-aarch64-linux-gnu libc6-dev-arm64-cross qemu-user
- elif [ "$BUILD_MODE" = "cross-ppc32" ]; then
- sudo apt-get install g++-4.8-powerpc-linux-gnu libc6-dev-powerpc-cross qemu-user
- elif [ "$BUILD_MODE" = "cross-ppc64" ]; then
- sudo apt-get install g++-4.8-powerpc64le-linux-gnu libc6-dev-ppc64el-cross qemu-user
elif [ "$BUILD_MODE" = "cross-win32" ]; then
sudo apt-get install g++-mingw-w64-i686 mingw-w64-i686-dev
@@ -39,6 +31,22 @@ if [ "$TRAVIS_OS_NAME" = "linux" ]; then
sudo dpkg --add-architecture i386
sudo apt-get -qq update # have to update again due to adding i386 above
sudo apt-get install wine
+ else
+
+ # Need updated qemu
+ sudo add-apt-repository -y ppa:ubuntu-cloud-archive/kilo-staging
+ sudo apt-get -qq update
+ sudo apt-get install qemu
+
+ if [ "$BUILD_MODE" = "cross-arm32" ]; then
+ sudo apt-get install g++-4.8-arm-linux-gnueabihf libc6-dev-armhf-cross
+ elif [ "$BUILD_MODE" = "cross-arm64" ]; then
+ sudo apt-get install g++-4.8-aarch64-linux-gnu libc6-dev-arm64-cross
+ elif [ "$BUILD_MODE" = "cross-ppc32" ]; then
+ sudo apt-get install g++-4.8-powerpc-linux-gnu libc6-dev-powerpc-cross
+ elif [ "$BUILD_MODE" = "cross-ppc64" ]; then
+ sudo apt-get install g++-4.8-powerpc64le-linux-gnu libc6-dev-ppc64el-cross
+ fi
fi
fi
fi