diff options
author | Alexandru DAMIAN <alexandru.damian@intel.com> | 2015-02-02 12:13:58 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-02 12:34:53 +0000 |
commit | 2237c9fcaab289c68a92306602f92ca31313e533 (patch) | |
tree | eb5dab57e1c886f6a15c3a872b7638853432690d /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |
parent | afe85485fe185b663a1285b5c27de3160bf06cf7 (diff) | |
download | poky-2237c9fcaab289c68a92306602f92ca31313e533.tar.gz |
bitbake: toaster: proper setup for build configuration
This patch makes sure that all the toaster conf files are actually
written from the build enviroment controllers.
Additionally, toaster checks that the 'daemon' program, which is used
to start the build system, is available (currently for localhost).
[YOCTO #7171]
(Bitbake rev: 0a1db7d1531f8254955e1152bcd8e6db4ec1d277)
Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 |