Bitbake list of targets

You can easily list all the targets/recipes (.bb files) in your workspace doing:

bitbake-layers show-recipes

If you want only the recipes for your image, do:

bitbake-layers show-recipes "<image_name>"

To list the pre-defined Yocto images in all meta files, run the following command from your poky directory

find . -type f -path '*images/*' -name '*.bb'

Other SDKs often use a custom script for setting up the build environment for yocto (mostly refers on oe-init-build-env from yocto anyway).

I took an excerpt of the setup script from the Freescale SDK 1.9 (fsl-setup-env) and created a script to display the images. It can be similar to this:

get-images.sh:

# top level directory of your yocto project
POKYROOTDIR=/home/poky

echo "Images:"
for i in `ls $POKYROOTDIR/meta*/recipes-*/images/*.bb 2>/dev/null`;do
    i=`basename $i`;i=`echo $i |sed -e 's,^\(.*\)\.bb,\1,'`
    echo "    $i";
done

This is based on the assumption that every recipe is placed in a images directory, what is supposed to be a convention.


To list the pre-defined Yocto images, run the following command from your poky directory

ls meta*/recipes*/images/*.bb

Tags:

Bitbake

Yocto