[PATCH v2 0/2] tools/build: Fix s390(x) cross-compilation with clang
From: Thomas Weißschuh
Date: Fri Jun 20 2025 - 07:00:51 EST
The heuristic to derive a clang target triple from a GCC one does not work
for s390. GCC uses "s390-linux" while clang expects "s390x-linux" or
"powerz-linux".
There doesn't seem to be a formal maintainer for this file.
Maybe the clang/llvm maintainers can pick it up.
Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>
---
Changes in v2:
- Rebase onto mainline master
- Drop custom nolibc workaround
- Link to v1: https://lore.kernel.org/r/20250424-tools-cross-s390-v1-1-d3ec4b43df12@xxxxxxxxxxxxx
---
Thomas Weißschuh (2):
tools/build: Fix s390(x) cross-compilation with clang
tools/nolibc: drop s390 clang target override
tools/include/nolibc/Makefile | 3 ---
tools/scripts/Makefile.include | 4 +++-
2 files changed, 3 insertions(+), 4 deletions(-)
---
base-commit: 75f5f23f8787c5e184fcb2fbcd02d8e9317dc5e7
change-id: 20250424-tools-cross-s390-73eaa2d42833
Best regards,
--
Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>