On 21/12/22 10:04, Alex Bennée wrote:
From: Mukilan Thiyagarajan <quic_mthiy...@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._5fmthiy...@quicinc.com>
  tests/tcg/multiarch: remove unused variable in linux-test

Please remove this tag before sending the pull request ^

Signed-off-by: Mukilan Thiyagarajan <quic_mthiy...@quicinc.com>
[AJB: also tweak MAINTAINERS]
Signed-off-by: Alex Bennée <alex.ben...@linaro.org>
Message-Id: <20221219144354.11659-1-quic_mthiy...@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