查看bitbake的版本信息:
bitbake --version
幫助信息(使用說明):
bitbake --help
BitBake 如何動作的信息(附帶debug信息):
bitbake -vDD
顯示所有配方的當前版本和首選版本:
bitbake -s
產看某個配方的任務({recipe}_{version}.bb):
bitbake -c listtasks recipe_name
構建一個 recipe,執行該 recipe 的所有 tasks:
bitbade recipe-name :
直接執行這個recipe的.bb文件
bitbake -b {recipe}_{version}.bb
只運行recipe中的某個task:
bitbake -c your-task recipe-name
常見task:
do_build Default task for a recipe - depends on all other normal tasks required to 'build' a recipe
do_checkuri Validates the SRC_URI value
do_checkuriall Validates the SRC_URI value for all recipes required to build a target
do_clean Removes all output files for a target
do_cleanall Removes all output files, shared state cache, and downloaded source files for a target
do_cleansstate Removes all output files and shared state cache for a target
do_compile Compiles the source in the compilation directory
do_configure Configures the source by enabling and disabling any build-time and configuration options for the software being built
do_devpyshell Starts an interactive Python shell for development/debugging
do_devshell Starts a shell with the environment set up for development/debugging
do_fetch Fetches the source code
do_fetchall Fetches all remote sources required to build a target
do_install Copies files from the compilation directory to a holding area
do_listtasks Lists all defined tasks for a target
do_package Analyzes the content of the holding area and splits it into subsets based on available packages and files
do_package_qa Runs QA checks on packaged files
do_package_qa_setscene Runs QA checks on packaged files (setscene version)
do_package_setscene Analyzes the content of the holding area and splits it into subsets based on available packages and files (setscene version)
do_package_write_ipk Creates the actual IPK packages and places them in the Package Feed area
do_package_write_ipk_setscene Creates the actual IPK packages and places them in the Package Feed area (setscene version)
do_packagedata Creates package metadata used by the build system to generate the final packages
do_packagedata_setscene Creates package metadata used by the build system to generate the final packages (setscene version)
do_patch Locates patch files and applies them to the source code
do_populate_lic Writes license information for the recipe that is collected later when the image is constructed
do_populate_lic_setscene Writes license information for the recipe that is collected later when the image is constructed (setscene version)
do_populate_sysroot Copies a subset of files installed by do_install into the sysroot in order to make them available to other recipes
do_populate_sysroot_setscene Copies a subset of files installed by do_install into the sysroot in order to make them available to other recipes (setscene version)
do_prebuilt
do_recipe_sanity
do_recipe_sanity_all
do_unpack Unpacks the source code into a working directory
下載(fetch)、解包(unpack)、打補丁(patch)、配置(configure)、編譯(compile)、安裝(install)、打包(package)、staging、做安裝包(package_write_ipk)、構建文件系統等
有錯繼續執行:
bitbake -k recipe-name
執行環境:
bitbake -e
顯示執行過程:
bitbake -v
清除
bitbake -c cleanall recipe_name
清除包括clean、cleanall、cleanstate