[PATCH v3 0/3] riscv: Fix build against binutils 2.38

Heinrich Schuchardt heinrich.schuchardt at canonical.com
Sun Oct 2 04:21:21 CEST 2022


Binutils 2.37 and 2.38 are based on different revisions of the
"RISC-V Unprivileged Specification" and there fore require
different -march parameters for GCC.

We support both 32bit and 64bit RISC-V boards. Buildman uses a 64bit
toolchain for both which leads to build failures with
-march=rv32imac_zicsr_zifencei.

The first patch install the riscv32 toolchain in the Docker image.
Only after rebuilding and uploading the Docker image we can proceed
with the other patches.

The next patch let's buildman choose the correct tool chain.

The final patch which has already been posted previously corrects
the -march parameter for binutils 2.38+.

The series pass Gitlab CI:
https://source.denx.de/u-boot/custodians/u-boot-efi/-/pipelines/13658

Alexandre Ghiti (1):
  riscv: Fix build against binutils 2.38

Heinrich Schuchardt (2):
  docker: install riscv32 toolchain
  buildman: differentiate between riscv32, riscv64

 arch/riscv/Makefile      | 11 ++++++++++-
 tools/buildman/boards.py | 11 +++++++++++
 tools/docker/Dockerfile  |  1 +
 3 files changed, 22 insertions(+), 1 deletion(-)

-- 
2.37.2



More information about the U-Boot mailing list