summaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-30 16:06:57 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-31 15:13:31 +0100
commitc6958bbd877fd48a7d92fd43b91b0e9c6755eed9 (patch)
tree3a6c2bc194f7a5c3f6b5933f7a98b3291175af30 /meta/classes/image.bbclass
parent7b37b0ac071e84bb369266efd12976c1637a2917 (diff)
downloadpoky-c6958bbd877fd48a7d92fd43b91b0e9c6755eed9.tar.gz
image/rm_work: Promote do_image_complete to be more sstate like
We relied on the missing do_image_complete_setscene task to ensure the dummy sstate tarball that was created would never be used. This lead to its own issues and a better fix for SSTATE_SKIP_CREATION has now been merged. We can therefore make do_image_complete look like a more standard sstate task which means image generation doesn't keep rerunning when using rm_work. We do need to turn do_image_complete's stamp into an sstate version to handle this (it otherwise matches the do_image_* glob). (From OE-Core rev: 2ff9d40dc88d43567472218cf3d3faf414398c71) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 0885fdb505..696aacdb9a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -289,6 +289,10 @@ do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}"
289do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" 289do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}"
290do_image_complete[stamp-extra-info] = "${MACHINE}" 290do_image_complete[stamp-extra-info] = "${MACHINE}"
291addtask do_image_complete after do_image before do_build 291addtask do_image_complete after do_image before do_build
292python do_image_complete_setscene () {
293 sstate_setscene(d)
294}
295addtask do_image_complete_setscene
292 296
293# Add image-level QA/sanity checks to IMAGE_QA_COMMANDS 297# Add image-level QA/sanity checks to IMAGE_QA_COMMANDS
294# 298#