qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target
@ 2017-02-27 14:30 Alex Bennée
  2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Alex Bennée
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Alex Bennée @ 2017-02-27 14:30 UTC (permalink / raw)
  To: famz; +Cc: qemu-devel, Alex Bennée

Hi,

A build failure on s390 was reported so to investigate I put together
a cross-compile environment to debug it. As it turned out the report
was a false positive but the cross target might still be useful for
people who don't have big iron handy ;-)

Alex Bennée (2):
  new: dockerfiles/debian-s390-cross
  .shippable: add s390x-cross target

 .shippable.yml                                     |  2 ++
 tests/docker/dockerfiles/debian-s390x-cross.docker | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 tests/docker/dockerfiles/debian-s390x-cross.docker

-- 
2.11.0

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

* [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross
  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
  2017-02-28 22:11   ` 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
  2 siblings, 1 reply; 5+ messages in thread
From: Alex Bennée @ 2017-02-27 14:30 UTC (permalink / raw)
  To: famz; +Cc: qemu-devel, Alex Bennée, Christian Borntraeger

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

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

* [Qemu-devel] [PATCH v1 2/2] .shippable: add s390x-cross target
  2017-02-27 14:30 [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Alex Bennée
  2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Alex Bennée
@ 2017-02-27 14:30 ` Alex Bennée
  2017-02-28 11:57 ` [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Fam Zheng
  2 siblings, 0 replies; 5+ messages in thread
From: Alex Bennée @ 2017-02-27 14:30 UTC (permalink / raw)
  To: famz; +Cc: qemu-devel, Alex Bennée

Use the new debian-s390x-cross.docker target to cross compile for
s390.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 .shippable.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.shippable.yml b/.shippable.yml
index 1a1fd7a91d..653bd750fe 100644
--- a/.shippable.yml
+++ b/.shippable.yml
@@ -5,6 +5,8 @@ env:
       TARGET_LIST=arm-softmmu,arm-linux-user
     - IMAGE=debian-arm64-cross
       TARGET_LIST=aarch64-softmmu,aarch64-linux-user
+    - IMAGE=debian-s390x-cross
+      TARGET_LIST=s390x-softmmu,s390x-linux-user
 build:
   pre_ci:
     - make docker-image-${IMAGE}
-- 
2.11.0

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

* Re: [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target
  2017-02-27 14:30 [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Alex Bennée
  2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Alex Bennée
  2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 2/2] .shippable: add s390x-cross target Alex Bennée
@ 2017-02-28 11:57 ` Fam Zheng
  2 siblings, 0 replies; 5+ messages in thread
From: Fam Zheng @ 2017-02-28 11:57 UTC (permalink / raw)
  To: Alex Bennée; +Cc: qemu-devel

On Mon, 02/27 14:30, Alex Bennée wrote:
> Hi,
> 
> A build failure on s390 was reported so to investigate I put together
> a cross-compile environment to debug it. As it turned out the report
> was a false positive but the cross target might still be useful for
> people who don't have big iron handy ;-)

Looks good:

Reviewed-by: Fam Zheng <famz@redhat.com>

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

* Re: [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross
  2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Alex Bennée
@ 2017-02-28 22:11   ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2017-02-28 22:11 UTC (permalink / raw)
  To: Alex Bennée, famz; +Cc: Christian Borntraeger, qemu-devel

Hi Alex,

On 02/27/2017 11:30 AM, Alex Bennée wrote:
> 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

put both in same line since they are related (intermediate layer unuseful):

+RUN apt update && \
+    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-
>

Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>

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

end of thread, other threads:[~2017-02-28 22:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-27 14:30 [Qemu-devel] [PATCH v1 0/2] s390x cross Docker target Alex Bennée
2017-02-27 14:30 ` [Qemu-devel] [PATCH v1 1/2] new: dockerfiles/debian-s390-cross Alex Bennée
2017-02-28 22:11   ` 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

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).