summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/bbcontroller.py
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-02-02 12:13:58 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-02 12:34:53 +0000
commit2237c9fcaab289c68a92306602f92ca31313e533 (patch)
treeeb5dab57e1c886f6a15c3a872b7638853432690d /bitbake/lib/toaster/bldcontrol/bbcontroller.py
parentafe85485fe185b663a1285b5c27de3160bf06cf7 (diff)
downloadpoky-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/bbcontroller.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/bbcontroller.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/bbcontroller.py b/bitbake/lib/toaster/bldcontrol/bbcontroller.py
index dbfb2f3a04..cf3f1fde75 100644
--- a/bitbake/lib/toaster/bldcontrol/bbcontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/bbcontroller.py
@@ -140,25 +140,25 @@ class BuildEnvironmentController(object):
140 bblayerconffile.write("# line added by toaster build control\nBBLAYERS = \"" + " ".join(layerlist) + "\"") 140 bblayerconffile.write("# line added by toaster build control\nBBLAYERS = \"" + " ".join(layerlist) + "\"")
141 bblayerconffile.close() 141 bblayerconffile.close()
142 142
143 def writePreConfFile(self, variable_list):
144 prefilepath = os.path.join(self.be.builddir, "conf/toaster-pre.conf")
145 with open(prefilepath, "w") as prefile:
146 for i in variable_list:
147 prefile.write("%s=\"%s\"\n" % (i.name, i.value))
148 143
144 def writeConfFile(self, variable_list = None, raw = None):
145 """ Writes a configuration file in the build directory. Override with buildenv-specific implementation. """
146 raise Exception("FIXME: Must override to actually write a configuration file")
149 147
150 def startBBServer(self, brbe): 148
149 def startBBServer(self):
151 """ Starts a BB server with Toaster toasterui set up to record the builds, an no controlling UI. 150 """ Starts a BB server with Toaster toasterui set up to record the builds, an no controlling UI.
152 After this method executes, self.be bbaddress/bbport MUST point to a running and free server, 151 After this method executes, self.be bbaddress/bbport MUST point to a running and free server,
153 and the bbstate MUST be updated to "started". 152 and the bbstate MUST be updated to "started".
154 """ 153 """
155 raise Exception("Must override in order to actually start the BB server") 154 raise Exception("FIXME: Must override in order to actually start the BB server")
156 155
157 def stopBBServer(self): 156 def stopBBServer(self):
158 """ Stops the currently running BB server. 157 """ Stops the currently running BB server.
159 The bbstate MUST be updated to "stopped". 158 The bbstate MUST be updated to "stopped".
160 self.connection must be none. 159 self.connection must be none.
161 """ 160 """
161 raise Exception("FIXME: Must override stoBBServer")
162 162
163 def setLayers(self, bbs, ls): 163 def setLayers(self, bbs, ls):
164 """ Checks-out bitbake executor and layers from git repositories. 164 """ Checks-out bitbake executor and layers from git repositories.
@@ -168,7 +168,7 @@ class BuildEnvironmentController(object):
168 168
169 a word of attention: by convention, the first layer for any build will be poky! 169 a word of attention: by convention, the first layer for any build will be poky!
170 """ 170 """
171 raise Exception("Must override setLayers") 171 raise Exception("FIXME: Must override setLayers")
172 172
173 173
174 def getBBController(self): 174 def getBBController(self):