Skip to content

CI: Set up for an arm64 runner

Simon Glass u-boot 5 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 0 repliesNew
  2. v49 patches 2 repliesSuperseded
  3. v39 patches 14 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v29 patches6 repliesSuperseded
v19 patches25 repliesSuperseded

Changes in v5 from the cover letter

- Drop the comment in the gitlab file
- Add back a final missing sudo

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6docker: Support building for multiple architecturesdoc/build/docker.rst tools/docker/Dockerfile+30 -22 replies
2/6docker: Adjust packages for arm64tools/docker/Dockerfile+7 -50 replies
3/6docker: Drop coreboot for arm64tools/docker/Dockerfile+4 -20 replies
4/6docker: Fix LegacyKeyValueFormat warning with PYTHONPATHtools/docker/Dockerfile+1 -10 replies
5/6docker: Install toolchains on arm64 hosttools/docker/Dockerfile+26 -140 replies
6/6CI: Add platform variable.gitlab-ci.yml+1 -00 replies

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchTom RiniHeinrich SchuchardtIlias Apalodimas
1/6R-b
2/6R-b
3/6R-b
4/6R-b R-b
5/6R-b
6/6R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/6] CI: Set up for an arm64 runner

All gitlab runners are currently amd64 machines. This series attempts to create a docker image which can also support arm64 so that sandbox tests can be run on it.

The TARGET_... environment variables for grub could perhaps be adjusted, using the new variables, but I have not done that for now.

Currently this builds OK on amd64 but fails when built on arm64, in grub on arm64-efi:

2022.6 gcc -DHAVE_CONFIG_H -I. -I../../.. -D_FILE_OFFSET_BITS=64
-MT argp-pvh.o -MD -MP -MF $depbase.Tpo -c -o argp-pvh.o argp-pvh.c &&\
2022.6 mv -f $depbase.Tpo $depbase.Po
2023.0 gcc: internal compiler error: Segmentation fault signal terminated program cc1 2023.0 Please submit a full bug report,
2023.0 with preprocessed source if appropriate.
2023.0 See <file:///usr/share/doc/gcc-11/README.Bugs> for instructions. 2023.0 make[4]: *** [Makefile:1714: argp-pvh.o] Error 4

Perhaps this doesn't matter, though, at least for now.

This passes gitlab:
https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines

but still fails on arm64:
https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/23346

Changes in v5:
- Drop the comment in the gitlab file
- Add back a final missing sudo

Changes in v4:
- Leave the 'sudo' in

Changes in v3:
- Move ARGs to the top
- Revise documentation to explain a common error and building on arm64
- Use grub-efi and linux-image-generic for both archs
- Add patch to install toolchains on arm64 host
- Drop patches which remove grub and tracing for arm64

Changes in v2:
- Update docs also
- Add comments to the ARG variables
- Swap order so that amd64 is the exception

Simon Glass (6):
docker: Support building for multiple architectures
docker: Adjust packages for arm64
docker: Drop coreboot for arm64
docker: Fix LegacyKeyValueFormat warning with PYTHONPATH
docker: Install toolchains on arm64 host
CI: Add platform variable

 .gitlab-ci.yml          |  1 +
 doc/build/docker.rst    | 23 ++++++++++++--
 tools/docker/Dockerfile | 69 ++++++++++++++++++++++++++++-------------
 3 files changed, 69 insertions(+), 24 deletions(-)
Signature · 1 line
2.34.1