From 3e094da513e1220319288806cb76ddf804772afd Mon Sep 17 00:00:00 2001 From: Alexandru DAMIAN Date: Wed, 18 Sep 2013 13:15:51 +0100 Subject: bitbake: cooker, command: add a command to return global data Adding the 'getAllKeysWithFlags' read-only command that will return a dump of the global data state, together with specified flags for each key. The flag list is passed in as the first parameter to the command. This will be used by UI clients to get the build configuration. Signed-off-by: Alexandru DAMIAN Signed-off-by: Richard Purdie --- lib/bb/command.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'lib/bb/command.py') diff --git a/lib/bb/command.py b/lib/bb/command.py index f1abaf70d..21a6de0f6 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -145,6 +145,15 @@ class CommandsSync: """ command.cooker.shutdown(True) + def getAllKeysWithFlags(self, command, params): + """ + Returns a dump of the global state. Call with + variable flags to be retrieved as params. + """ + flaglist = params[0] + return command.cooker.getAllKeysWithFlags(flaglist) + getAllKeysWithFlags.readonly = True + def getVariable(self, command, params): """ Read the value of a variable from data -- cgit 1.2.3-korg