Skip to contentSkip to conversation

image.bbclass: fix EXTRA_IMAGEDEPENDS dependencies

PATCH New [email protected] 1 participant 1 message Aug 4, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image.bbclass: fix EXTRA_IMAGEDEPENDS dependencies

From: Ming Liu <[email protected]>

Sometimes the deploy tasks of EXTRA_IMAGEDEPENDS are also needed by image, for instance, in qemuriscv64/qemuriscv machines:
- EXTRA_IMAGEDEPENDS += "u-boot"
- EXTRA_IMAGEDEPENDS += "opensbi"

and there are also a lot of similar usuages in some BSP layers like meta-freescale.

So we change to let image's do_image_complete depend on do_build task of EXTRA_IMAGEDEPENDS recipes, to be able to depend on do_deploy task as well as do_populate_sysroot task.

---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/image.bbclass +1 -1
index 682858d..89ec2b4 100644
@@ -144,7 +144,7 @@ python () {
             deps += " %s:%s" % (dep, task)
         return deps
 
-    d.appendVarFlag('do_image_complete', 'depends', extraimage_getdepends('do_populate_sysroot'))
+    d.appendVarFlag('do_image_complete', 'depends', extraimage_getdepends(d.getVar('RM_WORK_BUILD_WITHOUT') or 'do_build'))
 
     deps = " " + imagetypes_getdepends(d)
     d.appendVarFlag('do_rootfs', 'depends', deps)
Signature · 1 line
2.7.4