Welcome ! In this blog I will share some tips related with embedded software development. I hope these information can help you somehow.

This is the post excerpt.
Welcome ! In this blog I will share some tips related with embedded software development. I hope these information can help you somehow.

One useful debugging tool is the development shell.
When invoked this command will unpack and patch the source and open a terminal.
The command format is:
bitbake -c devshell <package_recipe>
Example: bitbake -c devshell busybox
Inside this new terminal (‘devshell’) we have a full development environment where we can execute commands.
Some useful bitbake commands to print package recipe’s variables:
a) Print source directory for a package recipe:
bitbake -e <package_recipe> | grep ^S=
b) Print working directory for a package recipe:
bitbake -e <package_recipe> | grep ^WORKDIR=
Some useful Yocto commands:
a) List image’s to bake:
bitbake-layers show-recipes “*-image-*”
b) List recipes used in Image:
bitbake-layers show-recipes
c) Clean all recipe´s artifact before doing a new build:
bitbake <recipe_name> -c cleanall