]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: write variables to toaster.conf
authorEd Bartosh <ed.bartosh@linux.intel.com>
Tue, 19 Jan 2016 16:13:28 +0000 (16:13 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Jan 2016 17:42:20 +0000 (17:42 +0000)
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>
lib/toaster/bldcontrol/localhostbecontroller.py

index 4f6f15c601b5601acaf6b2247562c3de5f796fb7..2215d7af24be25028c201a5b661d40e551495458 100644 (file)
@@ -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()