diff options
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r-- | bitbake/lib/bb/command.py | 11 | ||||
-rw-r--r-- | bitbake/lib/bb/event.py | 8 |
2 files changed, 19 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 0e0a35af69..c44c7a6a5e 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -746,3 +746,14 @@ class CommandsAsync: | |||
746 | command.finishAsyncCommand() | 746 | command.finishAsyncCommand() |
747 | clientComplete.needcache = False | 747 | clientComplete.needcache = False |
748 | 748 | ||
749 | def findSigInfo(self, command, params): | ||
750 | """ | ||
751 | Find signature info files via the signature generator | ||
752 | """ | ||
753 | pn = params[0] | ||
754 | taskname = params[1] | ||
755 | sigs = params[2] | ||
756 | res = bb.siggen.find_siginfo(pn, taskname, sigs, command.cooker.data) | ||
757 | bb.event.fire(bb.event.FindSigInfoResult(res), command.cooker.data) | ||
758 | command.finishAsyncCommand() | ||
759 | findSigInfo.needcache = False | ||
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index 59cca61424..3827dcfba4 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
@@ -819,3 +819,11 @@ class NetworkTestFailed(Event): | |||
819 | """ | 819 | """ |
820 | Event to indicate network test has failed | 820 | Event to indicate network test has failed |
821 | """ | 821 | """ |
822 | |||
823 | class FindSigInfoResult(Event): | ||
824 | """ | ||
825 | Event to return results from findSigInfo command | ||
826 | """ | ||
827 | def __init__(self, result): | ||
828 | Event.__init__(self) | ||
829 | self.result = result | ||