2017-10-23 4 views
1

yocto 프로젝트와 메타 - 라스베리 레이어를 설치했습니다.bitbake를 실행할 때 오류가 발생했습니다.

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 

누구든지 문제가 무엇인지 알고있다 : 나는 이러한 오류를 수신 (RPI-기본 이미지 bitbake) 이미지를 bitbake 할 때?

답변

0

레시피가 업데이트 된 이미지 유형 클래스와 호환되지 않는 것 같습니다. IMAGE_DEPENDS_rpi-sdimg을 do_image_rpi-sdimg로 바꿉니다. [depends]. 예를 들어

당신이

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 \ 
관련 문제