qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [[PATCH]--edit 5/6] tests/docker: use prebuilt toolchain for debian-


From: Philippe Mathieu-Daudé
Subject: Re: [[PATCH]--edit 5/6] tests/docker: use prebuilt toolchain for debian-hexagon-cross
Date: Wed, 21 Dec 2022 09:55:46 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.6.0

On 21/12/22 08:42, Alex Bennée wrote:
From: Mukilan Thiyagarajan <quic_mthiyaga@quicinc.com>

The current docker image for cross compiling hexagon guests
is manually built since it takes >2 hours to build from source.

This patch:
  1. Solves the above issue by using the prebuilt clang
     toolchain hosted on CodeLinaro [1] and maintained by QUIC [2].
  2. The dockerfile is also switched from multi-stage to single stage
     build to allow the CI docker engine to reuse the layer cache.
  3. Re-enables the hexagon-cross-container job to be always run in
     CI and makes it a non-optional dependency for the
     build-user-hexagon job.

The changes for 1 & 2 together bring down the build time to
~3 minutes in GitLab CI when cache is reused and ~9 minutes
when cache cannot be reused.

[1]: https://github.com/CodeLinaro/hexagon-builder
[2]: https://github.com/quic/toolchain_for_hexagon/releases/

Based-on: <20221215095820.13374-1-quic._5Fmthiyaga@quicinc.com>
  tests/tcg/multiarch: remove unused variable in linux-test

^ Please remove this tag

Signed-off-by: Mukilan Thiyagarajan <quic_mthiyaga@quicinc.com>
[AJB: also tweak MAINTAINERS]
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221219144354.11659-1-quic_mthiyaga@quicinc.com>
---
  .gitlab-ci.d/buildtest.yml                    |   4 -
  .gitlab-ci.d/container-cross.yml              |  19 +--
  MAINTAINERS                                   |   1 -
  tests/docker/Makefile.include                 |   4 -
  .../debian-hexagon-cross.d/build-toolchain.sh | 141 ------------------
  .../dockerfiles/debian-hexagon-cross.docker   |  53 +++----
  6 files changed, 20 insertions(+), 202 deletions(-)
  delete mode 100755 
tests/docker/dockerfiles/debian-hexagon-cross.d/build-toolchain.sh




reply via email to

[Prev in Thread] Current Thread [Next in Thread]