]> code.ossystems Code Review - openembedded-core.git/commit
buildstats: Drop get_bn/set_pn and just use BUILDNAME
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 17 Dec 2015 14:54:01 +0000 (14:54 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 18 Dec 2015 12:18:13 +0000 (12:18 +0000)
commit918d83460639df273f38ae079ffeebd6a79b3373
tree73213fcc73b03c15fd2a79b8b086b95593343c69
parentf9fb02909f332365cad329352956a29cff6eba77
buildstats: Drop get_bn/set_pn and just use BUILDNAME

The current setting and getting of the "name" to use for buildstats is
convoluted and not particularly interesting. We only need this for the
e.getPkgs()[0] component of the path which is the first target listed
on the commandline. This is pretty arbitrary.

If we drop that piece, we can assume BUILDNAME is common for all events
and simply use this and query it. If BUILDNAME did change, that would
be a bug and it should be fixed elsewhere.

Also take the opportunity to share some common code since the function
now has the eventmask.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/buildstats.bbclass