2017-02-27 15:30:27 +01:00
|
|
|
#
|
|
|
|
# Docker s390 cross-compiler target
|
|
|
|
#
|
2017-07-18 02:31:35 +02:00
|
|
|
# This docker target builds on the debian Stretch base image.
|
2017-02-27 15:30:27 +01:00
|
|
|
#
|
2020-07-01 15:56:29 +02:00
|
|
|
FROM qemu/debian10
|
2017-02-27 15:30:27 +01:00
|
|
|
|
|
|
|
# Add the s390x architecture
|
|
|
|
RUN dpkg --add-architecture s390x
|
|
|
|
|
|
|
|
# Grab the updated list of packages
|
2017-03-06 12:28:48 +01:00
|
|
|
RUN apt update && apt dist-upgrade -yy
|
2019-07-23 16:15:27 +02:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-07-18 02:31:35 +02:00
|
|
|
gcc-multilib-s390x-linux-gnu
|
|
|
|
|
2019-07-23 16:15:27 +02:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
2019-08-15 21:39:16 +02:00
|
|
|
apt build-dep -yy -a s390x --arch-only qemu
|
2017-02-27 15:30:27 +01:00
|
|
|
|
|
|
|
# Specify the cross prefix for this image (see tests/docker/common.rc)
|
|
|
|
ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
|
2019-08-09 15:50:52 +02:00
|
|
|
ENV DEF_TARGET_LIST s390x-softmmu,s390x-linux-user
|
2017-06-02 20:56:19 +02:00
|
|
|
|
2017-07-18 02:31:35 +02:00
|
|
|
# Install extra libraries to increase code coverage
|
2019-07-23 16:15:27 +02:00
|
|
|
RUN apt update && \
|
|
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
|
|
apt install -y --no-install-recommends \
|
2017-06-02 20:56:19 +02:00
|
|
|
libbz2-dev:s390x \
|
|
|
|
liblzo2-dev:s390x \
|
|
|
|
librdmacm-dev:s390x \
|
|
|
|
libsnappy-dev:s390x
|