Building u-boot with clang

Anirudh Mathukumilli <[email protected]>
Newsgroups org.yoctoproject.lists.yocto
Message-ID <CAH7FQfg7_Eo+B6tDbOPhx99t5hAo=oqh9arxMLZw0y7xWYfbcg@mail.gmail.com>
Hey folks,

I'm trying to use Yocto to build a u-boot image using clang. I need to use
clang because the system I'm targeting is not supported by GCC. So, I've
integrated the meta-clang layer and have assigned `TOOLCHAIN = "clang"` in
my local.conf. This seems to correctly select clang as the correct compiler
to use when building u-boot; I've verified this by trying to build with an
arm64 machine and seeing clang work.

However, when I switch my machine to the custom machine I'm targeting (a
powerpc variant), my yocto build fails trying to build the GCC cross
compiler for that architecture. Why is Yocto attempting to even build this
cross compiler? Is there a way for me to tell yocto to not use GCC at all?

-Anirudh

-- 


________
This email and any attachments may contain Astranis confidential 
and/or proprietary information governed by a non-disclosure agreement, and 
are intended solely for the individual or entity specified by the message.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.