diff options
author | Chris Laplante <chris.laplante@agilent.com> | 2020-01-22 12:26:04 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-03-06 17:29:18 +0000 |
commit | 2885034f42a1dce7586e081a0461b8932a3593bf (patch) | |
tree | d350b240d2db8c8c9006f59a864ebad70add082a /lib/bb | |
parent | 26ff7fa314d0f84f2557b183fb71fa873d914ee0 (diff) | |
download | bitbake-contrib-2885034f42a1dce7586e081a0461b8932a3593bf.tar.gz |
build.py: augment TaskBase to capture PN and PV
PF is already captured, but it's a pain to try to parse out PN and PV,
which can be helpful to have available.
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb')
-rw-r--r-- | lib/bb/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index b6d23e680..23b6ee455 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -65,6 +65,8 @@ class TaskBase(event.Event): self.taskname = self._task self.logfile = logfile self.time = time.time() + self.pn = d.getVar("PN") + self.pv = d.getVar("PV") event.Event.__init__(self) self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName()) |