diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2016-01-19 16:13:28 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-19 17:38:51 +0000 |
commit | f13003385691ba9c267ee22e7291a10130532c77 (patch) | |
tree | 769ef38e547a16badce57922f048338fd584915f /bitbake | |
parent | 18357688e9aed4832a86dd4ff9400550dab01888 (diff) | |
download | poky-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>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 7 |
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): | |||
280 | # set up the build environment with the needed layers | 280 | # set up the build environment with the needed layers |
281 | self.setLayers(bitbake, layers, targets) | 281 | self.setLayers(bitbake, layers, targets) |
282 | 282 | ||
283 | # write configuration file | ||
284 | filepath = os.path.join(self.be.builddir, "conf/toaster.conf") | ||
285 | with open(filepath, 'w') as conf: | ||
286 | for var in variables: | ||
287 | conf.write('%s="%s"\n' % (var.name, var.value)) | ||
288 | conf.write('INHERIT+="toaster buildhistory"') | ||
289 | |||
283 | # get the bb server running with the build req id and build env id | 290 | # get the bb server running with the build req id and build env id |
284 | bbctrl = self.getBBController() | 291 | bbctrl = self.getBBController() |
285 | 292 | ||