From: "Philippe Mathieu-Daudé" <f4bug@amsat.org>
To: "Alex Bennée" <alex.bennee@linaro.org>,
"Fam Zheng" <famz@redhat.com>,
"Max Filippov" <jcmvbkbc@gmail.com>
Cc: "Philippe Mathieu-Daudé" <f4bug@amsat.org>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [RFC PATCH] docker: Add debian-xtensa-cross image
Date: Sat, 23 Jun 2018 18:53:13 -0300 [thread overview]
Message-ID: <20180623215313.1252-1-f4bug@amsat.org> (raw)
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
next reply other threads:[~2018-06-23 21:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-23 21:53 Philippe Mathieu-Daudé [this message]
2018-06-23 21:57 ` [Qemu-devel] [RFC PATCH] docker: Add debian-xtensa-cross image 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180623215313.1252-1-f4bug@amsat.org \
--to=f4bug@amsat.org \
--cc=alex.bennee@linaro.org \
--cc=famz@redhat.com \
--cc=jcmvbkbc@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).