summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-09 10:02:08 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-10 11:09:59 -0700
commitd51bf8d9f6d34542879d286e127dbeb4d3bd6253 (patch)
tree36e968db02ca0fa85b5fa0f6ebf81862708fdcfd /bitbake/lib/bb/command.py
parentb28f00718ca9e4fd9f7c04c1cbfcdb9e4a411efd (diff)
downloadast2050-yocto-poky-d51bf8d9f6d34542879d286e127dbeb4d3bd6253.zip
ast2050-yocto-poky-d51bf8d9f6d34542879d286e127dbeb4d3bd6253.tar.gz
bitbake: cooker/command: Add setFeatures command
Add a command to allow backends to set particular 'features' on the cooker (server). (Bitbake rev: f547d6ec6cfd677d71fa96dd3c69823c00dc6c69) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index e30d21d..3788207 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -257,6 +257,13 @@ class CommandsSync:
mask = params[3]
return bb.event.set_UIHmask(handlerNum, llevel, debug_domains, mask)
+ def setFeatures(self, command, params):
+ """
+ Set the cooker features to include the passed list of features
+ """
+ features = params[0]
+ command.cooker.setFeatures(features)
+
class CommandsAsync:
"""
A class of asynchronous commands
OpenPOWER on IntegriCloud