[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 06/18] tests/docker: introduce debian-riscv64-test-cross
From: |
Alex Bennée |
Subject: |
[PATCH v2 06/18] tests/docker: introduce debian-riscv64-test-cross |
Date: |
Fri, 25 Feb 2022 17:20:09 +0000 |
Cross building QEMU for riscv64 still involves messing about with sid
and ports. However for building tests we can have a slimmer compiler
only container which should be more stable.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20220211160309.335014-6-alex.bennee@linaro.org>
---
.gitlab-ci.d/container-cross.yml | 7 +++++++
tests/docker/Makefile.include | 2 ++
.../dockerfiles/debian-riscv64-test-cross.docker | 12 ++++++++++++
tests/tcg/configure.sh | 2 +-
4 files changed, 22 insertions(+), 1 deletion(-)
create mode 100644 tests/docker/dockerfiles/debian-riscv64-test-cross.docker
diff --git a/.gitlab-ci.d/container-cross.yml b/.gitlab-ci.d/container-cross.yml
index d38f657131..e622ac2d21 100644
--- a/.gitlab-ci.d/container-cross.yml
+++ b/.gitlab-ci.d/container-cross.yml
@@ -131,6 +131,13 @@ riscv64-debian-cross-container:
variables:
NAME: debian-riscv64-cross
+# we can however build TCG tests using a non-sid base
+riscv64-debian-test-cross-container:
+ extends: .container_job_template
+ stage: containers-layer2
+ variables:
+ NAME: debian-riscv64-test-cross
+
s390x-debian-cross-container:
extends: .container_job_template
stage: containers
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index cce9faab36..e495b163a0 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -214,6 +214,7 @@ docker-image-debian-all-test-cross: docker-image-debian10
docker-image-debian-microblaze-cross: docker-image-debian10
docker-image-debian-nios2-cross: docker-image-debian10
docker-image-debian-powerpc-test-cross: docker-image-debian11
+docker-image-debian-riscv64-test-cross: docker-image-debian11
# These images may be good enough for building tests but not for test builds
DOCKER_PARTIAL_IMAGES += debian-alpha-cross
@@ -222,6 +223,7 @@ DOCKER_PARTIAL_IMAGES += debian-hppa-cross
DOCKER_PARTIAL_IMAGES += debian-m68k-cross debian-mips64-cross
DOCKER_PARTIAL_IMAGES += debian-microblaze-cross
DOCKER_PARTIAL_IMAGES += debian-nios2-cross
+DOCKER_PARTIAL_IMAGES += debian-riscv64-test-cross
DOCKER_PARTIAL_IMAGES += debian-sh4-cross debian-sparc64-cross
DOCKER_PARTIAL_IMAGES += debian-tricore-cross
DOCKER_PARTIAL_IMAGES += debian-xtensa-cross
diff --git a/tests/docker/dockerfiles/debian-riscv64-test-cross.docker
b/tests/docker/dockerfiles/debian-riscv64-test-cross.docker
new file mode 100644
index 0000000000..1d90901298
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-riscv64-test-cross.docker
@@ -0,0 +1,12 @@
+#
+# Docker cross-compiler target
+#
+# This docker target builds on the Debian Bullseye base image.
+#
+FROM qemu/debian11
+
+RUN apt update && \
+ DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt install -y --no-install-recommends \
+ gcc-riscv64-linux-gnu \
+ libc6-dev-riscv64-cross
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index adc95d6a44..0663bd19f4 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -180,7 +180,7 @@ for target in $target_list; do
;;
riscv64-*)
container_hosts=x86_64
- container_image=debian-riscv64-cross
+ container_image=debian-riscv64-test-cross
container_cross_cc=riscv64-linux-gnu-gcc
;;
s390x-*)
--
2.30.2
- Re: [PATCH v2 04/18] tests/docker: update debian-arm64-cross with lci-tool, (continued)
- [PATCH v2 01/18] tests/docker: restore TESTS/IMAGES filtering, Alex Bennée, 2022/02/25
- [PATCH v2 10/18] tests/tcg/ppc64: clean-up handling of byte-reverse, Alex Bennée, 2022/02/25
- [PATCH v2 05/18] tests/docker: update debian-s390x-cross with lcitool, Alex Bennée, 2022/02/25
- [PATCH v2 06/18] tests/docker: introduce debian-riscv64-test-cross,
Alex Bennée <=
- [PATCH v2 09/18] gitlab: add a new aarch32 custom runner definition, Alex Bennée, 2022/02/25
- [PATCH v2 07/18] scripts/ci: add build env rules for aarch32 on aarch64, Alex Bennée, 2022/02/25
- [PATCH v2 08/18] scripts/ci: allow for a secondary runner, Alex Bennée, 2022/02/25
- [PATCH v2 03/18] tests/lcitool: update to latest version, Alex Bennée, 2022/02/25