1# 2# Docker s390 cross-compiler target 3# 4# This docker target is based on stretch (testing) as the stable build 5# doesn't have the cross compiler available. 6# 7FROM debian:testing-slim 8 9# Duplicate deb line as deb-src 10RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list 11 12# Add the s390x architecture 13RUN dpkg --add-architecture s390x 14 15# Grab the updated list of packages 16RUN apt update && apt dist-upgrade -yy 17RUN apt install -yy build-essential clang 18RUN apt-get build-dep -yy -a s390x qemu || apt-get -f install 19RUN apt install -yy gcc-multilib-s390x-linux-gnu binutils-multiarch 20 21# Specify the cross prefix for this image (see tests/docker/common.rc) 22ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu- 23