diff options
author | Julien Stephan <jstephan@baylibre.com> | 2023-09-25 10:04:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-28 12:38:26 +0100 |
commit | 8eeb58cf4a34546ca0c5dd6518ece317d8706c40 (patch) | |
tree | 42d7fff81a4156291cdc39a59909ace17140fca4 /bitbake/lib/bb/command.py | |
parent | fc5a15cc646b994edd26cd9d5040c8bad6634dc3 (diff) | |
download | poky-8eeb58cf4a34546ca0c5dd6518ece317d8706c40.tar.gz |
bitbake: bitbake: cooker: add a new function to retrieve task signatures
adding a new command in cooker to compute and get task signatures
this commit also add the associated command and event needed to get the
signatures using tinfoil
(Bitbake rev: 05c15162de90c41dad67e37a95ec9fdb440a7864)
Signed-off-by: Julien Stephan <jstephan@baylibre.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 8663eed933..f2ee587161 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -781,3 +781,9 @@ class CommandsAsync: | |||
781 | bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.databuilder.mcdata[mc]) | 781 | bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.databuilder.mcdata[mc]) |
782 | command.finishAsyncCommand() | 782 | command.finishAsyncCommand() |
783 | findSigInfo.needcache = False | 783 | findSigInfo.needcache = False |
784 | |||
785 | def getTaskSignatures(self, command, params): | ||
786 | res = command.cooker.getTaskSignatures(params[0], params[1]) | ||
787 | bb.event.fire(bb.event.GetTaskSignatureResult(res), command.cooker.data) | ||
788 | command.finishAsyncCommand() | ||
789 | getTaskSignatures.needcache = True | ||