summaryrefslogtreecommitdiffstats
path: root/tests/docker/dockerfiles
diff options
context:
space:
mode:
authorAlex Bennée2020-05-20 16:05:36 +0200
committerAlex Bennée2020-05-27 15:26:49 +0200
commitc729a99d27018b8d619544b18926b234b010b733 (patch)
treee0f82ff5c669c882b66928f998749108a32e745c /tests/docker/dockerfiles
parenttests/docker: add debian11 base image (diff)
downloadqemu-c729a99d27018b8d619544b18926b234b010b733.tar.gz
qemu-c729a99d27018b8d619544b18926b234b010b733.tar.xz
qemu-c729a99d27018b8d619544b18926b234b010b733.zip
tests/docker: use a gcc-10 based image for arm64 tests
As we enable newer features that we want to test on arm64 targets we need newer compilers. Split off a new debian-arm64-test-cross image which we can use to build these new tests. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200520140541.30256-11-alex.bennee@linaro.org>
Diffstat (limited to 'tests/docker/dockerfiles')
-rw-r--r--tests/docker/dockerfiles/debian-arm64-test-cross.docker13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/docker/dockerfiles/debian-arm64-test-cross.docker b/tests/docker/dockerfiles/debian-arm64-test-cross.docker
new file mode 100644
index 0000000000..a44e76d942
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-arm64-test-cross.docker
@@ -0,0 +1,13 @@
+#
+# Docker arm64 cross-compiler target (tests only)
+#
+# This docker target builds on the debian Bullseye base image.
+#
+FROM qemu:debian11
+
+# Add the foreign architecture we want and install dependencies
+RUN dpkg --add-architecture arm64
+RUN apt update && \
+ DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt install -y --no-install-recommends \
+ crossbuild-essential-arm64 gcc-10-aarch64-linux-gnu