Skip to content

Update clang support for ARM

Tom Rini u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 21 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9arm: Only support ARM64_CRC32 when using GCCarch/arm/Kconfig+1 -12 replies
2/9clang: Add $(CLANG_TARGET) to LDPPFLAGSMakefile+1 -02 replies
3/9clang: Don't look for libgccMakefile+2 -02 replies
4/9arm: Centralize fixed register logicarch/arm/config.mk arch/arm/cpu/armv8/config.mk+8 -32 replies
5/9armv7: Use isb/dsb directly in start.Sarch/arm/cpu/armv7/start.S+4 -42 replies
6/9boot/image-board.c: Silence warning in select_ramdiskboot/image-board.c+1 -12 replies
7/9usb: gadget: f_mass_storage: Rework do_request_sense slightlydrivers/usb/gadget/f_mass_storage.c+1 -22 replies
8/9clang: efi payload: Silence unaligned access warninginclude/efi_api.h+12 -02 replies
9/9doc: clang: Update and correct support notesdoc/build/clang.rst+4 -123 replies

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchMarek VasutSimon Glass
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] Update clang support for ARM

Hey all,

I decided to take a look again at what's needed to build and boot ARM platforms when building with clang. The good news is that this generally works now. Some size-constrained platforms don't build right now but I was able to test a reasonable part of my lab. This series also depends on:
https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
to fix the warning there.

At this point LTO + clang requires a bit more work, and to use llvm-ld. As the platform I was trying was still too large to link even with this, I've set that investigation aside for now.

I've boot tested clang-16 on Pi 3 (32bit, 64bit, arm64) and libretech-cc, and I'll be testing pine64_plus soon along with maybe mx6cuboxi and seeing what the failures are on am65x_evm / j721e_evm (these platforms require a bit more scripting on my part to make build and test clean).

Signature · 1 line
Tom