diff options
author | Ross Burton <ross.burton@intel.com> | 2017-09-19 17:20:37 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-21 09:24:25 +0100 |
commit | dc6a45889d8bf0538bff27d976e8a29383682c5a (patch) | |
tree | f70fc6b3d3e94e14a9840776617e7b1cb7834cb2 /meta | |
parent | 7df44282c22fc29656a2c781090e4d8cf9c5bed1 (diff) | |
download | poky-dc6a45889d8bf0538bff27d976e8a29383682c5a.tar.gz |
classes/image: move image_qa to between rootfs and image
It was noticed that do_image_qa is useless when rm_work is enabled as the rootfs
directory is deleted before image_qa is called.
This indicates that image_qa is incorrectly scheduled as it failing should mean
images don't get generated, so move it between do_rootfs and do_image.
Also, add a little bit more documentation to the comments.
(From OE-Core rev: 62ce334e583ecdf1f93619f4131c0fa5d88d5b02)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/image.bbclass | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 3639aa44f4..4850eed771 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -297,8 +297,11 @@ addtask do_image_complete_setscene | |||
297 | # IMAGE_QA_COMMANDS += " \ | 297 | # IMAGE_QA_COMMANDS += " \ |
298 | # image_check_everything_ok \ | 298 | # image_check_everything_ok \ |
299 | # " | 299 | # " |
300 | # This task runs all functions in IMAGE_QA_COMMANDS after the image | 300 | # This task runs all functions in IMAGE_QA_COMMANDS after the rootfs |
301 | # construction has completed in order to validate the resulting image. | 301 | # construction has completed in order to validate the resulting image. |
302 | # | ||
303 | # The functions should use ${IMAGE_ROOTFS} to find the unpacked rootfs | ||
304 | # directory, which if QA passes will be the basis for the images. | ||
302 | fakeroot python do_image_qa () { | 305 | fakeroot python do_image_qa () { |
303 | from oe.utils import ImageQAFailed | 306 | from oe.utils import ImageQAFailed |
304 | 307 | ||
@@ -320,7 +323,7 @@ fakeroot python do_image_qa () { | |||
320 | imgname = d.getVar('IMAGE_NAME') | 323 | imgname = d.getVar('IMAGE_NAME') |
321 | bb.fatal("QA errors found whilst validating image: %s\n%s" % (imgname, qamsg)) | 324 | bb.fatal("QA errors found whilst validating image: %s\n%s" % (imgname, qamsg)) |
322 | } | 325 | } |
323 | addtask do_image_qa after do_image_complete before do_build | 326 | addtask do_image_qa after do_rootfs before do_image |
324 | 327 | ||
325 | SSTATETASKS += "do_image_qa" | 328 | SSTATETASKS += "do_image_qa" |
326 | SSTATE_SKIP_CREATION_task-image-qa = '1' | 329 | SSTATE_SKIP_CREATION_task-image-qa = '1' |