Hi Ross,

On 8/11/26 2:21 PM, Ross Burton wrote:
On 11 Aug 2026, at 13:13, Quentin Schulz <[email protected]> wrote:
Why not simply ${TOOLCHAIN}?

That would be a big assumption that TOOLCHAIN is also the name of the binary, 
which fails for any native builds.

But it would also work here…


OK. Let's rather not use anti-patterns whenever we can so people aren't tempted to copy this for recipes that can be native/nativesdk too. Please ignore my suggestion for TOOLCHAIN.

Have you checked we can build u-boot-tools, u-boot-tools-native and 
nativesdk-u-boot-tools with clang?

FWIW, upstream CI exercises the build with clang so it should work.  Our CI 
will be doing build+boot tests of some clang builds with qemu.


From my shell history when I built Rockchip boards in U-Boot with clang a few months ago I had run:

make CROSS_COMPILE="aarch64-linux-gnu-" O=build/puma HOSTCC=clang CC=clang puma-rk3399_defconfig

So we need to check HOSTCC is proper and that we really need to add ${TARGET_PREFIX} in front of gcc/clang in CC.

I thought u-boot-tools includes u-boot.inc but it doesn't, so ignore my previous comment (we should however verify at some point we can build with either toolchain).

Cheers,
Quentin
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#243197): 
https://lists.openembedded.org/g/openembedded-core/message/243197
Mute This Topic: https://lists.openembedded.org/mt/120699619/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to