bitbake: toaster: get bitbake location from BBBASEDIR
It was incorrectly assumed in the current code that bitbake is in ../bitbake/bin/ directory. It's not always the case. Using bitbake from $BBBASEDIR should be . (Bitbake rev: 6c9e3375d278bee712c41f07428bc82108b9aaae) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
f5d3ef6c89
commit
52c8740e1b
|
@ -320,11 +320,13 @@ class LocalhostBEController(BuildEnvironmentController):
|
||||||
|
|
||||||
# run build with local bitbake. stop the server after the build.
|
# run build with local bitbake. stop the server after the build.
|
||||||
log = os.path.join(builddir, 'toaster_ui.log')
|
log = os.path.join(builddir, 'toaster_ui.log')
|
||||||
|
local_bitbake = os.path.join(os.path.dirname(os.getenv('BBBASEDIR')),
|
||||||
|
'bitbake')
|
||||||
self._shellcmd(['bash -c \"(TOASTER_BRBE="%s" BBSERVER="0.0.0.0:-1" '
|
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)&\"' \
|
'BITBAKE_UI="" BBSERVER=0.0.0.0:-1 %s -m)&\"' \
|
||||||
% (brbe, bbtargets, log, bitbake)], builddir,
|
% (brbe, local_bitbake, bbtargets, log, bitbake)],
|
||||||
nowait=True)
|
builddir, nowait=True)
|
||||||
|
|
||||||
logger.debug('localhostbecontroller: Build launched, exiting. '
|
logger.debug('localhostbecontroller: Build launched, exiting. '
|
||||||
'Follow build logs at %s' % log)
|
'Follow build logs at %s' % log)
|
||||||
|
|
Loading…
Reference in New Issue