blob: 16c7c80441ccbb2b350a3d7e5ca0a29c9d932296 [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001#
2# ex:ts=4:sw=4:sts=4:et
3# -*- tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*-
4#
5# BitBake Toaster Implementation
6#
7# Copyright (C) 2014 Intel Corporation
8#
9# This program is free software; you can redistribute it and/or modify
10# it under the terms of the GNU General Public License version 2 as
11# published by the Free Software Foundation.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU General Public License for more details.
17#
18# You should have received a copy of the GNU General Public License along
19# with this program; if not, write to the Free Software Foundation, Inc.,
20# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21
22
23import os
24import sys
25import re
Patrick Williamsf1e5d692016-03-30 15:21:19 -050026import shutil
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027import time
Patrick Williamsc124f4f2015-09-15 14:41:29 -050028from django.db import transaction
29from django.db.models import Q
30from bldcontrol.models import BuildEnvironment, BRLayer, BRVariable, BRTarget, BRBitbake
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031from orm.models import CustomImageRecipe, Layer, Layer_Version, ProjectLayer, ToasterSetting
Patrick Williamsc124f4f2015-09-15 14:41:29 -050032import subprocess
33
34from toastermain import settings
35
Patrick Williamsc0f7c042017-02-23 20:41:17 -060036from bldcontrol.bbcontroller import BuildEnvironmentController, ShellCmdException, BuildSetupException, BitbakeController
Patrick Williamsc124f4f2015-09-15 14:41:29 -050037
38import logging
39logger = logging.getLogger("toaster")
40
41from pprint import pprint, pformat
42
43class LocalhostBEController(BuildEnvironmentController):
44 """ Implementation of the BuildEnvironmentController for the localhost;
45 this controller manages the default build directory,
46 the server setup and system start and stop for the localhost-type build environment
47
48 """
49
50 def __init__(self, be):
51 super(LocalhostBEController, self).__init__(be)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052 self.pokydirname = None
53 self.islayerset = False
54
Brad Bishopd7bf8c12018-02-25 22:55:05 -050055 def _shellcmd(self, command, cwd=None, nowait=False,env=None):
Patrick Williamsc124f4f2015-09-15 14:41:29 -050056 if cwd is None:
57 cwd = self.be.sourcedir
Brad Bishopd7bf8c12018-02-25 22:55:05 -050058 if env is None:
59 env=os.environ.copy()
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060
Brad Bishopd7bf8c12018-02-25 22:55:05 -050061 logger.debug("lbc_shellcmd: (%s) %s" % (cwd, command))
62 p = subprocess.Popen(command, cwd = cwd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE, env=env)
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050063 if nowait:
64 return
Patrick Williamsc124f4f2015-09-15 14:41:29 -050065 (out,err) = p.communicate()
66 p.wait()
67 if p.returncode:
68 if len(err) == 0:
69 err = "command: %s \n%s" % (command, out)
70 else:
71 err = "command: %s \n%s" % (command, err)
Patrick Williamsc0f7c042017-02-23 20:41:17 -060072 logger.warning("localhostbecontroller: shellcmd error %s" % err)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050073 raise ShellCmdException(err)
74 else:
75 logger.debug("localhostbecontroller: shellcmd success")
Patrick Williamsc0f7c042017-02-23 20:41:17 -060076 return out.decode('utf-8')
Patrick Williamsc124f4f2015-09-15 14:41:29 -050077
Patrick Williamsc124f4f2015-09-15 14:41:29 -050078 def getGitCloneDirectory(self, url, branch):
Patrick Williamsf1e5d692016-03-30 15:21:19 -050079 """Construct unique clone directory name out of url and branch."""
Patrick Williamsc124f4f2015-09-15 14:41:29 -050080 if branch != "HEAD":
Patrick Williamsc0f7c042017-02-23 20:41:17 -060081 return "_toaster_clones/_%s_%s" % (re.sub('[:/@+%]', '_', url), branch)
Patrick Williamsc124f4f2015-09-15 14:41:29 -050082
83 # word of attention; this is a localhost-specific issue; only on the localhost we expect to have "HEAD" releases
84 # which _ALWAYS_ means the current poky checkout
85 from os.path import dirname as DN
86 local_checkout_path = DN(DN(DN(DN(DN(os.path.abspath(__file__))))))
87 #logger.debug("localhostbecontroller: using HEAD checkout in %s" % local_checkout_path)
88 return local_checkout_path
89
90
Brad Bishopd7bf8c12018-02-25 22:55:05 -050091 def setCloneStatus(self,bitbake,status,total,current):
92 bitbake.req.build.repos_cloned=current
93 bitbake.req.build.repos_to_clone=total
94 bitbake.req.build.save()
95
Patrick Williamsd8c66bc2016-06-20 12:57:21 -050096 def setLayers(self, bitbake, layers, targets):
Patrick Williamsc124f4f2015-09-15 14:41:29 -050097 """ a word of attention: by convention, the first layer for any build will be poky! """
98
99 assert self.be.sourcedir is not None
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600100
101 layerlist = []
102 nongitlayerlist = []
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500103 git_env = os.environ.copy()
104 # (note: add custom environment settings here)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600105
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500106 # set layers in the layersource
107
108 # 1. get a list of repos with branches, and map dirpaths for each layer
109 gitrepos = {}
110
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600111 # if we're using a remotely fetched version of bitbake add its git
112 # details to the list of repos to clone
113 if bitbake.giturl and bitbake.commit:
114 gitrepos[(bitbake.giturl, bitbake.commit)] = []
115 gitrepos[(bitbake.giturl, bitbake.commit)].append(
116 ("bitbake", bitbake.dirpath))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500117
118 for layer in layers:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500119 # We don't need to git clone the layer for the CustomImageRecipe
120 # as it's generated by us layer on if needed
121 if CustomImageRecipe.LAYER_NAME in layer.name:
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500122 continue
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600123
124 # If we have local layers then we don't need clone them
125 # For local layers giturl will be empty
126 if not layer.giturl:
127 nongitlayerlist.append(layer.layer_version.layer.local_source_dir)
128 continue
129
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500130 if not (layer.giturl, layer.commit) in gitrepos:
131 gitrepos[(layer.giturl, layer.commit)] = []
132 gitrepos[(layer.giturl, layer.commit)].append( (layer.name, layer.dirpath) )
133
134
135 logger.debug("localhostbecontroller, our git repos are %s" % pformat(gitrepos))
136
137
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500138 # 2. Note for future use if the current source directory is a
139 # checked-out git repos that could match a layer's vcs_url and therefore
140 # be used to speed up cloning (rather than fetching it again).
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500141
142 cached_layers = {}
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500143
144 try:
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500145 for remotes in self._shellcmd("git remote -v", self.be.sourcedir,env=git_env).split("\n"):
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500146 try:
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500147 remote = remotes.split("\t")[1].split(" ")[0]
148 if remote not in cached_layers:
149 cached_layers[remote] = self.be.sourcedir
150 except IndexError:
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500151 pass
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500152 except ShellCmdException:
153 # ignore any errors in collecting git remotes this is an optional
154 # step
155 pass
156
157 logger.info("Using pre-checked out source for layer %s", cached_layers)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500158
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500159 # 3. checkout the repositories
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500160 clone_count=0
161 clone_total=len(gitrepos.keys())
162 self.setCloneStatus(bitbake,'Started',clone_total,clone_count)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500163 for giturl, commit in gitrepos.keys():
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500164 self.setCloneStatus(bitbake,'progress',clone_total,clone_count)
165 clone_count += 1
166
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500167 localdirname = os.path.join(self.be.sourcedir, self.getGitCloneDirectory(giturl, commit))
168 logger.debug("localhostbecontroller: giturl %s:%s checking out in current directory %s" % (giturl, commit, localdirname))
169
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600170 # see if our directory is a git repository
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500171 if os.path.exists(localdirname):
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600172 try:
173 localremotes = self._shellcmd("git remote -v",
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500174 localdirname,env=git_env)
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600175 if not giturl in localremotes and commit != 'HEAD':
176 raise BuildSetupException("Existing git repository at %s, but with different remotes ('%s', expected '%s'). Toaster will not continue out of fear of damaging something." % (localdirname, ", ".join(localremotes.split("\n")), giturl))
177 except ShellCmdException:
178 # our localdirname might not be a git repository
179 #- that's fine
180 pass
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500181 else:
182 if giturl in cached_layers:
183 logger.debug("localhostbecontroller git-copying %s to %s" % (cached_layers[giturl], localdirname))
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500184 self._shellcmd("git clone \"%s\" \"%s\"" % (cached_layers[giturl], localdirname),env=git_env)
185 self._shellcmd("git remote remove origin", localdirname,env=git_env)
186 self._shellcmd("git remote add origin \"%s\"" % giturl, localdirname,env=git_env)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500187 else:
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500188 logger.debug("localhostbecontroller: cloning %s in %s" % (giturl, localdirname))
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500189 self._shellcmd('git clone "%s" "%s"' % (giturl, localdirname),env=git_env)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500190
191 # branch magic name "HEAD" will inhibit checkout
192 if commit != "HEAD":
193 logger.debug("localhostbecontroller: checking out commit %s to %s " % (commit, localdirname))
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500194 ref = commit if re.match('^[a-fA-F0-9]+$', commit) else 'origin/%s' % commit
Brad Bishop316dfdd2018-06-25 12:45:53 -0400195 self._shellcmd('git fetch && git reset --hard "%s"' % ref, localdirname,env=git_env)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500196
197 # take the localdirname as poky dir if we can find the oe-init-build-env
198 if self.pokydirname is None and os.path.exists(os.path.join(localdirname, "oe-init-build-env")):
199 logger.debug("localhostbecontroller: selected poky dir name %s" % localdirname)
200 self.pokydirname = localdirname
201
202 # make sure we have a working bitbake
203 if not os.path.exists(os.path.join(self.pokydirname, 'bitbake')):
204 logger.debug("localhostbecontroller: checking bitbake into the poky dirname %s " % self.pokydirname)
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500205 self._shellcmd("git clone -b \"%s\" \"%s\" \"%s\" " % (bitbake.commit, bitbake.giturl, os.path.join(self.pokydirname, 'bitbake')),env=git_env)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500206
207 # verify our repositories
208 for name, dirpath in gitrepos[(giturl, commit)]:
209 localdirpath = os.path.join(localdirname, dirpath)
210 logger.debug("localhostbecontroller: localdirpath expected '%s'" % localdirpath)
211 if not os.path.exists(localdirpath):
212 raise BuildSetupException("Cannot find layer git path '%s' in checked out repository '%s:%s'. Aborting." % (localdirpath, giturl, commit))
213
214 if name != "bitbake":
215 layerlist.append(localdirpath.rstrip("/"))
216
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500217 self.setCloneStatus(bitbake,'complete',clone_total,clone_count)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500218 logger.debug("localhostbecontroller: current layer list %s " % pformat(layerlist))
219
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500220 if self.pokydirname is None and os.path.exists(os.path.join(self.be.sourcedir, "oe-init-build-env")):
221 logger.debug("localhostbecontroller: selected poky dir name %s" % self.be.sourcedir)
222 self.pokydirname = self.be.sourcedir
223
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500224 # 5. create custom layer and add custom recipes to it
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500225 for target in targets:
226 try:
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500227 customrecipe = CustomImageRecipe.objects.get(
228 name=target.target,
229 project=bitbake.req.project)
230
231 custom_layer_path = self.setup_custom_image_recipe(
232 customrecipe, layers)
233
234 if os.path.isdir(custom_layer_path):
235 layerlist.append(custom_layer_path)
236
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500237 except CustomImageRecipe.DoesNotExist:
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500238 continue # not a custom recipe, skip
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500239
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600240 layerlist.extend(nongitlayerlist)
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500241 logger.debug("\n\nset layers gives this list %s" % pformat(layerlist))
242 self.islayerset = True
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500243 return layerlist
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500244
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500245 def setup_custom_image_recipe(self, customrecipe, layers):
246 """ Set up toaster-custom-images layer and recipe files """
247 layerpath = os.path.join(self.be.builddir,
248 CustomImageRecipe.LAYER_NAME)
249
250 # create directory structure
251 for name in ("conf", "recipes"):
252 path = os.path.join(layerpath, name)
253 if not os.path.isdir(path):
254 os.makedirs(path)
255
256 # create layer.conf
257 config = os.path.join(layerpath, "conf", "layer.conf")
258 if not os.path.isfile(config):
259 with open(config, "w") as conf:
260 conf.write('BBPATH .= ":${LAYERDIR}"\nBBFILES += "${LAYERDIR}/recipes/*.bb"\n')
261
262 # Update the Layer_Version dirpath that has our base_recipe in
263 # to be able to read the base recipe to then generate the
264 # custom recipe.
265 br_layer_base_recipe = layers.get(
266 layer_version=customrecipe.base_recipe.layer_version)
267
268 # If the layer is one that we've cloned we know where it lives
269 if br_layer_base_recipe.giturl and br_layer_base_recipe.commit:
270 layer_path = self.getGitCloneDirectory(
271 br_layer_base_recipe.giturl,
272 br_layer_base_recipe.commit)
273 # Otherwise it's a local layer
274 elif br_layer_base_recipe.local_source_dir:
275 layer_path = br_layer_base_recipe.local_source_dir
276 else:
277 logger.error("Unable to workout the dir path for the custom"
278 " image recipe")
279
280 br_layer_base_dirpath = os.path.join(
281 self.be.sourcedir,
282 layer_path,
283 customrecipe.base_recipe.layer_version.dirpath)
284
285 customrecipe.base_recipe.layer_version.dirpath = br_layer_base_dirpath
286
287 customrecipe.base_recipe.layer_version.save()
288
289 # create recipe
290 recipe_path = os.path.join(layerpath, "recipes", "%s.bb" %
291 customrecipe.name)
292 with open(recipe_path, "w") as recipef:
293 recipef.write(customrecipe.generate_recipe_file_contents())
294
295 # Update the layer and recipe objects
296 customrecipe.layer_version.dirpath = layerpath
297 customrecipe.layer_version.layer.local_source_dir = layerpath
298 customrecipe.layer_version.layer.save()
299 customrecipe.layer_version.save()
300
301 customrecipe.file_path = recipe_path
302 customrecipe.save()
303
304 return layerpath
305
306
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500307 def readServerLogFile(self):
308 return open(os.path.join(self.be.builddir, "toaster_server.log"), "r").read()
309
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500310
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500311 def triggerBuild(self, bitbake, layers, variables, targets, brbe):
312 layers = self.setLayers(bitbake, layers, targets)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500313
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500314 # init build environment from the clone
315 builddir = '%s-toaster-%d' % (self.be.builddir, bitbake.req.project.id)
316 oe_init = os.path.join(self.pokydirname, 'oe-init-build-env')
317 # init build environment
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500318 try:
319 custom_script = ToasterSetting.objects.get(name="CUSTOM_BUILD_INIT_SCRIPT").value
320 custom_script = custom_script.replace("%BUILDDIR%" ,builddir)
321 self._shellcmd("bash -c 'source %s'" % (custom_script))
322 except ToasterSetting.DoesNotExist:
323 self._shellcmd("bash -c 'source %s %s'" % (oe_init, builddir),
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500324 self.be.sourcedir)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500325
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500326 # update bblayers.conf
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500327 bblconfpath = os.path.join(builddir, "conf/toaster-bblayers.conf")
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500328 with open(bblconfpath, 'w') as bblayers:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500329 bblayers.write('# line added by toaster build control\n'
330 'BBLAYERS = "%s"' % ' '.join(layers))
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500331
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500332 # write configuration file
333 confpath = os.path.join(builddir, 'conf/toaster.conf')
334 with open(confpath, 'w') as conf:
335 for var in variables:
336 conf.write('%s="%s"\n' % (var.name, var.value))
337 conf.write('INHERIT+="toaster buildhistory"')
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500338
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500339 # clean the Toaster to build environment
340 env_clean = 'unset BBPATH;' # clean BBPATH for <= YP-2.4.0
341
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500342 # run bitbake server from the clone
343 bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake')
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500344 toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf")
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500345 self._shellcmd('%s bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s '
346 '--server-only -B 0.0.0.0:0\"' % (env_clean, oe_init,
Brad Bishop6e60e8b2018-02-01 10:27:11 -0500347 builddir, bitbake, confpath, toasterlayers), self.be.sourcedir)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500348
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500349 # read port number from bitbake.lock
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500350 self.be.bbport = -1
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500351 bblock = os.path.join(builddir, 'bitbake.lock')
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500352 # allow 10 seconds for bb lock file to appear but also be populated
353 for lock_check in range(10):
354 if not os.path.exists(bblock):
355 logger.debug("localhostbecontroller: waiting for bblock file to appear")
356 time.sleep(1)
357 continue
358 if 10 < os.stat(bblock).st_size:
359 break
360 logger.debug("localhostbecontroller: waiting for bblock content to appear")
361 time.sleep(1)
362 else:
363 raise BuildSetupException("Cannot find bitbake server lock file '%s'. Aborting." % bblock)
364
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500365 with open(bblock) as fplock:
366 for line in fplock:
367 if ":" in line:
368 self.be.bbport = line.split(":")[-1].strip()
369 logger.debug("localhostbecontroller: bitbake port %s", self.be.bbport)
370 break
371
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500372 if -1 == self.be.bbport:
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500373 raise BuildSetupException("localhostbecontroller: can't read bitbake port from %s" % bblock)
374
375 self.be.bbaddress = "localhost"
376 self.be.bbstate = BuildEnvironment.SERVER_STARTED
377 self.be.lock = BuildEnvironment.LOCK_RUNNING
378 self.be.save()
379
380 bbtargets = ''
381 for target in targets:
382 task = target.task
383 if task:
384 if not task.startswith('do_'):
385 task = 'do_' + task
386 task = ':%s' % task
387 bbtargets += '%s%s ' % (target.target, task)
388
389 # run build with local bitbake. stop the server after the build.
390 log = os.path.join(builddir, 'toaster_ui.log')
391 local_bitbake = os.path.join(os.path.dirname(os.getenv('BBBASEDIR')),
392 'bitbake')
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500393 self._shellcmd(['%s bash -c \"(TOASTER_BRBE="%s" BBSERVER="0.0.0.0:%s" '
394 '%s %s -u toasterui --read %s --read %s --token="" >>%s 2>&1;'
395 'BITBAKE_UI="knotty" BBSERVER=0.0.0.0:%s %s -m)&\"' \
396 % (env_clean, brbe, self.be.bbport, local_bitbake, bbtargets, confpath, toasterlayers, log,
397 self.be.bbport, bitbake,)],
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500398 builddir, nowait=True)
399
400 logger.debug('localhostbecontroller: Build launched, exiting. '
401 'Follow build logs at %s' % log)