Shippable: build TriCore docker image
cover Shippable: build TriCore docker image
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(-)
Signature · 1 line
2.18.0
RFC PATCH 1/2 docker: Fix TriCore binutils build
- Use recent 'missing' from libtool,
- Fix 'ylwrap' permissions
---
Shippable runs 'clang --version'.
.../dockerfiles/debian-tricore-cross.docker | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-)
tests/docker/dockerfiles/debian-tricore-cross.docker +20 -3
@@ -7,16 +7,33 @@ # # SPDX-License-Identifier: GPL-2.0-or-later # -FROM debian:9 +FROM debian:9-slim MAINTAINER Philippe Mathieu-Daudé <[email protected]> +# 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)
Signature · 1 line
2.18.0
Re: [Qemu-devel] [RFC PATCH for-3.1 1/2] docker: Fix TriCore binutils build
Quoted 27 lines · Philippe Mathieu-Daudé
- Use recent 'missing' from libtool,
- Fix 'ylwrap' permissionsSigned-off-by Philippe Mathieu-Daudé <[email protected]>---
Shippable runs 'clang --version'..../dockerfiles/debian-tricore-cross.docker | 23 ++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-)tests/docker/dockerfiles/debian-tricore-cross.docker +5
-1@@ -7,16 +7,33 @@ # # SPDX-License-Identifier: GPL-2.0-or-later # -FROM debian:9 +FROM debian:9-slim MAINTAINER Philippe Mathieu-Daudé <[email protected]> +# Install common build utilities +RUN apt-get update && \ + DEBIAN_FRONTEND=noninteractive apt-get install -yy eatmydata && \ + DEBIAN_FRONTEND=noninteractive eatmydata \
tests/docker/dockerfiles/debian-tricore-cross.docker line 27
Quoted 10 lines
tests/docker/dockerfiles/debian-tricore-cross.docker +10
-0+ 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?
Quoted 4 lines
tests/docker/dockerfiles/debian-tricore-cross.docker +1
-0+ RUN git clone --single-branch \ https://github.com/bkoppelmann/tricore-binutils.git \ /usr/src/binutils && \
tests/docker/dockerfiles/debian-tricore-cross.docker line 39
Quoted 10 lines
tests/docker/dockerfiles/debian-tricore-cross.docker +4
-2- 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
RFC PATCH 2/2 shippable: Build the TriCore docker image
In reply to Philippe Mathieu-Daudé--- .shippable.yml | 2 ++ 1 file changed, 2 insertions(+)
.shippable.yml +2 -0
@@ -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
Signature · 1 line
2.18.0