aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2016-01-19 16:13:28 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-19 17:38:51 +0000
commitf13003385691ba9c267ee22e7291a10130532c77 (patch)
tree769ef38e547a16badce57922f048338fd584915f
parent18357688e9aed4832a86dd4ff9400550dab01888 (diff)
downloadopenembedded-core-contrib-f13003385691ba9c267ee22e7291a10130532c77.tar.gz
bitbake: toaster: write variables to toaster.conf
With the resent change in rootfs creation code setVariable rpc calls don't set variables for bitbake workers anymore. Writen variables to toaster.conf should solve this issue. [YOCTO #8910] (Bitbake rev: d6dfe40320ff6ca420d9f9016b4d1d83d10f1d59) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Elliot Smith <elliot.smith@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 4f6f15c601..2215d7af24 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -280,6 +280,13 @@ class LocalhostBEController(BuildEnvironmentController):
# set up the build environment with the needed layers
self.setLayers(bitbake, layers, targets)
+ # write configuration file
+ filepath = os.path.join(self.be.builddir, "conf/toaster.conf")
+ with open(filepath, 'w') as conf:
+ for var in variables:
+ conf.write('%s="%s"\n' % (var.name, var.value))
+ conf.write('INHERIT+="toaster buildhistory"')
+
# get the bb server running with the build req id and build env id
bbctrl = self.getBBController()