[gnome-continuous-yocto/gnomeostree-3.28-rocko: 3522/8267] bitbake: toaster: localhostbecontroller write toaster layers for project to toaster-bblayers.conf
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 3522/8267] bitbake: toaster: localhostbecontroller write toaster layers for project to toaster-bblayers.conf
- Date: Sun, 17 Dec 2017 00:45:04 +0000 (UTC)
commit fa5ea98d3b4610e94a9bf8eae7801e52984defb6
Author: Sujith H <sujith h gmail com>
Date: Thu Nov 24 11:19:59 2016 +0000
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>
.../toaster/bldcontrol/localhostbecontroller.py | 18 ++++--------------
1 files changed, 4 insertions(+), 14 deletions(-)
---
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 3896a82..11335ac 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -286,19 +286,8 @@ class LocalhostBEController(BuildEnvironmentController):
self.be.sourcedir)
# update bblayers.conf
- bblconfpath = os.path.join(builddir, "conf/bblayers.conf")
- conflines = open(bblconfpath, "r").readlines()
- skip = False
+ bblconfpath = os.path.join(builddir, "conf/toaster-bblayers.conf")
with open(bblconfpath, 'w') as bblayers:
- for line in conflines:
- if line.startswith("# line added by toaster"):
- skip = True
- continue
- if skip:
- skip = False
- else:
- bblayers.write(line)
-
bblayers.write('# line added by toaster build control\n'
'BBLAYERS = "%s"' % ' '.join(layers))
@@ -311,9 +300,10 @@ class LocalhostBEController(BuildEnvironmentController):
# run bitbake server from the clone
bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake')
- self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s '
+ toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf")
+ self._shellcmd('bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s '
'--server-only -t xmlrpc -B 0.0.0.0:0\"' % (oe_init,
- builddir, bitbake, confpath), self.be.sourcedir)
+ builddir, bitbake, confpath, toasterlayers), self.be.sourcedir)
# read port number from bitbake.lock
self.be.bbport = ""
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]