How to build target and host Sysroot with yocto / poky ?

If you want to build some external packages which are using sysroot within yocto framework or buildsystem, you will first need to build the sysroot which you can then link with the package during compilation. The matching target sysroot contains needed headers and libraries for generating binaries that run on the target architecture. The sysroot … Read more

How to build Cross-Toolchain using meta-toolchain recipe from Yocto / Poky ?

This article assumes, you already have development environment setup for yocto, if not please read and setup as per “Building Yocto for Raspberry Pi / Creating Embedded Linux for RPi using Yocto” Along with recipes for building a compiler for its internal use, OpenEmbedded also has recipes to create a full toolchain / cross-compiler environment for … Read more

Yocto build time (DEPENDS) Vs run time (RDEPENDS) dependency

Most software packages have a short list of other packages that they require, which are called dependencies. These dependencies fall into two main categories: build-time dependencies, which are required when the software is built; and runtime dependencies, which are required to be installed on the target in order for the software to run. Within a … Read more

Adding New Machine in Yocto bitbake meta layers

Adding a new machine to the Yocto Project is a straightforward process. This section describes how to add machines that are similar to those that the Yocto Project already supports. Note : Although well within the capabilities of the Yocto Project, adding a totally new architecture might require changes to gcc/glibc and to the site … Read more

What is m4 and How to Fix: “m4: command not found” error ?

If you have installed fresh Ubuntu on your development machine and tried to compile some opensource source code which uses “autoconf” for generating Makefile for compilation, its highly possible that you may see an error as below, what is m4 ? GNU ‘m4’ is an implementation of the traditional UNIX macro processor. ‘m4’ is a … Read more

Cross compiling Linux kernel for Beagleboard

We assume, we are compiling for omap3 beagleboard embedded hardware platform, Clone the kernel Download toolchain Extract Toolchain Now, use the below script to compile and generate uImage, Subscribe with Valid Email Id to receive updates in Inbox. ( Secured by Google FeedBurner )    

Solved : java.lang.OutOfMemoryError: Java heap space

When I was trying to compile latest repo sync Android source code ( Android 10 ), and tried to compile demo application, I got an error as, When tried to find out some related information, I found that this error is due to less JAVA heap memory and we need to increase that memory, so … Read more

What is Clang ? How to compile C program using clang ?

What is Clang ? Clang is a compiler front end for the C, C++, Objective-C and Objective-C++ programming languages. It uses the LLVM compiler infrastructure as its back end. It is designed to act as a drop-in replacement for the GNU Compiler Collection (GCC), supporting most of its compilation flags and unofficial language extensions. Clang … Read more