diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index 980751fb96..47708d169a 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -82,6 +82,17 @@ class LocalhostBEController(BuildEnvironmentController): | |||
82 | self._createdirpath(self.be.builddir) | 82 | self._createdirpath(self.be.builddir) |
83 | self._shellcmd("bash -c \"source %s/oe-init-build-env %s\"" % (self.pokydirname, self.be.builddir)) | 83 | self._shellcmd("bash -c \"source %s/oe-init-build-env %s\"" % (self.pokydirname, self.be.builddir)) |
84 | 84 | ||
85 | |||
86 | def writeConfFile(self, file_name, variable_list = None, raw = None): | ||
87 | filepath = os.path.join(self.be.builddir, file_name) | ||
88 | with open(filepath, "w") as conffile: | ||
89 | if variable_list is not None: | ||
90 | for i in variable_list: | ||
91 | conffile.write("%s=\"%s\"\n" % (i.name, i.value)) | ||
92 | if raw is not None: | ||
93 | conffile.write(raw) | ||
94 | |||
95 | |||
85 | def startBBServer(self): | 96 | def startBBServer(self): |
86 | assert self.pokydirname and os.path.exists(self.pokydirname) | 97 | assert self.pokydirname and os.path.exists(self.pokydirname) |
87 | assert self.islayerset | 98 | assert self.islayerset |