Book Image

Embedded Linux Development with Yocto Project

By : Otavio Salvador
Book Image

Embedded Linux Development with Yocto Project

By: Otavio Salvador

Overview of this book

A practical tutorial guide which introduces you to the basics of Yocto Project, and also helps you with its real hardware use to boost your Embedded Linux-based project. If you are an embedded systems enthusiast and willing to learn about compelling features offered by the Yocto Project, then this book is for you. With prior experience in the embedded Linux domain, you can make the most of this book to efficiently create custom Linux-based systems.
Table of Contents (17 chapters)
15
A. References
16
Index

Customizing the linux-yocto framework

The Linux kernel is a complex software that provides an infinite number of possible configurations. The Yocto Project provides a framework (linux-yocto) to manage a huge set of machines in a single kernel tree. We can take advantage of this framework to enable or disable features for our machine, for example, by using <layer>/recipes-kernel/linux/linux-yocto_3.14.bbappend with the following content:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 
SRC_URI += "file://enable-can.cfg" 

The content of the <layer>/recipes-kernel/linux/linux-yocto/linux-yocto/enable-can.cfg file is as shown:

CONFIG_CAN=y 

One common requirement when doing a Linux-based embedded system is to change the kernel configuration. We can do this using the SDK or BitBake, as explained:

  • Using SDK: The creation and installation of the Yocto Project's SDK is detailed in Chapter 8, Developing with the Yocto Project. After having the SDK exported, we can...