toaster: write variables to toaster.conf
PATCH 1/1 toaster: write variables to toaster.conf
From: Ed Bartosh <[email protected]>
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 <[email protected]>
Signed-off-by Elliot Smith <[email protected]>
--- bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 7 +++++++ 1 file changed, 7 insertions(+)
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +7 -0
@@ -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()
Signature · 12 lines
1.9.3 --------------------------------------------------------------------- Intel Corporation (UK) Limited Registered No. 1134945 (England) Registered Office: Pipers Way, Swindon SN3 1RJ VAT No: 860 2173 47 This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.