summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Laplante <chris.laplante@agilent.com>2020-01-22 12:26:04 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-03-06 17:29:18 +0000
commit2885034f42a1dce7586e081a0461b8932a3593bf (patch)
treed350b240d2db8c8c9006f59a864ebad70add082a
parent26ff7fa314d0f84f2557b183fb71fa873d914ee0 (diff)
downloadbitbake-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>
-rw-r--r--lib/bb/build.py2
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())