运行bitbake时出错

时间:2017-10-23 09:49:07

标签: raspberry-pi raspberry-pi3 yocto bitbake

我安装了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

任何人都知道这是什么问题?

2 个答案:

答案 0 :(得分: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"

答案 1 :(得分:-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 \