[PATCH v4 0/3] riscv: Fix build against binutils 2.38
Heinrich Schuchardt
heinrich.schuchardt at canonical.com
Mon Oct 3 18:07:51 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+.
v4:
remove riscv toolchain-alias in Docker image
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 | 2 +-
3 files changed, 22 insertions(+), 2 deletions(-)
--
2.37.2
More information about the U-Boot
mailing list