简体   繁体   English

Yocto bitbake 包组

[英]Yocto bitbake package group

I'm facing this problem.我正面临这个问题。 When I bitbake recipeA and recipeB separately, everything works fine.当我分别对 recipeA 和 recipeB 进行 bitbake 时,一切正常。

bitbake recipeA
bitbake recipeB

What I want to do is to group recipeA and recipeB into a package group我想要做的是将 recipeA 和 recipeB 分组到一个包组中

inherit packagegroup
PACKAGES  ="\
     packagegroup-my-package \
     "
RDEPENDS_${PN} += " \
     recipeA \
     recipeB \
     "

After that在那之后

bitbake packagegroup-my-package

Now begins my problems.现在开始我的问题。 All my processed recipes results remains in WORKDIR instead of going to DEPLOIDYR as expected, do_install is not processed (I suppose).我所有处理过的配方结果都保留在 WORKDIR 中,而不是按预期转到 DEPLOIDYR,do_install 未处理(我想)。

In first case execution, when I bitbake every recipe all my result are copied in to DEPLOYDIR, do_install is processed.在第一种情况下执行时,当我对每个配方进行 bitbake 时,所有结果都被复制到 DEPLOYDIR 中,do_install 被处理。

Thank you in advance for your support.预先感谢您对我们的支持。

I think you need to add it to your local.conf or to your image recipe file to install it.我认为您需要将它添加到您的 local.conf 或您的图像配方文件中才能安装它。

in the packagegroup class (which your recipe inherits) we clearly find :在 packagegroup 类(您的配方继承)中,我们清楚地发现:

# We only need the packaging tasks - disable the rest
deltask do_fetch
deltask do_unpack
deltask do_patch
deltask do_configure
deltask do_compile
deltask do_install
deltask do_populate_sysroot

I hope it helps you understand that.我希望它能帮助你理解这一点。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM