public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH v4 0/3] riscv: Fix build against binutils 2.38
@ 2022-10-03 16:07 Heinrich Schuchardt
  2022-10-03 16:07 ` [PATCH v4 1/3] docker: install riscv32 toolchain Heinrich Schuchardt
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Heinrich Schuchardt @ 2022-10-03 16:07 UTC (permalink / raw)
  To: Tom Rini
  Cc: Rick Chen, Leo, Simon Glass, Alexandre Ghiti, Aurelien Jarno,
	u-boot, Heinrich Schuchardt

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2022-10-07 15:50 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-03 16:07 [PATCH v4 0/3] riscv: Fix build against binutils 2.38 Heinrich Schuchardt
2022-10-03 16:07 ` [PATCH v4 1/3] docker: install riscv32 toolchain Heinrich Schuchardt
2022-10-03 17:03   ` Tom Rini
     [not found]   ` <HK0PR03MB29949BBAFB1A6A2CAE54A7F0C15A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-10-05  2:15     ` Rick Chen
2022-10-07 15:49   ` Tom Rini
2022-10-03 16:07 ` [PATCH v4 2/3] buildman: differentiate between riscv32, riscv64 Heinrich Schuchardt
2022-10-03 16:44   ` Simon Glass
2022-10-05  6:53     ` Heinrich Schuchardt
     [not found]   ` <HK0PR03MB29947226B5A91B54EBB9FF28C15A9@HK0PR03MB2994.apcprd03.prod.outlook.com>
2022-10-05  2:18     ` Rick Chen
2022-10-07 15:49   ` Tom Rini
2022-10-03 16:07 ` [PATCH v4 3/3] riscv: Fix build against binutils 2.38 Heinrich Schuchardt
2022-10-07 15:50   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox