diff options
author | Joshua Lock <joshua.g.lock@intel.com> | 2016-04-12 15:40:44 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-13 10:12:52 +0100 |
commit | f5033175ef51cf234ab5a85293a30bd9d7440d75 (patch) | |
tree | a033f2f73a1e5f38409dfeb9a30d09a19582cb77 /meta/classes/lib_package.bbclass | |
parent | 88f41780cad47b4340a6589e4e6d86722ab67aaa (diff) | |
download | poky-f5033175ef51cf234ab5a85293a30bd9d7440d75.tar.gz |
toaster.bbclass: improve package information collection
The PACKAGES variable doesn't include all packages potentially
generated by a recipe, not least of all because it doesn't include
dynamic packages created via do_split_packages() or similar.
Instead of trying to guess which packages were generated, walk
${PKGDESTWORK}/runtime to find all package information that was
written to disk. This allows us to read all information for the
complete list of packages generated by the recipe.
For example before this patch we get SinglePackageInfo events for
9 packages from ncurses. With the patch applied we get 20 events
for all of the packages created during an ncurses build.
As a bonus we also switch to using the same postfuncs for both
do_packagedata and do_packagedata_setscene as they each result
in a PKGDESTWORK with the relevant directories and files
created.
[YOCTO #9115]
(From OE-Core rev: f1f012962a18d16b1cc22bde836cbb46fe9e6088)
Signed-off-by: Joshua Lock <joshua.g.lock@intel.com>
Signed-off-by: Elliot Smith <elliot.smith@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/lib_package.bbclass')
0 files changed, 0 insertions, 0 deletions