【问题标题】:Yocto bitbake error: Nothing Provides for 'recipe-name'Yocto bitbake 错误:没有提供“配方名称”
【发布时间】:2022-01-14 10:29:18
【问题描述】:

我在其中一个元层中有一个食谱。其结构如下:

meta-custom/swupdate/recipes-extended/images/recipe-name.bb

元自定义层也包含在 bblayers.conf 中。但是当我运行 bitbake recipe-name 时,出现以下错误:

Bitbake error: Nothing PROVIDES for 'recipe-name'. Closes matches:

谁能告诉我这是什么原因?

提前致谢!

【问题讨论】:

  • 您是否已将meta-custom 添加到您的bblayers.conf 中?
  • 如上所述,元自定义层已经存在于 bblayers.conf 中
  • recipes-extended上移一层,到meta-custom
  • 嗨@Oleksandr,你能告诉我为什么向上移动一层可以解决这个问题吗?

标签: yocto bitbake


【解决方案1】:

简短回答:在您的 local.conf 中,添加以下内容:

IMAGE_INSTALL_append = " recipe-name "

请务必在“recipe-name”中包含空格,否则您可能会遇到无法将您的配方与其他配方分开的错误,例如错误没有提供“someOtherRecipeyourrecipe-name”

长答案:忽略 local.conf,在您自己的层(如果适用)中,您可能在 conf/distro/distro.conf(或您命名的任何名称)中有一个发行版配置文件。这可以充当您的 local.conf,并且更受维护的 yocto 层的追捧。在其中,您将添加:

IMAGE_INSTALL_append = " recipe-name "

就像在 local.conf 中一样

【讨论】:

    猜你喜欢
    • 2018-07-17
    • 2018-04-03
    • 2015-04-06
    • 2021-07-08
    • 1970-01-01
    • 2020-10-02
    • 2019-12-19
    • 2015-06-04
    • 1970-01-01
    相关资源
    最近更新 更多