diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-04-09 15:38:51 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-04-11 18:10:18 +0100 |
commit | ba1d8e36917f9d048e0a6b1bc3450b492497c63c (patch) | |
tree | bf934ebd9dd0d15102062a3cd4a4d388491ebe8c /meta/classes/toaster.bbclass | |
parent | 31a293d0dc3c6cd6515ded5c00bd2089c3e1826c (diff) | |
download | poky-ba1d8e36917f9d048e0a6b1bc3450b492497c63c.tar.gz |
toaster: fix SDK artifact capture
Use the TaskArtifacts event to scan the SDK and ESDK manifests
to cleanly collect the respective artifact files.
The previous method was broken when the SDK file deployment moved
from the do_populate_sdk[_ext] tasks to their sstate tasks. That
method is disabled (but not yet removed) in preparation for the
rest of refactor work for the parent #10283 work.
[YOCTO #10850]
(From OE-Core rev: a6ec56d372f833be50f57bcb79b6ebe78bb93be0)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/toaster.bbclass')
-rw-r--r-- | meta/classes/toaster.bbclass | 21 |
1 files changed, 16 insertions, 5 deletions
diff --git a/meta/classes/toaster.bbclass b/meta/classes/toaster.bbclass index 4de380bce2..296e4764f0 100644 --- a/meta/classes/toaster.bbclass +++ b/meta/classes/toaster.bbclass | |||
@@ -328,8 +328,18 @@ python toaster_artifacts() { | |||
328 | if e.taskname in ["do_deploy", "do_image_complete", "do_populate_sdk", "do_populate_sdk_ext"]: | 328 | if e.taskname in ["do_deploy", "do_image_complete", "do_populate_sdk", "do_populate_sdk_ext"]: |
329 | d2 = d.createCopy() | 329 | d2 = d.createCopy() |
330 | d2.setVar('FILE', e.taskfile) | 330 | d2.setVar('FILE', e.taskfile) |
331 | d2.setVar('SSTATE_MANMACH', d2.expand("${MACHINE}")) | 331 | # Use 'stamp-extra-info' if present, else use workaround |
332 | # to determine 'SSTATE_MANMACH' | ||
333 | extrainf = d2.getVarFlag(e.taskname, 'stamp-extra-info') | ||
334 | if extrainf: | ||
335 | d2.setVar('SSTATE_MANMACH', extrainf) | ||
336 | else: | ||
337 | if "do_populate_sdk" == e.taskname: | ||
338 | d2.setVar('SSTATE_MANMACH', d2.expand("${MACHINE}${SDKMACHINE}")) | ||
339 | else: | ||
340 | d2.setVar('SSTATE_MANMACH', d2.expand("${MACHINE}")) | ||
332 | manifest = oe.sstatesig.sstate_get_manifest_filename(e.taskname[3:], d2)[0] | 341 | manifest = oe.sstatesig.sstate_get_manifest_filename(e.taskname[3:], d2)[0] |
342 | |||
333 | if os.access(manifest, os.R_OK): | 343 | if os.access(manifest, os.R_OK): |
334 | with open(manifest) as fmanifest: | 344 | with open(manifest) as fmanifest: |
335 | artifacts = [fname.strip() for fname in fmanifest] | 345 | artifacts = [fname.strip() for fname in fmanifest] |
@@ -356,8 +366,9 @@ do_packagedata_setscene[vardepsexclude] += "toaster_package_dumpdata " | |||
356 | do_package[postfuncs] += "toaster_package_dumpdata " | 366 | do_package[postfuncs] += "toaster_package_dumpdata " |
357 | do_package[vardepsexclude] += "toaster_package_dumpdata " | 367 | do_package[vardepsexclude] += "toaster_package_dumpdata " |
358 | 368 | ||
359 | do_populate_sdk[postfuncs] += "toaster_artifact_dumpdata " | 369 | #do_populate_sdk[postfuncs] += "toaster_artifact_dumpdata " |
360 | do_populate_sdk[vardepsexclude] += "toaster_artifact_dumpdata " | 370 | #do_populate_sdk[vardepsexclude] += "toaster_artifact_dumpdata " |
371 | |||
372 | #do_populate_sdk_ext[postfuncs] += "toaster_artifact_dumpdata " | ||
373 | #do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata " | ||
361 | 374 | ||
362 | do_populate_sdk_ext[postfuncs] += "toaster_artifact_dumpdata " | ||
363 | do_populate_sdk_ext[vardepsexclude] += "toaster_artifact_dumpdata " | ||