tests/docker: set DEF_TARGET_LIST for some containers
[qemu/ar7.git] / tests / docker / dockerfiles / debian-mips-cross.docker
bloba54efa7253a05d857374b6b845b2d088716d943d
2 # Docker mips cross-compiler target
4 # This docker target builds on the debian Stretch base image.
6 FROM qemu:debian9
8 MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
10 # Add the foreign architecture we want and install dependencies
11 RUN dpkg --add-architecture mips
12 RUN apt update && \
13     DEBIAN_FRONTEND=noninteractive eatmydata \
14     apt install -y --no-install-recommends \
15         gcc-mips-linux-gnu
17 RUN apt update && \
18     DEBIAN_FRONTEND=noninteractive eatmydata \
19     apt build-dep -yy -a mips qemu
21 # Specify the cross prefix for this image (see tests/docker/common.rc)
22 ENV QEMU_CONFIGURE_OPTS --cross-prefix=mips-linux-gnu-
23 ENV DEF_TARGET_LIST mips-softmmu,mipsel-linux-user
25 # Install extra libraries to increase code coverage
26 RUN apt update && \
27     DEBIAN_FRONTEND=noninteractive eatmydata \
28     apt install -y --no-install-recommends \
29         libbz2-dev:mips \
30         liblzo2-dev:mips \
31         librdmacm-dev:mips \
32         libsnappy-dev:mips