One of the key things I often stress when working with the Yocto Project is: Never edit the recipe files of a layer you have downloaded from the Internet (unless you are planning on pushing those changes back upstream) If… Read more
Category: Yocto
A Quick Guide to Getting Started With The Yocto Project
I really like the Yocto Project. As someone who builds Embedded Linux distributions, it makes my life so much easier. However, if you are just coming into the world of Yocto it is very easy to get overwhelmed with the… Read more
How to Override Standard Files in a Yocto Project
Exploring how to overwrite some of the ‘standard’ Linux files
Checking for Security Vulnerabilities in a Yocto Build
Yocto has a fantastic feature that enables it to automatically check any software packages added to a system image against the known security vulnerabilities, as tracked by the public Common Vulnerabilities and Exposures (CVE) database. To enable the check, add the following… Read more
How to layout the structure of a Yocto Project
I like to keep the directories in my Yocto projects structured so that I can easily keep track of where things come from. One of my biggest things is keeping any layers I have created separate from any layers I… Read more
How to add a Golang recipe to Yocto
Yocto supports Golang recipes, but they are slightly different to standard ones. Simple Recipe For a basic recipe without any dependancies, it is still quite simple. SUMMARY = “This is a simple example recipe that cross-compiles a Go program.” SECTION… Read more
Yocto: Conditionally setting a variable based on the image name
With one of my current build systems, I have two different build images – a production and a development one. For the production system, I want to have the root filesystem installed on the on-board eMMC storage but for the… Read more
Licences and Security in a Yocto Build (Part 1 – Licences)
I Am Not A Lawyer Please ignore anything I say in this article! When building a system that makes use of Open Source Software, it is vital to know what your licence obligations are. Other than just the common decency… Read more
Common Variables for Yocto Recipes
When writing Yocto recipes there are some common variables that can be used, espcially in the do_install() section An example of this would be: do_install() { install -d ${D}${bindir} install -m 0644 ${S}/my_program ${D}${bindir} } These variables are defined in… Read more
How to Set Up a Yocto Build Server as a Remote Package Repository
If you are using Yocto to create your embedded linux system, it can really useful to set your server up to act as a package repository. Setting up Assuming that you have set your local.conf to have PACKAGE_CLASSES ?= “package_ipk”… Read more