summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorDongxiao Xu <dongxiao.xu@intel.com>2012-02-23 21:47:20 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-02-23 22:52:16 +0000
commit85fa989df7a4928e42aad2eb5f34a5f3c2c9ae93 (patch)
treedb7170fca22aa350f7897d85fa8874ca4f144cc3 /bitbake/lib
parentcb873084d0a29db4de571c01041f64ad390e1a2f (diff)
downloadast2050-yocto-poky-85fa989df7a4928e42aad2eb5f34a5f3c2c9ae93.zip
ast2050-yocto-poky-85fa989df7a4928e42aad2eb5f34a5f3c2c9ae93.tar.gz
command.py: Add a new API triggerEvent()
This functions enables the client to request triggering specific event from bitbake server. (Bitbake rev: 45da6d709a69697158fae92e1c0c0a6ac8f30831) Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/command.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 4e9e8d6..be26937 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -179,6 +179,12 @@ class CommandsSync:
"""
return bb.utils.cpu_count()
+ def triggerEvent(self, command, params):
+ """
+ Trigger a certain event
+ """
+ event = params[0]
+ bb.event.fire(eval(event), command.cooker.configuration.data)
class CommandsAsync:
"""
OpenPOWER on IntegriCloud