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