[英]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.