[Toaster] [PATCH v6 38/41] toaster: use bitbake from sourcedir/bitbake/bin
Ed Bartosh
ed.bartosh at linux.intel.com
Wed Mar 23 01:15:29 PDT 2016
It was incorrectly assumed in current code that bitbake is in
../bitbake/bin/ directory. It's not always the case.
Using bitbake from poky sourcedir/bitbake/bin/ should be better.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
---
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 057eb8b..a900402 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -318,11 +318,12 @@ class LocalhostBEController(BuildEnvironmentController):
# run build with local bitbake. stop the server after the build.
log = os.path.join(builddir, 'toaster_ui.log')
+ local_bitbake = os.path.join(self.be.sourcedir, 'bitbake', 'bin', 'bitbake')
self._shellcmd(['bash -c \"(TOASTER_BRBE="%s" BBSERVER="0.0.0.0:-1" '
- '../bitbake/bin/bitbake %s -u toasterui --token="" >>%s 2>&1;'
+ '%s %s -u toasterui --token="" >>%s 2>&1;'
'BITBAKE_UI="" BBSERVER=0.0.0.0:-1 %s -m)&\"' \
- % (brbe, bbtargets, log, bitbake)], builddir,
- nowait=True)
+ % (brbe, local_bitbake, bbtargets, log, bitbake)],
+ builddir, nowait=True)
logger.debug('localhostbecontroller: Build launched, exiting. '
'Follow build logs at %s' % log)
--
2.1.4
More information about the toaster
mailing list