mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
bitbake: toaster: write pre-read conf file for build variables
We change the setting of variables from directly injection into the set-up cooker to writing a conf file that is pre-read on bitbake server startup. This is needed because the injection can only happen after the variable set is parsed, and the variables already inferred, so setting up variables happens too late. [YOCTO #7045] (Bitbake rev: 854f680b5b9d2d0fa796af84cb1218545fbfc55a) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ed9fa17467
commit
3c37669272
@@ -135,6 +135,11 @@ class BuildEnvironmentController(object):
|
||||
bblayerconffile.write("# line added by toaster build control\nBBLAYERS = \"" + " ".join(layerlist) + "\"")
|
||||
bblayerconffile.close()
|
||||
|
||||
def writePreConfFile(self, variable_list):
|
||||
prefilepath = os.path.join(self.be.builddir, "conf/toaster-pre.conf")
|
||||
with open(prefilepath, "w") as prefile:
|
||||
for i in variable_list:
|
||||
prefile.write("%s=\"%s\"\n" % (i.name, i.value))
|
||||
|
||||
|
||||
def startBBServer(self, brbe):
|
||||
|
||||
Reference in New Issue
Block a user