summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/image.bbclass10
1 files changed, 6 insertions, 4 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 83ba5c35f0..387051654e 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -393,6 +393,12 @@ python () {
393 else: 393 else:
394 subimages.append(realt) 394 subimages.append(realt)
395 395
396 after = 'do_image'
397 for dep in typedeps[t]:
398 after += ' do_image_%s' % dep.replace("-", "_")
399
400 t = t.replace("-", "_")
401
396 d.setVar('do_image_%s' % t, '\n'.join(cmds)) 402 d.setVar('do_image_%s' % t, '\n'.join(cmds))
397 d.setVarFlag('do_image_%s' % t, 'func', '1') 403 d.setVarFlag('do_image_%s' % t, 'func', '1')
398 d.setVarFlag('do_image_%s' % t, 'fakeroot', '1') 404 d.setVarFlag('do_image_%s' % t, 'fakeroot', '1')
@@ -402,10 +408,6 @@ python () {
402 d.appendVarFlag('do_image_%s' % t, 'vardeps', ' '.join(vardeps)) 408 d.appendVarFlag('do_image_%s' % t, 'vardeps', ' '.join(vardeps))
403 d.appendVarFlag('do_image_%s' % t, 'vardepsexclude', 'DATETIME') 409 d.appendVarFlag('do_image_%s' % t, 'vardepsexclude', 'DATETIME')
404 410
405 after = 'do_image'
406 for dep in typedeps[t]:
407 after += ' do_image_%s' % dep
408
409 bb.debug(2, "Adding type %s before %s, after %s" % (t, 'do_image_complete', after)) 411 bb.debug(2, "Adding type %s before %s, after %s" % (t, 'do_image_complete', after))
410 bb.build.addtask('do_image_%s' % t, 'do_image_complete', after, d) 412 bb.build.addtask('do_image_%s' % t, 'do_image_complete', after, d)
411} 413}