summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-06-13 10:38:16 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-07-02 16:47:45 +0100
commit4147d2e52f528d0dd9079da9a785ec637e2d67d5 (patch)
tree7f31b4cf38a03702ae00b99f6a0b92ea5c955d50 /meta/classes/image.bbclass
parent1d9e129c25ff28aab89a8f56690ffe76269e4e96 (diff)
downloadpoky-4147d2e52f528d0dd9079da9a785ec637e2d67d5.tar.gz
EXTRA_IMAGEDEPENDS is used to ensure things like qemu-native are built and these are not strictly dependencies of the do_rootfs task. This patch moves them to the do_build task allowing bitbake a little more flexibility about when things need to get built by.
I noticed this when qemu-native failed to build and a rootfs was not generated which is not the intended behaviour. Also update the syntax to use appendVarFlag instead of get/setVarFlag (From OE-Core rev: fa13e83ec3f91dce866ac212e91b62db24b6486d) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass8
1 files changed, 5 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0772363f18..7e4bb696cf 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -81,11 +81,13 @@ IMAGE_TYPE_vmdk = '${@base_contains("IMAGE_FSTYPES", "vmdk", "vmdk", "empty", d)
81inherit image-${IMAGE_TYPE_vmdk} 81inherit image-${IMAGE_TYPE_vmdk}
82 82
83python () { 83python () {
84 deps = d.getVarFlag('do_rootfs', 'depends') or "" 84 deps = " " + imagetypes_getdepends(d)
85 deps += imagetypes_getdepends(d) 85 d.appendVarFlag('do_rootfs', 'depends', deps)
86
87 deps = ""
86 for dep in (d.getVar('EXTRA_IMAGEDEPENDS', True) or "").split(): 88 for dep in (d.getVar('EXTRA_IMAGEDEPENDS', True) or "").split():
87 deps += " %s:do_populate_sysroot" % dep 89 deps += " %s:do_populate_sysroot" % dep
88 d.setVarFlag('do_rootfs', 'depends', deps) 90 d.appendVarFlag('do_build', 'depends', deps)
89 91
90 # If we don't do this we try and run the mapping hooks while parsing which is slow 92 # If we don't do this we try and run the mapping hooks while parsing which is slow
91 # bitbake should really provide something to let us know this... 93 # bitbake should really provide something to let us know this...