]> code.ossystems Code Review - openembedded-core.git/commit
toaster.bbclass: improve package information collection
authorJoshua Lock <joshua.g.lock@intel.com>
Tue, 12 Apr 2016 14:40:44 +0000 (15:40 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 13 Apr 2016 09:12:43 +0000 (10:12 +0100)
commitf1f012962a18d16b1cc22bde836cbb46fe9e6088
tree2b5e6a1a4bf15ecd73df62cb52089f9591d010e0
parentccc61cee8f097862640722abb9a9f53781efdac3
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]

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>
meta/classes/toaster.bbclass