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