qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>,
	qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, alex.bennee@linaro.org
Subject: Re: [PATCH] tests/docker: Use binaries for debian-tricore-cross
Date: Fri, 3 Feb 2023 16:02:16 +0100	[thread overview]
Message-ID: <c21d19e6-7e8a-a66e-0c65-f05954e429d7@linaro.org> (raw)
In-Reply-To: <20230203145404.1043301-1-kbastian@mail.uni-paderborn.de>

Hi Bastian,

On 3/2/23 15:54, Bastian Koppelmann wrote:
> since binutils is pretty old, it fails our CI repeatedly during the
> compilation of tricore-binutils. We created a precompiled version using
> the debian docker image and download it instead of building it ourself.
> 
> Signed-off-by: Bastian Koppelmann <kbastian@mail.uni-paderborn.de>
> ---
> Peter, I was having trouble with the new version of binutils, I mentioned. I
> think this needs more time to sort out. So for now, let's just use a precompiled
> version of the current binutils.
> 
>   .../dockerfiles/debian-tricore-cross.docker    | 18 +++---------------
>   1 file changed, 3 insertions(+), 15 deletions(-)
> 
> diff --git a/tests/docker/dockerfiles/debian-tricore-cross.docker b/tests/docker/dockerfiles/debian-tricore-cross.docker
> index 5ae58efa09..4abcf07e68 100644
> --- a/tests/docker/dockerfiles/debian-tricore-cross.docker
> +++ b/tests/docker/dockerfiles/debian-tricore-cross.docker
> @@ -16,32 +16,20 @@ MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
>   RUN apt update && \
>       DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
>       DEBIAN_FRONTEND=noninteractive eatmydata apt install -yy \
> -       bison \
> +       curl \
>          bzip2 \
>          ca-certificates \
> -       ccache \

You might not use ccache, but others do, so please let it:

$ git grep DOCKER_CCACHE
tests/docker/Makefile.include:203:DOCKER_CCACHE_DIR := 
$$HOME/.cache/qemu-docker-ccache
tests/docker/Makefile.include:212:      @mkdir -p "$(DOCKER_CCACHE_DIR)"
tests/docker/Makefile.include:234:                              -v 
$(DOCKER_CCACHE_DIR):/var/tmp/ccache:z \

> -       flex \
> -       g++ \
> -       gcc \
> -       git \
>          libglib2.0-dev \
>          libpixman-1-dev \
>          locales \
> -       make \

Why remove gcc/(git)/make?

>          ninja-build \
>          pkgconf \
>          python3-pip \
>          python3-setuptools \
>          python3-wheel
>   
> -RUN git clone --single-branch \
> -        https://github.com/bkoppelmann/tricore-binutils.git \
> -        /usr/src/binutils && \
> -    cd /usr/src/binutils && chmod +x missing && \
> -    CFLAGS=-w ./configure --prefix=/usr/local --disable-nls --target=tricore && \
> -    make && make install && \
> -    rm -rf /usr/src/binutils
> -
> +RUN curl -#SL https://github.com/bkoppelmann/tricore-binutils/raw/master/release/tricore-binutils.2.13.tar.gz \
> +    | tar -xzC /usr/local/
>   # This image can only build a very minimal QEMU as well as the tests
>   ENV DEF_TARGET_LIST tricore-softmmu
>   ENV QEMU_CONFIGURE_OPTS --disable-user --disable-tools --disable-fdt



  reply	other threads:[~2023-02-03 15:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-03 14:54 [PATCH] tests/docker: Use binaries for debian-tricore-cross Bastian Koppelmann
2023-02-03 15:02 ` Philippe Mathieu-Daudé [this message]
2023-02-03 15:36   ` Bastian Koppelmann
2023-02-03 15:52   ` Alex Bennée

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=c21d19e6-7e8a-a66e-0c65-f05954e429d7@linaro.org \
    --to=philmd@linaro.org \
    --cc=alex.bennee@linaro.org \
    --cc=kbastian@mail.uni-paderborn.de \
    --cc=peter.maydell@linaro.org \
    --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).