Useful bitbake commands

Document created by Leonardo Sandoval Gonzalez Employee on Jun 7, 2013Last modified by Daiane Angolini on Jul 23, 2014
Version 10Show Document
  • View in full screen mode

NOTE: Please suggest bitbake commands you find it useful!



bitbake command
bitbake <image>Bake an image (add -k to continue building even errors are found in the tasks execution)
bitbake <package> -c <task>

Execute a particular package's task. Default Tasks names: fetch, unpack, patch, configure, compile, install, package, package_write, and build.

Example: To (force) compiling a kernel and then build, type:

$ bitbake  linux-imx -f -c compile

$ bitbake linux-imx

bitbake <image > -g -u depexp

Show the package dependency for image.

Example: To show all packages included on fsl-image-gui

$ bitbake fsl-image-gui -g -u depexp


NOTE: This command will open a UI window, so it must be execute on a console inside the host machine (either virtual or native).

bitbake <package> -c  devshellOpen a new shell where with neccesary system values already defined for package
hobbitbake frontend/GUI.
bitbake <package> -c listtasksList all tasks for package
bitbake virtual/kernel -c menuconfig
Interactive kernel configuration
bitbake <image> -c fetchallFetch sources for a particular image
bitbake-layers show-layersShow layers
bitbake-layers show-recipes "*-image-*"Show possible images to bake. Without "*-images-*", it shows ALL recipes
bitbake -g <image> && cat | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniqShow image's packages
bitbake -g <pkg> && cat | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniqShow package's dependencies
bitbake –v <image> 2>&1 | tee image_build.log Print (on console) and store verbose baking
bitbake -s | grep <pkg>Check if certain package is present on current Yocto Setup


12 people found this helpful