1#
2# Docker x86_64 cross target
3#
4# This docker target is used on non-x86_64 machines which need the
5# x86_64 cross compilers installed.
6#
7FROM qemu/debian10
8MAINTAINER Alex Bennée <alex.bennee@linaro.org>
9
10# Add the foreign architecture we want and install dependencies
11RUN dpkg --add-architecture amd64
12RUN apt update && \
13    DEBIAN_FRONTEND=noninteractive eatmydata \
14    apt install -y --no-install-recommends \
15        crossbuild-essential-amd64
16RUN apt update && \
17    DEBIAN_FRONTEND=noninteractive eatmydata \
18    apt build-dep -yy -a amd64 --arch-only qemu
19
20# Specify the cross prefix for this image (see tests/docker/common.rc)
21ENV QEMU_CONFIGURE_OPTS --cross-prefix=x86_64-linux-gnu-
22ENV DEF_TARGET_LIST x86_64-softmmu,x86_64-linux-user,i386-softmmu,i386-linux-user
23