yocto:bitbake单独编译某个模块的方法

更新时间:2023-07-19 04:30:33 阅读: 评论:0

被鱼刺卡住喉咙了最有效的办法
yocto:bitbake单独编译某个模块的⽅法
在yocto编译环境中如果想单独编译某个模块
可以在已经搭建好的yocto编译环境中使⽤如下命令
Yocto中对于不同的Package,有不同的task,即可以执⾏不同的操作,有⼀些是所有包共通的,例如clean,build等。
我们可以使⽤下⾯命令来查看⼀个包都有哪些可执⾏的task:
bitbake Package -c listtasks
如:bitbake core-image-weston -c listtasks
有以下结果:
Initialising tasks: 100% |>>>>>>>>>>>>>>>>>>>>### NOTE: Executing RunQueue 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_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 t up for development/debugging
英语句型结构大全
do_dtv_checking
do_fetch                      Fetches the source code
do_fetchall                    Fetches all remote sources required to build a target
do_image
do_image_complete
do_image_complete_tscene      (tscene version)
do_image_ext4
do_image_qa
do_image_qa_tscene            (tscene 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 subts bad on available packages and files
do_package_qa_tscene        Runs QA checks on packaged files (tscene version)
do_package_tscene            Analyzes the content of the holding area and splits it into subts bad on available packages and files (tscene version)
do_package_write_rpm          Creates the actual RPM packages and places them in the Package Feed area草鱼怎样做好吃
猫咪可以吃狗粮吗do_package_write_rpm_tscene  Creates the actual RPM packages and places them in the Package Feed area (tscene version)
do_packagedata                Creates package metadata ud by the build system to generate the final packages
do_packagedata_tscene        Creates package metadata ud by the build system to generate the final packages (tscene version)
do_patch                      Locates patch files and applies them to the source code
do_populate_lic                Writes licen information for the recipe that is collected later when the image is constructed
do_populate_lic_tscene      Writes licen information for the recipe that is collected later when the image is constructed (tscene version)
do_populate_sdk                Creates the file and directory structure for an installable SDK
do_populate_sdk_ext
do_populate_sysroot_tscene  Copies a subt of files installed by do_install into the sysroot in order to make them available to other recipes (tscene 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_vp9_checking
NOTE: Tasks Summary: Attempted 1 tasks of which 0 didn't need to be rerun and all succeeded.
说明上⾯可以⽀持的CMD。
接着使⽤如下命令:
bitbake  -b bbfile -c CMD(before list)
bitbake  -b pulaudio_10.0 -c compile
人教版一年级语文上册
bitbake  -b pulaudio_10.0 -c clean
bitbake -b pulaudio_10.0 -c build
bitbake  -b pulaudio_10.0 -c configure
bitbake  -b pulaudio_10.0 -c compile
bitbake  -b pulaudio_10.0 -c install
⼀般要在yocto的编译环境中打patch的⽅式如下:
1,bbappend⽂件的编译⽅式
在poky⽬录下的meta/conf/有个f配置⽂件
检讨书300字# We have a conf and class directory, add to BBPATH
BBPATH .= ":${LAYERDIR}"
# We have recipes-* directories, add to BBFILES
BBFILES += "${LAYERDIR}/recipes-*/*/*.bb"
BBFILES += "${LAYERDIR}/recipes-*/*/*.bbappend"
其中BBFILES为需要参加编译的⽂件。
2,基于模块的源码的patch
把patch⽂件放在模块的放patch的⽬录下
100米短跑技巧找到该模块的bb⽂件,参照已有的打patch的⽅式,添加⾃⼰的patch。
⽐如:
SRC_URI = "freedesktop/software/pulaudio/releas/${BP}. \
file://0001-padsp-Make-it-compile-on-musl.patch \competed
file://0001-client-conf-Add-allow-autospawn-for-root.patch \
file://pulaudio-discuss-iochannel-don-t-u-variable-length-array-in-union.patch \          file://volatiles.04_pul \
file://fix-add-connectionid-in-simple.patch\(新增)

本文发布于:2023-07-19 04:30:33,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1087277.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:编译   模块   技巧
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图