diff options
author | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 18:14:46 -0500 |
---|---|---|
committer | Stewart Smith <stewart@linux.ibm.com> | 2018-05-09 18:15:41 -0500 |
commit | 724af6657e91573ec062adae2449f88edc4a1d19 (patch) | |
tree | ed49b4c1a9cc2eb0641d21f86202675774d2934f /opal-ci | |
parent | 04a50cf041c9af2ecdef94f85c7cc419739ca261 (diff) | |
download | skiboot-724af6657e91573ec062adae2449f88edc4a1d19.zip skiboot-724af6657e91573ec062adae2449f88edc4a1d19.tar.gz skiboot-724af6657e91573ec062adae2449f88edc4a1d19.tar.bz2 |
travis: Require Ubuntu 18.04 to pass, fix on ppc64le
Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'opal-ci')
-rw-r--r-- | opal-ci/Dockerfile-ubuntu-18.04 | 3 | ||||
-rwxr-xr-x | opal-ci/build-ubuntu-18.04.sh | 13 |
2 files changed, 10 insertions, 6 deletions
diff --git a/opal-ci/Dockerfile-ubuntu-18.04 b/opal-ci/Dockerfile-ubuntu-18.04 index 4c272d3..6e86094 100644 --- a/opal-ci/Dockerfile-ubuntu-18.04 +++ b/opal-ci/Dockerfile-ubuntu-18.04 @@ -1,7 +1,8 @@ FROM ubuntu:18.04 ENV DEBIAN_FRONTEND noninteractive RUN if [ `arch` != "ppc64le" ]; then apt-get update -qq && apt-get install -y gcc-powerpc64le-linux-gnu; fi -RUN apt-get update -qq && apt-get install -y gcc ccache expect libssl-dev wget curl xterm device-tree-compiler build-essential gcc python g++ pkg-config libz-dev libglib2.0-dev libpixman-1-dev libfdt-dev git libstdc++6 valgrind libtcl8.6 gcc-arm-linux-gnueabi clang qemu-system-ppc +RUN apt-get update -qq && apt-get install -y gcc-arm-linux-gnueabi || true +RUN apt-get update -qq && apt-get install -y gcc ccache expect libssl-dev wget curl xterm device-tree-compiler build-essential gcc python g++ pkg-config libz-dev libglib2.0-dev libpixman-1-dev libfdt-dev git libstdc++6 valgrind libtcl8.6 clang qemu-system-ppc RUN if [ `arch` = "x86_64" ]; then curl -L -O http://public.dhe.ibm.com/software/server/powerfuncsim/p8/packages/v1.0-2/systemsim-p8_1.0-2_amd64.deb; dpkg -i systemsim-p8_1.0-2_amd64.deb; fi RUN if [ `arch` = "x86_64" ]; then curl -O http://public.dhe.ibm.com/software/server/powerfuncsim/p9/packages/v1.1-0/systemsim-p9-1.1-0-trusty_amd64.deb; dpkg -i systemsim-p9-1.1-0-trusty_amd64.deb; fi COPY . /build/ diff --git a/opal-ci/build-ubuntu-18.04.sh b/opal-ci/build-ubuntu-18.04.sh index dc83550..7bcd2d5 100755 --- a/opal-ci/build-ubuntu-18.04.sh +++ b/opal-ci/build-ubuntu-18.04.sh @@ -12,11 +12,14 @@ make -j${MAKE_J} all ./opal-ci/fetch-debian-jessie-installer.sh make -j${MAKE_J} check (make clean; cd external/gard && CROSS= make -j${MAKE_J}) -( cd external/pflash; - echo "Building for ARM..." - make clean && make distclean - CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; } -) +# because some ppc64le versions don't have arm cross compiler +if which arm-linux-gnueabi-gcc; then + ( cd external/pflash; + echo "Building for ARM..." + make clean && make distclean + CROSS_COMPILE=arm-linux-gnueabi- make || { echo "ARM build failed"; exit 1; } + ) +fi (cd external/pflash; make clean && make distclean && make) make clean SKIBOOT_GCOV=1 make -j${MAKE_J} |