diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-09-01 11:56:01 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-04 00:07:28 +0100 |
commit | def348533aac9d6be06f912dd245d50dcc406816 (patch) | |
tree | c8c4279efeea7bbf9446b2abf25775d87b9ba61b /meta/classes/image.bbclass | |
parent | 5f9889edb3bd3948285b3ffb9880c7b38f35e65b (diff) | |
download | poky-def348533aac9d6be06f912dd245d50dcc406816.tar.gz |
image.bbclass: Put image_complete under sstate control
Adding image_complete task should make sstate machinery
to generate manifest for deployed images and do final
deployment to DEPLOY_DIR_IMAGE.
Made sure IMGDEPLOYDIR doesn't contain images from past deployments
to prevent them to be included into sstate manifests.
Set stamp-extra-info flag for do_image_complete task. This flag
is used in the name of sstate manifest. Setting it to predetermined
value for image_complete should help to get correct manifest
filenames when processing runQueueTask events.
(From OE-Core rev: d54339d4b1a7e884de636f6325ca60409ebd95ff)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r-- | meta/classes/image.bbclass | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index f6ebbca5f3..8c8b8a2bf2 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -74,7 +74,7 @@ IMAGE_INSTALL[type] = "list" | |||
74 | export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL} ${FEATURE_INSTALL}" | 74 | export PACKAGE_INSTALL ?= "${IMAGE_INSTALL} ${ROOTFS_BOOTSTRAP_INSTALL} ${FEATURE_INSTALL}" |
75 | PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}" | 75 | PACKAGE_INSTALL_ATTEMPTONLY ?= "${FEATURE_INSTALL_OPTIONAL}" |
76 | 76 | ||
77 | IMGDEPLOYDIR = "${DEPLOY_DIR_IMAGE}" | 77 | IMGDEPLOYDIR = "${WORKDIR}/deploy-${PN}-image-complete" |
78 | 78 | ||
79 | # Images are generally built explicitly, do not need to be part of world. | 79 | # Images are generally built explicitly, do not need to be part of world. |
80 | EXCLUDE_FROM_WORLD = "1" | 80 | EXCLUDE_FROM_WORLD = "1" |
@@ -251,7 +251,7 @@ fakeroot python do_rootfs () { | |||
251 | progress_reporter.finish() | 251 | progress_reporter.finish() |
252 | } | 252 | } |
253 | do_rootfs[dirs] = "${TOPDIR}" | 253 | do_rootfs[dirs] = "${TOPDIR}" |
254 | do_rootfs[cleandirs] += "${S}" | 254 | do_rootfs[cleandirs] += "${S} ${IMGDEPLOYDIR}" |
255 | do_rootfs[umask] = "022" | 255 | do_rootfs[umask] = "022" |
256 | addtask rootfs before do_build | 256 | addtask rootfs before do_build |
257 | 257 | ||
@@ -275,6 +275,11 @@ fakeroot python do_image_complete () { | |||
275 | } | 275 | } |
276 | do_image_complete[dirs] = "${TOPDIR}" | 276 | do_image_complete[dirs] = "${TOPDIR}" |
277 | do_image_complete[umask] = "022" | 277 | do_image_complete[umask] = "022" |
278 | SSTATETASKS += "do_image_complete" | ||
279 | SSTATE_SKIP_CREATION_task-image-complete = '1' | ||
280 | do_image_complete[sstate-inputdirs] = "${IMGDEPLOYDIR}" | ||
281 | do_image_complete[sstate-outputdirs] = "${DEPLOY_DIR_IMAGE}" | ||
282 | do_image_complete[stamp-extra-info] = "${MACHINE}" | ||
278 | addtask do_image_complete after do_image before do_build | 283 | addtask do_image_complete after do_image before do_build |
279 | 284 | ||
280 | # Add image-level QA/sanity checks to IMAGE_QA_COMMANDS | 285 | # Add image-level QA/sanity checks to IMAGE_QA_COMMANDS |