qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH] docker: Add debian-xtensa-cross image
@ 2018-06-23 21:53 Philippe Mathieu-Daudé
  2018-06-23 21:57 ` Philippe Mathieu-Daudé
  2018-06-24  3:28 ` Max Filippov
  0 siblings, 2 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-06-23 21:53 UTC (permalink / raw)
  To: Alex Bennée, Fam Zheng, Max Filippov
  Cc: Philippe Mathieu-Daudé, qemu-devel

Xtensa cpu supported:
- dc232b
- dc233c
- csp

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
based on http://lists.nongnu.org/archive/html/qemu-devel/2018-06/msg06782.html

Max: Do we need to use the overlay configuration?

This image allow the build of your dc232b tests (using [1]):

$ make check-tcg
...
  CC      vl.o
  CC      qmp.o
  LINK    xtensa-softmmu/qemu-system-xtensa
  BUILD   debian-xtensa-cross
  BUILD   TCG tests for xtensa-softmmu
  CHECK   debian-xtensa-cross
  BUILD   xtensa guest-tests with docker qemu:debian-xtensa-cross
  RUN     TCG tests for xtensa-softmmu
  CHECK   debian-xtensa-cross
  BUILD   xtensa guest-tests with docker qemu:debian-xtensa-cross
$ file xtensa-softmmu/tests/*tst
xtensa-softmmu/tests/test_bi.tst:        ELF 32-bit LSB executable, Tensilica Xtensa, version 1 (SYSV), statically linked, not stripped
xtensa-softmmu/tests/test_break.tst:     ELF 32-bit LSB executable, Tensilica Xtensa, version 1 (SYSV), statically linked, not stripped
...
xtensa-softmmu/tests/test_timer.tst:     ELF 32-bit LSB executable, Tensilica Xtensa, version 1 (SYSV), statically linked, not stripped
xtensa-softmmu/tests/test_windowed.tst:  ELF 32-bit LSB executable, Tensilica Xtensa, version 1 (SYSV), statically linked, not stripped

[1]: https://github.com/philmd/qemu/tree/testing/gcov-and-other-build-tweaks-v1c

 .../dockerfiles/debian-xtensa-cross.docker    | 31 +++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 tests/docker/dockerfiles/debian-xtensa-cross.docker

diff --git a/tests/docker/dockerfiles/debian-xtensa-cross.docker b/tests/docker/dockerfiles/debian-xtensa-cross.docker
new file mode 100644
index 0000000000..afd2ab9163
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-xtensa-cross.docker
@@ -0,0 +1,31 @@
+#
+# Docker cross-compiler target
+#
+# This docker target builds on the debian stretch base image,
+# using a prebuilt toolchains for Xtensa cores from:
+# https://github.com/foss-xtensa/toolchain/releases
+#
+FROM debian:stretch-slim
+
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata
+RUN DEBIAN_FRONTEND=noninteractive eatmydata \
+    apt-get install -y --no-install-recommends \
+        bison \
+        build-essential \
+        ca-certificates \
+        curl \
+        flex \
+        gettext \
+        git \
+        python-minimal
+
+ENV CPU_LIST csp dc232b dc233c
+ENV TOOLCHAIN_RELEASE 2018.02
+
+RUN for cpu in $CPU_LIST; do \
+        curl -#SL http://github.com/foss-xtensa/toolchain/releases/download/$TOOLCHAIN_RELEASE/x86_64-$TOOLCHAIN_RELEASE-xtensa-$cpu-elf.tar.gz \
+        | tar -xzC /opt; \
+    done
+
+ENV PATH $PATH:/opt/$TOOLCHAIN_RELEASE/xtensa-dc232b-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-dc233c-elf/bin:/opt/$TOOLCHAIN_RELEASE/xtensa-csp-elf/bin
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-06-25 17:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-23 21:53 [Qemu-devel] [RFC PATCH] docker: Add debian-xtensa-cross image Philippe Mathieu-Daudé
2018-06-23 21:57 ` Philippe Mathieu-Daudé
2018-06-23 22:03   ` Philippe Mathieu-Daudé
2018-06-24  3:24   ` Max Filippov
2018-06-25 16:59     ` Emilio G. Cota
2018-06-25 17:10       ` Philippe Mathieu-Daudé
2018-06-25 17:18         ` Max Filippov
2018-06-25 17:26           ` Philippe Mathieu-Daudé
2018-06-24  3:28 ` Max Filippov
2018-06-24  4:04   ` Philippe Mathieu-Daudé
2018-06-24  4:19     ` Max Filippov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).