]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/build: Fix s390(x) cross-compilation with clang
authorThomas Weißschuh <thomas.weissschuh@linutronix.de>
Fri, 20 Jun 2025 11:00:27 +0000 (13:00 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:17 +0000 (16:28 +0200)
commit6ec6282acd89d5b0616854982d28cc00511aeb82
treea703463c1e963d74d8fe73786584616813a1c348
parent46b3a7a3a36d5833f14914d1b95c69d28c6a76d6
tools/build: Fix s390(x) cross-compilation with clang

[ Upstream commit a40f0cdce78be8a559ee8a85c908049c65a410b2 ]

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".

Add an explicit override.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh@linutronix.de>
Link: https://lore.kernel.org/r/20250620-tools-cross-s390-v2-1-ecda886e00e5@linutronix.de
Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/scripts/Makefile.include