8ba1e5f72b
It's a silly little limitation on Shippable that is looks for clang in the container even though we won't use it. The arm/aarch64 cross builds inherit this from debian.docker but as we needed to use debian-testing for this we add it here. We also collapse the update step into one RUN line to remove and intermediate layer of the docker build. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-Id: <20170306112848.659-1-alex.bennee@linaro.org> Signed-off-by: Fam Zheng <famz@redhat.com>
23 lines
734 B
Docker
23 lines
734 B
Docker
#
|
|
# Docker s390 cross-compiler target
|
|
#
|
|
# This docker target is based on stretch (testing) as the stable build
|
|
# doesn't have the cross compiler available.
|
|
#
|
|
FROM debian:testing-slim
|
|
|
|
# Duplicate deb line as deb-src
|
|
RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list
|
|
|
|
# Add the s390x architecture
|
|
RUN dpkg --add-architecture s390x
|
|
|
|
# Grab the updated list of packages
|
|
RUN apt update && apt dist-upgrade -yy
|
|
RUN apt install -yy build-essential clang
|
|
RUN apt-get build-dep -yy -a s390x qemu || apt-get -f install
|
|
RUN apt install -yy gcc-multilib-s390x-linux-gnu binutils-multiarch
|
|
|
|
# Specify the cross prefix for this image (see tests/docker/common.rc)
|
|
ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
|