简体   繁体   English

用Python编写的Yocto食谱在尝试使用Bitbake进行构建时给我一个错误

[英]Yocto recipe written in python giving me an error when trying to build with Bitbake

It's the first time i have come across a recipe file written in python and it's giving me an error. 这是我第一次遇到用python编写的配方文件,这给了我一个错误。 The error is: 错误是:

../meta-intel/recipes-rt/images/core-image-rt.bb: Error executing a python function in <code>:

This is a recipe which is coming from the meta-intel branch "[master] intel-vaapi-driver: 2.1.0 -> 2.2.0". 这是来自meta-intel分支“ [master] intel-vaapi-driver:2.1.0-> 2.2.0”的食谱。

My poky version is" [morty] documentation: Updated manual revision table for 2.2.4 release date. 我讨厌的版本是[[mortry]文档:更新了2.2.4发布日期的手动修订表。

My BITBAKE version is: "BitBake Build Tool Core version 1.32.0" 我的BITBAKE版本是:“ BitBake Build Tool Core 1.32.0”

The contents of core-image-rt.bb are: core-image-rt.bb的内容是:

    require recipes-core/images/core-image-minimal.bb

# Skip processing of this recipe if linux-intel-rt is not explicitly specified as the
# PREFERRED_PROVIDER for virtual/kernel. This avoids errors when trying
# to build multiple virtual/kernel providers.
python () {
    if d.getVar("PREFERRED_PROVIDER_virtual/kernel") != "linux-intel-rt":
        raise bb.parse.SkipPackage("Set PREFERRED_PROVIDER_virtual/kernel to linux-intel-rt to enable it")
}

DESCRIPTION = "A small image just capable of allowing a device to boot plus a \
real-time test suite and tools appropriate for real-time use."
DEPENDS += "linux-intel-rt"

IMAGE_INSTALL += "rt-tests hwlatdetect"

LICENSE = "MIT"

If you need any additional information please let me know and i'll try and supply it. 如果您需要任何其他信息,请让我知道,我将尽力提供。

I can normally build images on my ubuntu machine but don't believe have ever had to build an image in which the recipes were written in python 我通常可以在ubuntu机器上构建映像,但不必相信曾经构建过用python编写配方的映像

You are using incompatible API of using g.getVar method. 您正在使用使用g.getVar方法的不兼容API。 In morty release as the last one with old way of using second parameter, there is still need to provide boolean parameter: morty版本作为使用第二个参数的旧方法的最后一个版本中,仍然需要提供布尔参数:

...
if d.getVar("PREFERRED_PROVIDER_virtual/kernel", True) != "linux-intel-rt":
...

Please take a look at one of the commit , that remove this in next releases. 请看一看commit ,在下一发行版中将其删除。

暂无
暂无

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

相关问题 如何在 yocto 中构建没有 python 的 Postgresql 配方? - How to build Postgresql recipe without python in yocto? yocto/bitbake 配方中“__anonymous”函数的含义是什么? - What is the meaning of '__anonymous' function in a yocto/bitbake recipe? 无法安装用于自定义 Python Wheel 文件的 Yocto Warrior 自定义 Bitbake 配方,因为找不到 pip3 - Yocto Warrior Custom Bitbake Recipe for Custom Python Wheel file cannot install because pip3 not found 用于 NVIDIA Jetson Nano 的 PyTorch 的 Yocto Warrior Bitbake 配方 - Yocto Warrior Bitbake Recipe for PyTorch for NVIDIA Jetson Nano yocto bitbake:使用python命令行选项运行bitbake python任务 - yocto bitbake: running bitbake python task with python command line options Yocto 食谱 python whl package - Yocto recipe python whl package 尝试通过django / python发送电子邮件时,python smtp starttls()给我一个SMTPServerDisconnect错误 - python smtp starttls() is giving me a SMTPServerDisconnect Error, when trying to send emails via django/python 如何在yocto构建期间从bitbake bb文件执行python脚本 - How to execute python script from bitbake bb file during yocto build 如何在Yocto / Bitbake的另一个食谱中引用/找到一个食谱的$ {PV}? - How can I reference/find the ${PV} of one recipe in another recipe in Yocto/Bitbake? Python 请求库在尝试使用键检索值时给我一个列表错误 - Python requests library giving me a list error when trying to retrieve a value using a key
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM