Home  >  Edison  >  Hacking

Bitbake tricks

Configuring the kernel and grab the kernel fragment

Create kernel fragments:

bitbake linux-yocto -c kernel_configme -f
bitbake linux-yocto -c menuconfig   // configure the kernel using menuconfig
bitbake linux-yocto -c diffconfig   // create kernel fragment after configuring

Go to out/current/build/tmp/work/edison-poky-linux/linux-yocto/version/ and manually copy the fragment file to meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/linux/files/. Then add the fragment to the kernel recipe in meta-intel-edison/meta-intel-edison-bsp/recipes-kernel/linux/.

When your done, clean up:

bitbake linux-yocto -c cleansstate

Finding recipies

devtool search recipe-name

Search for recipe names.

bitbake-layers show-layers

Shows the current configured layers.

bitbake-layers show-recipes

Lists available recipes and the layers that provide them.

bitbake-layers show-overlayed

A recipe is overlayed when a recipe with the same name exists in another layer that has a higher layer priority.

bitbake-layers show-appends

Lists .bbappend files and the recipe files to which they apply.

bitbake-layers show-cross-depends

Lists dependency relationships between recipes that cross layer boundaries.

bitbake -s, --show-versions

Show current and preferred versions of all recipes.