[PATCH 0/2] Fixes for Clang builds for AArch64, improve CROSS_COMPILE handling

Dmitrii Sharshakov d3dx12.xx at gmail.com
Sat Nov 8 21:48:45 CET 2025


Initially fix the inconsistency reported in reply to the previous
series[1] and also make sure AArch64 images can be built with latest
Clang versions by guarding AArch32-specific options behind extra
config checks.

Tested qemu_arm_defconfig and qemu_arm64_defconfig with Clang 21,
mainline (to be 22) ce7f9f9c and also Clang 18 (for AArch64 only, as I
have not managed to build an AArch32 image with clang-18).

Please review these patches, feel free to suggest other parts of the
LLVM/Clang compatibility task I should take a look at.

Thank you!

Signed-off-by: Dmitrii Sharshakov <d3dx12.xx at gmail.com>
---
Dmitrii Sharshakov (2):
      build: fix prefix for Clang when CROSS_COMPILE is an absolute path
      arch: arm: fix AArch64 builds with Clang 21+

 Makefile           |  2 +-
 arch/arm/config.mk | 11 ++++++-----
 2 files changed, 7 insertions(+), 6 deletions(-)
---
base-commit: 928af44314a1a086e946ef3c0901d40bdb3e19a9
change-id: 20251108-clang-cross-fixes-17db8022e2b6

Best regards,
-- 
Dmitrii Sharshakov <d3dx12.xx at gmail.com>



More information about the U-Boot mailing list