From: Ed Bartosh Date: Wed, 2 Dec 2015 18:02:53 +0000 (-0800) Subject: bitbake: toaster: implement BitbakeController.getVariable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=993bc7eacd25a3f20825a892b1ebd92ed806bbda;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git bitbake: toaster: implement BitbakeController.getVariable Added new API to get value of bitbake variable from bitbake server. The API will be used to update INHERIT variable instead of writing it to the toaster configuration files. (Bitbake rev: effc371e3a4a2262e53e9e560c7c08cffad195da) Signed-off-by: Ed Bartosh Signed-off-by: brian avery Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/toaster/bldcontrol/bbcontroller.py b/bitbake/lib/toaster/bldcontrol/bbcontroller.py index 3d98ad7e1ef..ba009313e70 100644 --- a/bitbake/lib/toaster/bldcontrol/bbcontroller.py +++ b/bitbake/lib/toaster/bldcontrol/bbcontroller.py @@ -52,6 +52,9 @@ class BitbakeController(object): def setVariable(self, name, value): return self._runCommand(["setVariable", name, value]) + def getVariable(self, name): + return self._runCommand(["getVariable", name]) + def build(self, targets, task = None): if task is None: task = "build"