From: "Alex Bennée" <alex.bennee@linaro.org>
To: famz@redhat.com
Cc: qemu-devel@nongnu.org, "Alex Bennée" <alex.bennee@linaro.org>,
"Christian Borntraeger" <borntraeger@de.ibm.com>
Subject: [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross
Date: Mon, 27 Feb 2017 14:30:27 +0000 [thread overview]
Message-ID: <20170227143028.16428-2-alex.bennee@linaro.org> (raw)
In-Reply-To: <20170227143028.16428-1-alex.bennee@linaro.org>
This adds an s390 cross build target to our library of docker setups.
There is an issue with the xfslibs-dev:s390x package having a clash so
we do a || apt-get -f install to fixup the rest of the dependencies.
This doesn't build on the debian.docker file as we are using the
multilib compiler which is only available in stretch (the current
testing repo).
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
CC: Christian Borntraeger <borntraeger@de.ibm.com>
---
tests/docker/dockerfiles/debian-s390x-cross.docker | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
create mode 100644 tests/docker/dockerfiles/debian-s390x-cross.docker
diff --git a/tests/docker/dockerfiles/debian-s390x-cross.docker b/tests/docker/dockerfiles/debian-s390x-cross.docker
new file mode 100644
index 0000000000..bbb21ed088
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-s390x-cross.docker
@@ -0,0 +1,22 @@
+#
+# Docker s390 cross-compiler target
+#
+# This docker target is based on stretch (testing) as the stable build
+# doesn't have the cross compiler available.
+#
+FROM debian:testing-slim
+
+# Duplicate deb line as deb-src
+RUN cat /etc/apt/sources.list | sed "s/deb/deb-src/" >> /etc/apt/sources.list
+
+# Add the s390x architecture
+RUN dpkg --add-architecture s390x
+
+# Grab the updated list of packages
+RUN apt update
+RUN apt dist-upgrade -yy
+RUN apt-get build-dep -yy -a s390x qemu || apt-get -f install
+RUN apt install -yy gcc-multilib-s390x-linux-gnu binutils-multiarch
+
+# Specify the cross prefix for this image (see tests/docker/common.rc)
+ENV QEMU_CONFIGURE_OPTS --cross-prefix=s390x-linux-gnu-
--
2.11.0
next prev parent reply other threads:[~2017-02-27 14:30 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-27 14:30 [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Alex Bennée
2017-02-27 14:30 ` Alex Bennée [this message]
2017-02-28 22:11 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Philippe Mathieu-Daudé
2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 2/2] .shippable: add s390x-cross target Alex Bennée
2017-02-28 11:57 ` [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Fam Zheng
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=20170227143028.16428-2-alex.bennee@linaro.org \
--to=alex.bennee@linaro.org \
--cc=borntraeger@de.ibm.com \
--cc=famz@redhat.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).