All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [RFC PATCH for-3.1 0/2] Shippable: build TriCore docker image
@ 2018-07-11  4:34 Philippe Mathieu-Daudé
  2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build Philippe Mathieu-Daudé
  2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 2/2] shippable: Build the TriCore docker image Philippe Mathieu-Daudé
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-07-11  4:34 UTC (permalink / raw)
  To: Bastian Koppelmann, Alex Bennée, Fam Zheng
  Cc: Philippe Mathieu-Daudé,
	qemu-devel, David Brenken, Florian Artmeier, Georg Hofstetter

Quick and dirty RFC to go a bit further with TriCore cross-testing.

Philippe Mathieu-Daudé (2):
  docker: Fix TriCore binutils build
  shippable: Build the TriCore docker image

 .shippable.yml                                |  2 ++
 .../dockerfiles/debian-tricore-cross.docker   | 23 ++++++++++++++++---
 2 files changed, 22 insertions(+), 3 deletions(-)

-- 
2.18.0

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

* [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build
  2018-07-11  4:34 [Qemu-devel] [RFC PATCH for-3.1 0/2] Shippable: build TriCore docker image Philippe Mathieu-Daudé
@ 2018-07-11  4:34 ` Philippe Mathieu-Daudé
  2018-07-12 10:47   ` Alex Bennée
  2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 2/2] shippable: Build the TriCore docker image Philippe Mathieu-Daudé
  1 sibling, 1 reply; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-07-11  4:34 UTC (permalink / raw)
  To: Bastian Koppelmann, Alex Bennée, Fam Zheng
  Cc: Philippe Mathieu-Daudé,
	qemu-devel, David Brenken, Florian Artmeier, Georg Hofstetter

- Use recent 'missing' from libtool,
- Fix 'ylwrap' permissions

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
Shippable runs 'clang --version'.

 .../dockerfiles/debian-tricore-cross.docker   | 23 ++++++++++++++++---
 1 file changed, 20 insertions(+), 3 deletions(-)

diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
index 898b8dd511..f833a6ca16 100644
--- a/tests/docker/dockerfiles/debian-tricore-cross.docker
+++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
@@ -7,16 +7,33 @@
 #
 # SPDX-License-Identifier: GPL-2.0-or-later
 #
-FROM debian:9
+FROM debian:9-slim
 
 MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
 
+# Install common build utilities
+RUN apt-get update && \
+    DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \
+    DEBIAN_FRONTEND=noninteractive eatmydata \
+    apt-get install -y --no-install-recommends \
+        automake \
+        bison \
+        build-essential \
+        ca-certificates \
+        flex \
+        git \
+        libtool && \
+    ln -s /usr/bin/cc /usr/bin/clang && \
+    ln -s /usr/bin/gcc /usr/bin/tricore-gcc
+
 RUN git clone --single-branch \
         https://github.com/bkoppelmann/tricore-binutils.git \
         /usr/src/binutils && \
-    cd /usr/src/binutils && chmod +x missing && \
+    cd /usr/src/binutils && \
+    cp /usr/share/libtool/build-aux/missing . && \
+    chmod +x ylwrap binutils/ylwrap && \
     CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \
-    make && make install && \
+    make all install && \
     rm -rf /usr/src/binutils
 
 # Specify the cross prefix for this image (see tests/docker/common.rc)
-- 
2.18.0

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

* [Qemu-devel] [RFC PATCH for-3.1 2/2] shippable: Build the TriCore docker image
  2018-07-11  4:34 [Qemu-devel] [RFC PATCH for-3.1 0/2] Shippable: build TriCore docker image Philippe Mathieu-Daudé
  2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build Philippe Mathieu-Daudé
@ 2018-07-11  4:34 ` Philippe Mathieu-Daudé
  1 sibling, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-07-11  4:34 UTC (permalink / raw)
  To: Bastian Koppelmann, Alex Bennée, Fam Zheng
  Cc: Philippe Mathieu-Daudé,
	qemu-devel, David Brenken, Florian Artmeier, Georg Hofstetter

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
---
 .shippable.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.shippable.yml b/.shippable.yml
index f74a3de3ff..9670b13f8e 100644
--- a/.shippable.yml
+++ b/.shippable.yml
@@ -25,6 +25,8 @@ env:
       TARGET_LIST=mips64el-softmmu,mips64el-linux-user
     - IMAGE=debian-ppc64el-cross
       TARGET_LIST=ppc64-softmmu,ppc64-linux-user,ppc64abi32-linux-user
+    - IMAGE=debian-tricore-cross
+      TARGET_LIST=
 build:
   pre_ci:
     - make docker-image-${IMAGE} V=1
-- 
2.18.0

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

* Re: [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build
  2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build Philippe Mathieu-Daudé
@ 2018-07-12 10:47   ` Alex Bennée
  0 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2018-07-12 10:47 UTC (permalink / raw)
  To: Philippe Mathieu-Daudé
  Cc: Bastian Koppelmann, Fam Zheng, qemu-devel, David Brenken,
	Florian Artmeier, Georg Hofstetter


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

> - Use recent 'missing' from libtool,
> - Fix 'ylwrap' permissions
>
> Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
> ---
> Shippable runs 'clang --version'.
>
>  .../dockerfiles/debian-tricore-cross.docker   | 23 ++++++++++++++++---
>  1 file changed, 20 insertions(+), 3 deletions(-)
>
> diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
> index 898b8dd511..f833a6ca16 100644
> --- a/tests/docker/dockerfiles/debian-tricore-cross.docker
> +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
> @@ -7,16 +7,33 @@
>  #
>  # SPDX-License-Identifier: GPL-2.0-or-later
>  #
> -FROM debian:9
> +FROM debian:9-slim
>
>  MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
>
> +# Install common build utilities
> +RUN apt-get update && \
> +    DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \
> +    DEBIAN_FRONTEND=noninteractive eatmydata \
> +    apt-get install -y --no-install-recommends \
> +        automake \
> +        bison \
> +        build-essential \
> +        ca-certificates \
> +        flex \
> +        git \
> +        libtool && \
> +    ln -s /usr/bin/cc /usr/bin/clang && \
> +    ln -s /usr/bin/gcc /usr/bin/tricore-gcc

Erm what is this trying to do?

> +
>  RUN git clone --single-branch \
>          https://github.com/bkoppelmann/tricore-binutils.git \
>          /usr/src/binutils && \
> -    cd /usr/src/binutils && chmod +x missing && \
> +    cd /usr/src/binutils && \
> +    cp /usr/share/libtool/build-aux/missing . && \
> +    chmod +x ylwrap binutils/ylwrap && \
>      CFLAGS=-w ./configure --prefix=/usr --disable-nls --target=tricore && \
> -    make && make install && \
> +    make all install && \
>      rm -rf /usr/src/binutils
>
>  # Specify the cross prefix for this image (see tests/docker/common.rc)


--
Alex Bennée

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

end of thread, other threads:[~2018-07-12 10:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-11  4:34 [Qemu-devel] [RFC PATCH for-3.1 0/2] Shippable: build TriCore docker image Philippe Mathieu-Daudé
2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build Philippe Mathieu-Daudé
2018-07-12 10:47   ` Alex Bennée
2018-07-11  4:34 ` [Qemu-devel] [RFC PATCH for-3.1 2/2] shippable: Build the TriCore docker image Philippe Mathieu-Daudé

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.