Our u-boot recipe only supports gcc, but upstream supports clang (the docs suggest it's harder than it is, as the magic options are enabled by default). Notable, u-boot CI does clang builds. So, we should also support clang in the recipe. This will mean removing the TOOLCHAIN assignment and using generic assignments or overrides for CC etc.
Ross, can you confirm this is fixed by https://git.openembedded.org/openembedded-core/commit/?id=321421117de088e6b23da9c746d16df0c6081323 ?
Created attachment 5244 [details] log.do_compile for u-boot
I build qemuarm64 with clang (on the latest commit on the master branch, which contains the commit referenced in comment 1). I attached the log.do_compile for u-boot. The log shows clang being used to compile it (though there are some weird references to gcc still in there). So, I believe this can be closed.
Confirmed, closing.