Yocto image/package/task example

1.  task for  Image 


[lake@localhost yocto3.2_poky]$ bitbake -c  listtasks   core-image-minimal
Loading cache: 100% |############################################################################| Time: 0:00:00
Loaded 1354 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.48.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal-4.8"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "qemux86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "3.2.1"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta
meta-poky
meta-yocto-bsp       = "HEAD:671fe65b31ca35379916a180415e1ab7d47bd51b"

Initialising tasks: 100% |#######################################################################| Time: 0:00:01
Sstate summary: Wanted 0 Found 0 Missed 0 Current 0 (0% match, 0% complete)
NOTE: No setscene tasks
NOTE: Executing Tasks
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_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_deploy_source_date_epoch
do_deploy_source_date_epoch_setscene   (setscene version)
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_flush_pseudodb
do_image
do_image_complete
do_image_complete_setscene             (setscene version)
do_image_ext4
do_image_qa
do_image_qa_setscene                   (setscene version)
do_image_tar
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_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_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_deploy
do_populate_lic_setscene              Writes license information for the recipe that is collected later when the image is constructed (setscene version)
do_populate_sdk                       Creates the file and directory structure for an installable SDK
do_populate_sdk_ext
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_prepare_recipe_sysroot
do_rootfs                             Creates the root filesystem (file and directory structure) for an image
do_rootfs_wicenv
do_sdk_depends
do_unpack                             Unpacks the source code into a working directory
do_write_qemuboot_conf
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.

######  fetch all download packages 

 [lake@localhost yocto3.2_poky] bitbake -c do_fetch      core-image-minimal     -v



2. package task  

bitbake   <packagename>  -f (force)   -c (call task)   <taskname>  <imagenamge> 
[lake@localhost yocto3.2_poky]$ bitbake    glibc   -f -c  do_build     core-image-minimal 


## Get task graphic  (-g) file  for image 
###  [lake@localhost yocto3.2_poky]$ bitbake -g   core-image-minimal
Loading cache: 100% |############################################################################| Time: 0:00:00
Loaded 1354 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: PN build list saved to 'pn-buildlist'
NOTE: Task dependencies saved to 'task-depends.dot'
###  list all task  
[lake@localhost yocto3.2_poky]$ cat   task-depends.dot     | grep -v -e '-native' | grep -v digraph | grep -v -e '-image' | awk '{print $1}' | sort | uniq
}
"acl.do_build" 
..............
"glibc.do_build"
"glibc.do_compile"
"glibc.do_configure"
"glibc.do_deploy_source_date_epoch"
"glibc.do_fetch"
"glibc.do_install"
"glibc.do_package"
"glibc.do_packagedata"
"glibc.do_package_qa"
"glibc.do_package_write_ipk"
"glibc.do_patch"
"glibc.do_populate_lic"
"glibc.do_populate_sysroot"
"glibc.do_prepare_recipe_sysroot"
"glibc.do_stash_locale"
"glibc.do_unpack"

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值