summaryrefslogtreecommitdiffstats
path: root/lib/toaster/bldcontrol/localhostbecontroller.py
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:42:20 +0000
commit3c2c269dbbbd9a56bd1d0cb4de676baaf3b7ce88 (patch)
tree0b981196da3f5a9badc36badf5bf9df3f797bb92 /lib/toaster/bldcontrol/localhostbecontroller.py
parentd59aabd2142982ca43963c68dd352bf3b170a458 (diff)
downloadbitbake-3c2c269dbbbd9a56bd1d0cb4de676baaf3b7ce88.tar.gz
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] 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>
Diffstat (limited to 'lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r--lib/toaster/bldcontrol/localhostbecontroller.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index 4f6f15c60..2215d7af2 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/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()