[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 38/49] tests/tcg: enable building for RISCV64
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v6 38/49] tests/tcg: enable building for RISCV64 |
Date: |
Fri, 8 Jun 2018 13:32:56 +0100 |
As before, using Debian SID compilers.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Tested-by: Philippe Mathieu-Daudé <address@hidden>
---
tests/docker/Makefile.include | 1 +
tests/docker/dockerfiles/debian-riscv64-cross.docker | 12 ++++++++++++
tests/tcg/riscv/Makefile.include | 10 ++++++++++
3 files changed, 23 insertions(+)
create mode 100644 tests/docker/dockerfiles/debian-riscv64-cross.docker
create mode 100644 tests/tcg/riscv/Makefile.include
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 654c769f9a..10f98916f9 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -75,6 +75,7 @@ docker-image-debian-m68k-cross: docker-image-debian-sid
docker-image-debian-sh4-cross: docker-image-debian-sid
docker-image-debian-sparc64-cross: docker-image-debian-sid
docker-image-debian-mips64-cross: docker-image-debian-sid
+docker-image-debian-riscv64-cross: docker-image-debian-sid
docker-image-travis: NOUSER=1
# Specialist build images, sometimes very limited tools
diff --git a/tests/docker/dockerfiles/debian-riscv64-cross.docker
b/tests/docker/dockerfiles/debian-riscv64-cross.docker
new file mode 100644
index 0000000000..2b2e64cee6
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-riscv64-cross.docker
@@ -0,0 +1,12 @@
+#
+# Docker cross-compiler target
+#
+# This docker target builds on the debian sid base image which
+# contains cross compilers for Debian "ports" targets.
+#
+FROM qemu:debian-sid
+
+RUN DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt-get install -y --no-install-recommends \
+ gcc-riscv64-linux-gnu \
+ libc6-dev-riscv64-cross
diff --git a/tests/tcg/riscv/Makefile.include b/tests/tcg/riscv/Makefile.include
new file mode 100644
index 0000000000..d92ac6c89f
--- /dev/null
+++ b/tests/tcg/riscv/Makefile.include
@@ -0,0 +1,10 @@
+#
+# Makefile.include for all RISCV targets
+#
+# Debian only really cares about 64 bit going forward
+#
+
+ifeq ($(TARGET_NAME),riscv64)
+DOCKER_IMAGE=debian-riscv64-cross
+DOCKER_CROSS_COMPILER=riscv64-linux-gnu-gcc
+endif
--
2.17.1
- [Qemu-devel] [PATCH v6 05/49] docker: Add "cc" subcommand, (continued)
- [Qemu-devel] [PATCH v6 05/49] docker: Add "cc" subcommand, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 08/49] docker: Makefile.include introduce DOCKER_SCRIPT, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 03/49] configure: allow user to specify --cross-cc-cflags-foo=, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 06/49] docker: extend "cc" command to accept compiler, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 11/49] tests/tcg/multiarch: enable additional linux-test tests, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 14/49] tests/tcg: enable building for i386, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 07/49] docker: allow "cc" command to run in user context, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 10/49] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 27/49] tests/tcg: enable building for MIPS, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 09/49] tests/tcg: move architecture independent tests into subdir, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 38/49] tests/tcg: enable building for RISCV64,
Alex Bennée <=
- [Qemu-devel] [PATCH v6 17/49] tests/tcg/i386: add runner for test-i386-fprem, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 26/49] tests/tcg: move MIPS specific tests into subdir, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 37/49] tests/tcg: enable building for mips64, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 33/49] tests/tcg: enable building for HPPA, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 23/49] tests/tcg/arm: fix up test-arm-iwmmxt test, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 44/49] tests/tcg: add run, diff, and skip helper macros, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 46/49] target/sh4: Fix translator.c assertion failure for gUSA, Alex Bennée, 2018/06/08
- [Qemu-devel] [PATCH v6 40/49] tests/tcg: enable building for PowerPC, Alex Bennée, 2018/06/08