summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-18 22:01:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-07-21 08:41:11 +0100
commitdd71707d5a5a420a4406ce88164ac2a32cc04956 (patch)
treefd0dc4f3749c9a43d3157d16623ab3b3bcbc13ab /bitbake/lib/bb/command.py
parent201fe6ee427069eff60654a78722dfda987927bf (diff)
downloadpoky-dd71707d5a5a420a4406ce88164ac2a32cc04956.tar.gz
bitbake: event/command: Allow UI to request the UI eventhander ID
The UI may want to change its event mask however to do this, it needs the event handler's ID. Tweak the code to allow this to be stored and add a command to query it. Use the new command in the process server backend. (Bitbake rev: f8cf2cb58b80ce74f756a11a9773b6b0e78d51ee) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 36891b923f..eb7c86f4fe 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -238,6 +238,11 @@ class CommandsSync:
238 return command.cooker.matchFile(fMatch) 238 return command.cooker.matchFile(fMatch)
239 matchFile.needconfig = False 239 matchFile.needconfig = False
240 240
241 def getUIHandlerNum(self, command, params):
242 return bb.event.get_uihandler()
243 getUIHandlerNum.needconfig = False
244 getUIHandlerNum.readonly = True
245
241 def setEventMask(self, command, params): 246 def setEventMask(self, command, params):
242 handlerNum = params[0] 247 handlerNum = params[0]
243 llevel = params[1] 248 llevel = params[1]