meta-clang icon indicating copy to clipboard operation
meta-clang copied to clipboard

How to build u-boot, opensbi and linux with clang

Open vaibhavvivekdeshpande opened this issue 4 years ago • 2 comments

I have removed u-boot, opensbi from conf/nonclangable.conf but still its building from GCC is there any way to build u-boot, opensbi and linux with clang

Desktop (please complete the following information):

  • OS: ubuntu 20.4
  • Yocto version - honister

vaibhavvivekdeshpande avatar Sep 18 '21 12:09 vaibhavvivekdeshpande

Their recipes have TOOLCHAIN variable set to gcc you have to remove that and then see if it works

kraj avatar Sep 18 '21 14:09 kraj

you can also try

bitbake -e opensbi > /tmp/log.1

and inspect log.1 for TOOLCHAIN variable, it should show you where it is being set for this recipe

kraj avatar Dec 01 '21 21:12 kraj