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-07 16:07:00 +0000 |
| commit | 517f511039ef7f88ecd2ee1c2cdcb1f779aa4f4d (patch) | |
| tree | 9e3d48b9e0c109137c90d73857a72b8b809a89d0 | |
| parent | 1d20618c55a8f74c81fefa5b36223280513654b1 (diff) | |
| download | poky-517f511039ef7f88ecd2ee1c2cdcb1f779aa4f4d.tar.gz | |
bitbake: 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.
(Bitbake rev: 2885034f42a1dce7586e081a0461b8932a3593bf)
Signed-off-by: Chris Laplante <chris.laplante@agilent.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
| -rw-r--r-- | bitbake/lib/bb/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/build.py b/bitbake/lib/bb/build.py index b6d23e6805..23b6ee455f 100644 --- a/bitbake/lib/bb/build.py +++ b/bitbake/lib/bb/build.py | |||
| @@ -65,6 +65,8 @@ class TaskBase(event.Event): | |||
| 65 | self.taskname = self._task | 65 | self.taskname = self._task |
| 66 | self.logfile = logfile | 66 | self.logfile = logfile |
| 67 | self.time = time.time() | 67 | self.time = time.time() |
| 68 | self.pn = d.getVar("PN") | ||
| 69 | self.pv = d.getVar("PV") | ||
| 68 | event.Event.__init__(self) | 70 | event.Event.__init__(self) |
| 69 | self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName()) | 71 | self._message = "recipe %s: task %s: %s" % (d.getVar("PF"), t, self.getDisplayName()) |
| 70 | 72 | ||
