[bitbake-devel] [PATCH] build.py: augment TaskBase to capture PN and PV

Chris Laplante chris.laplante at agilent.com
Wed Jan 22 17:26:04 UTC 2020


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 at agilent.com>
---
 lib/bb/build.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/bb/build.py b/lib/bb/build.py
index b6d23e6..23b6ee4 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())
 
-- 
2.7.4



More information about the bitbake-devel mailing list