mbox series

[v4,0/3] riscv: Fix build against binutils 2.38

Message ID 20221003160754.6991-1-heinrich.schuchardt@canonical.com
Headers show
Series riscv: Fix build against binutils 2.38 | expand

Message

Heinrich Schuchardt Oct. 3, 2022, 4:07 p.m. UTC
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(-)