Skip to contentSkip to conversation

image: Always run do_rootfs_wicenv

PATCH New Richard Purdie 1 participant 1 message Jan 18, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image: Always run do_rootfs_wicenv

The wic command can be used externally but for this to work, the wic environment file needs to be present. Therefore write this out universally, it runs in parallel with other image construction so any performance implications are negligible.

meta/classes/image.bbclass +1 -1
index e81edb2..3870516 100644
@@ -277,7 +277,7 @@ python do_rootfs_wicenv () {
             if value:
                 envf.write('%s="%s"\n' % (var, value.strip()))
 }
-addtask do_rootfs_wicenv after do_rootfs before do_image_wic
+addtask do_rootfs_wicenv after do_rootfs before do_image_wic do_image_complete
 do_rootfs_wicenv[vardeps] += "${WICVARS}"
 do_rootfs_wicenv[prefuncs] = 'set_image_size'