From f13003385691ba9c267ee22e7291a10130532c77 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Tue, 19 Jan 2016 16:13:28 +0000 Subject: 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 Signed-off-by: Elliot Smith Signed-off-by: Richard Purdie --- bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 7 +++++++ 1 file changed, 7 insertions(+) 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() -- cgit 1.2.3-korg