Browsed by
Category: Clang

Bake 64-bit raspberryPI3 images with Yocto/OpenEmbedded

Bake 64-bit raspberryPI3 images with Yocto/OpenEmbedded

Overview RaspberryPI3 SBC and CM come with cortex-a53 based SOC which is 64-bit capable and uses ARM-v8 architecture. Originally RaspberryPI 3 was released with 32bit support alone which is backward compatible with RaspberryPI 2. However, over period of last couple of years a lot of development has gone into enabling 64-bit on ARM in community,  Eric Anholt’s VC4 drivers have matured on 64bit kernels, various userspace packages have been ported by Linaro and other communities.  We have put efforts in…

Read More Read More

Clang based Cross SDK with OpenEmbedded Framework

Clang based Cross SDK with OpenEmbedded Framework

Introduction Clang based toolchain can be used to compile large portions of packages in OpenEmbedded Framework, in this article we will cover the generating and using OpenEmbedded SDKs based on Clang, This SDK will also have the original cross gcc based compilers cohabiting with clang Generating SDK Building image base SDK in OpenEmbedded Framework is a simple process like its building any other image or component. One can generate a SDK corresponding to final image that will be shipped on target….

Read More Read More

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