Browsed by
Tag: yocto

Using Clang with OpenEmbedded/Yocto Project

Using Clang with OpenEmbedded/Yocto Project

Introduction Clang is C/C++/ObjC ¬†frontend for LLVM compiler suite, ¬†supporting several architectures now. We have added support for clang into OpenEmbedded using a standalone layer https://github.com/kraj/meta-clang This layer requires OpenEmbedded-core layer as dependency Configuring meta-clang git clone git://github.com/openembedded/openembedded-core cd openembedded-core git clone git://github.com/openembedded/bitbake git clone git://github.com/kraj/meta-clang Setup . ./oe-init-build-env Edit conf/bblayer.conf to add meta-clang # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly LCONF_VERSION = “6” BBPATH = “${TOPDIR}” BBFILES ?= “” BBLAYERS ?= ” \ /a/wheezy/home/kraj/work/openembedded-core/meta-clang \ /a/wheezy/home/kraj/work/openembedded-core/meta…

Read More Read More