summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
diff options
context:
space:
mode:
authorSujith H <sujith.h@gmail.com>2016-11-24 11:19:59 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-30 15:48:10 +0000
commitfa5ea98d3b4610e94a9bf8eae7801e52984defb6 (patch)
tree1839a4465245ad6b4afece75e87ec718f6a23584 /bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
parent5f0405abed7c69d0409c83522f98d734647d666a (diff)
downloadpoky-fa5ea98d3b4610e94a9bf8eae7801e52984defb6.tar.gz
bitbake: toaster: localhostbecontroller write toaster layers for project to toaster-bblayers.conf
Instead of updating conf/bblayers, here we update toaster-bblayers.conf file. So extra effort to update bblayers.conf can be removed safely. (Bitbake rev: f3e99d820f3798869a2a1d1604709c1c324dbbab) Signed-off-by: Sujith H <sujith.h@gmail.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.py18
1 files changed, 4 insertions, 14 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 3896a829a9..11335ac393 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -286,19 +286,8 @@ class LocalhostBEController(BuildEnvironmentController):
286 self.be.sourcedir) 286 self.be.sourcedir)
287 287
288 # update bblayers.conf 288 # update bblayers.conf
289 bblconfpath = os.path.join(builddir, "conf/bblayers.conf") 289 bblconfpath = os.path.join(builddir, "conf/toaster-bblayers.conf")
290 conflines = open(bblconfpath, "r").readlines()
291 skip = False
292 with open(bblconfpath, 'w') as bblayers: 290 with open(bblconfpath, 'w') as bblayers:
293 for line in conflines:
294 if line.startswith("# line added by toaster"):
295 skip = True
296 continue
297 if skip:
298 skip = False
299 else:
300 bblayers.write(line)
301
302 bblayers.write('# line added by toaster build control\n' 291 bblayers.write('# line added by toaster build control\n'
303 'BBLAYERS = "%s"' % ' '.join(layers)) 292 'BBLAYERS = "%s"' % ' '.join(layers))
304 293
@@ -311,9 +300,10 @@ class LocalhostBEController(BuildEnvironmentController):
311 300
312 # run bitbake server from the clone 301 # run bitbake server from the clone
313 bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake') 302 bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake')
314 self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s ' 303 toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf")
304 self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s '
315 '--server-only -t xmlrpc -B 0.0.0.0:0\"' % (oe_init, 305 '--server-only -t xmlrpc -B 0.0.0.0:0\"' % (oe_init,
316 builddir, bitbake, confpath), self.be.sourcedir) 306 builddir, bitbake, confpath, toasterlayers), self.be.sourcedir)
317 307
318 # read port number from bitbake.lock 308 # read port number from bitbake.lock
319 self.be.bbport = "" 309 self.be.bbport = ""