Bitbake Cheat Sheet
Get the most useful bitbake commands with its description.
Bitbake command
Description
bitbake <recipe_name>
Build the particular recipe which belongs to a package.
build a valgrind package. if recipe file is valgrind_3.6.0.bb.
Example: bitbake valgrind
build a valgrind package. if recipe file is valgrind_3.6.0.bb.
Example: bitbake valgrind
bitbake -c <task> <recipe_name>
Run specific tasks for the particular package.
Default task: do_fetch, do_compile, do_install, do_build etc.
for only compilation of valgrind package
Example: bitbake -c do_compile valgrind
Default task: do_fetch, do_compile, do_install, do_build etc.
for only compilation of valgrind package
Example: bitbake -c do_compile valgrind
bitbake -c <task> <recipe_name>
Run specific tasks for the particular package.
Default task: do_fetch, do_compile, do_install, do_build etc.
for only compilation of valgrind package
Example: bitbake -c do_compile valgrind
Default task: do_fetch, do_compile, do_install, do_build etc.
for only compilation of valgrind package
Example: bitbake -c do_compile valgrind
bitbake -c listtask <package>
It shows all tasks for the package.
bitbake virtual/kernel -c menuconfig
It launches a graphical-based kernel configuration session.
bitbake -c cleanall <recipe_name>
Remove output, download and cache files of the package.
bitbake -c clean <recipe_name>
Remove only the output files of the package.
bitbake <image> -g -u taskexp
It shows package dependency for the image.
Example: bitbake core-image-minimal -g -u taskexp
This command will launch GUI terminal which shows all the packages included in core-minimal-image.
Example: bitbake core-image-minimal -g -u taskexp
This command will launch GUI terminal which shows all the packages included in core-minimal-image.