diff options
-rw-r--r-- | bitbake-dev/lib/bb/command.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake-dev/lib/bb/command.py b/bitbake-dev/lib/bb/command.py index 293202be5..0d4ef4256 100644 --- a/bitbake-dev/lib/bb/command.py +++ b/bitbake-dev/lib/bb/command.py @@ -125,6 +125,15 @@ class CommandsSync: return bb.data.getVar(varname, command.cooker.configuration.data, expand) + def setVariable(self, command, params): + """ + Set the value of variable in configuration.data + """ + varname = params[0] + value = params[1] + bb.data.setVar(varname, value, command.cooker.configuration.data) + + class CommandsAsync: """ A class of asynchronous commands |