Most Common Operations Performed in Yocto - Part 1

My learnings in Yocto

1. To open the linux kernel menuconfig ( Here I am using meta-intel layer ), run the following commands

bitbake -c menuconfig linux-intel

If you are using yocto kernel it will be

bitbake -c menuconfig linux-yocto


2. To check whether your bbappend recipe is parsed by bitbake, run the following command

bitbake-layers show-appends

3. To add a particular package in your root file system

Open your local.conf file and add the recipe name below

IMAGE_INSTALL += "recipe-name"

E.g. IMAGE_INSTALL += "libusb"

or IMAGE_INSTALL_append = "libusb"

If you want this package to be included only in a particular image then,

IMAGE_INSTALL_append_pn-<image-name> = "recipe-name"

E.g. IMAGE_INSTALL_append_pn-core-image-sato = "libusb"

4. To include a kernel module in your root file system

MACHINE_ESSENTIAL_EXTRA_RDEPENDS += "kernel-module-cp210x"

5. To automatically load the module on boot

KERNEL_MODULE_AUTOLOAD += "cp210x"

Comments

Popular posts from this blog

bb.utils.contains yocto

make config vs oldconfig vs defconfig vs menuconfig vs savedefconfig

PR, PN and PV Variable in Yocto