toaster: [Sumo] fix bitbake flexible path error from Bugzilla #12891

Submitted by Reyna, David on Sept. 30, 2018, 7:21 a.m. | Patch ID: 155318


Message ID
State New
Headers show

Commit Message

Reyna, David Sept. 30, 2018, 7:21 a.m.
From: Awais Belal <>

Commit 15340edce23e63b060c75114d508e1f76757239c introduced a way which
allowed bitbake to be found from the PATH variable when directory
structures different from poky are used. This just drops a leftover
bitbake definition which made the earlier implementation meaningless
by reassigning the path relative to oe-core/meta.

[YOCTO #12942]

Signed-off-by: Awais Belal <>
Signed-off-by: David Reyna <>
 bitbake/lib/toaster/bldcontrol/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

diff --git a/bitbake/lib/toaster/bldcontrol/ b/bitbake/lib/toaster/bldcontrol/
index 3850334..63b4187 100644
--- a/bitbake/lib/toaster/bldcontrol/
+++ b/bitbake/lib/toaster/bldcontrol/
@@ -360,12 +360,12 @@  class LocalhostBEController(BuildEnvironmentController):
             for path in os.environ["PATH"].split(os.pathsep):
                 if os.path.exists(os.path.join(path, 'bitbake')):
                     bitbake = os.path.join(path, 'bitbake')
+          "Found Bitbake at: %s" % path)
                 logger.error("Looks like Bitbake is not available, please fix your environment")
         # run bitbake server from the clone
-        bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake')
         toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf")
         self._shellcmd('%s bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s '
                        '--server-only -B\"' % (env_clean, oe_init,