]> Git Repo - qemu.git/commitdiff
tests/tcg: enable building for sh4
authorAlex Bennée <[email protected]>
Mon, 23 Apr 2018 15:25:06 +0000 (16:25 +0100)
committerAlex Bennée <[email protected]>
Wed, 20 Jun 2018 19:22:34 +0000 (20:22 +0100)
As before, using Debian SID compilers. While the compiler can be
coerced into generating big-endian code it seems the linker can't deal
with it so we only enable the building for little endian SH4.

Signed-off-by: Alex Bennée <[email protected]>
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Tested-by: Philippe Mathieu-Daudé <[email protected]>
tests/docker/Makefile.include
tests/docker/dockerfiles/debian-sh4-cross.docker [new file with mode: 0644]
tests/tcg/sh4/Makefile.include [new file with mode: 0644]
tests/tcg/sh4/Makefile.target [new file with mode: 0644]

index 59dd8e314d0c3d6492782d1f5466713c3d2d83e5..a2dd307a8e0c7633387c92aae01fcc94ad67c1a9 100644 (file)
@@ -73,6 +73,7 @@ docker-image-debian-sid: NOCACHE=1
 docker-image-debian-alpha-cross: docker-image-debian-sid
 docker-image-debian-hppa-cross: docker-image-debian-sid
 docker-image-debian-m68k-cross: docker-image-debian-sid
+docker-image-debian-sh4-cross: docker-image-debian-sid
 docker-image-travis: NOUSER=1
 
 # Specialist build images, sometimes very limited tools
diff --git a/tests/docker/dockerfiles/debian-sh4-cross.docker b/tests/docker/dockerfiles/debian-sh4-cross.docker
new file mode 100644 (file)
index 0000000..88a2423
--- /dev/null
@@ -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-sh4-linux-gnu \
+        libc6-dev-sh4-cross
diff --git a/tests/tcg/sh4/Makefile.include b/tests/tcg/sh4/Makefile.include
new file mode 100644 (file)
index 0000000..ad21594
--- /dev/null
@@ -0,0 +1,4 @@
+ifneq ($(TARGET_NAME), sh4eb)
+DOCKER_IMAGE=debian-sh4-cross
+DOCKER_CROSS_COMPILER=sh4-linux-gnu-gcc
+endif
diff --git a/tests/tcg/sh4/Makefile.target b/tests/tcg/sh4/Makefile.target
new file mode 100644 (file)
index 0000000..9d18d44
--- /dev/null
@@ -0,0 +1,7 @@
+# -*- Mode: makefile -*-
+#
+# SuperH specific tweaks
+#
+
+# On sh Linux supports 4k, 8k, 16k and 64k pages (but only 4k currently works)
+EXTRA_RUNS+=run-test-mmap-4096 # run-test-mmap-8192 run-test-mmap-16384 run-test-mmap-65536
This page took 0.02905 seconds and 4 git commands to generate.