运行bitbake时出错

问题描述 投票:1回答:2

我已经安装了yocto项目和meta-raspberry层。当我尝试bitbake图像(bitbake rpi-basic-image)时,我收到这些错误:

user:~/Desktop/yocto_r/build-rpi$ bitbake rpi-basic-image
Loading cache: 100% |############################################| Time: 0:00:00
Loaded 15 entries from dependency cache.
ERROR: /home/user/Desktop/yocto_r/poky/meta-raspberrypi/recipes-core/images/rpi-test-image.bb: Deprecated variable(s) found: "IMAGE_DEPENDS_rpi-sdimg". Use do_image_<type>[depends] += "<recipe>:<task>" instead
ERROR: /home/user/Desktop/yocto_r/poky/meta-raspberrypi/recipes-core/images/rpi-basic-image.bb: Deprecated variable(s) found: "IMAGE_DEPENDS_rpi-sdimg". Use do_image_<type>[depends] += "<recipe>:<task>" instead
ERROR: /home/user/Desktop/yocto_r/poky/meta-raspberrypi/recipes-core/images/rpi-hwup-image.bb: Deprecated variable(s) found: "IMAGE_DEPENDS_rpi-sdimg". Use do_image_<type>[depends] += "<recipe>:<task>" instead
ERROR: Failed to parse recipe: /home//Desktop/yocto_r/poky/meta-raspberrypi/recipes-core/images/rpi-test-image.bb

谁知道问题是什么?

raspberry-pi raspberry-pi3 yocto bitbake
2个回答
0
投票

似乎配方与更新的图像类型类不兼容。用do_image_rpi-sdimg [depends]替换IMAGE_DEPENDS_rpi-sdimg。

例如,如果你有

IMAGE_DEPENDS_rpi-sdimg = "virtual/kernel"

然后用它替换它

do_image_rpi-sdimg[depends] += "virtual/kernel:do_populate_sysroot"

-2
投票

我也有这个问题。修改meta-raspberrypi / classes / sdcard_image-rpi.bbclass文件,如下所示

diff --git a/classes/sdcard_image-rpi.bbclass b/classes/sdcard_image-rpi.bbclass
index 79ab53a..91719f2 100644
--- a/classes/sdcard_image-rpi.bbclass
+++ b/classes/sdcard_image-rpi.bbclass
@@ -50,7 +50,7 @@ IMAGE_ROOTFS_ALIGNMENT = "4096"
 SDIMG_ROOTFS_TYPE ?= "ext3"
 SDIMG_ROOTFS = "${IMGDEPLOYDIR}/${IMAGE_NAME}.rootfs.${SDIMG_ROOTFS_TYPE}"

-IMAGE_DEPENDS_rpi-sdimg = " \
+do_image_rpi-sdimg = " \
                        parted-native \
                        mtools-native \
                        dosfstools-native \
© www.soinside.com 2019 - 2024. All rights reserved.