<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none"><!--P{margin-top:0;margin-bottom:0;} p
        {margin-top:0;
        margin-bottom:0}--></style>
</head>
<body dir="ltr" style="font-size:10pt;color:#000000;background-color:#FFFFFF;font-family:Tahoma,Geneva,sans-serif;">
<p>From b736703a9d3f3c33e2e83ecd5e61dbddd5793cc8 Mon Sep 17 00:00:00 2001<br>
From: Awais Belal <awais_belal@mentor.com><br>
Date: Thu, 13 Sep 2018 14:12:18 +0500<br>
Subject: [sumo][PATCH] toaster: localhostbecontroller: fix bitbake path resolution<br>
</p>
<p><br>
</p>
<p>15340edce23e63b060c75114d508e1f76757239c introduced a way which<br>
allowed bitbake to be found from the PATH variable when directory<br>
structures different from poky are used. This just drops a leftover<br>
which made the earlier implementation meaningless by reassigning<br>
the path relative to oe-core/meta.<br>
</p>
<p><br>
</p>
<p>Signed-off-by: Awais Belal <awais_belal@mentor.com><br>
---<br>
lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
</p>
<p><br>
</p>
<p>diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py<br>
index 3850334..63b4187 100644<br>
--- a/lib/toaster/bldcontrol/localhostbecontroller.py<br>
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py<br>
@@ -360,12 +360,12 @@ class LocalhostBEController(BuildEnvironmentController):<br>
for path in os.environ["PATH"].split(os.pathsep):<br>
if os.path.exists(os.path.join(path, 'bitbake')):<br>
bitbake = os.path.join(path, 'bitbake')<br>
+ logger.info("Found Bitbake at: %s" % path)<br>
break<br>
else:<br>
logger.error("Looks like Bitbake is not available, please fix your environment")<br>
<br>
# run bitbake server from the clone<br>
- bitbake = os.path.join(self.pokydirname, 'bitbake', 'bin', 'bitbake')<br>
toasterlayers = os.path.join(builddir,"conf/toaster-bblayers.conf")<br>
self._shellcmd('%s bash -c \"source %s %s; BITBAKE_UI="knotty" %s --read %s --read %s '<br>
'--server-only -B 0.0.0.0:0\"' % (env_clean, oe_init,<br>
--<br>
2.7.4<br>
<br>
</p>
<p><br>
</p>
<div id="Signature">
<div style="font-family:Tahoma; font-size:13px"><font face="Tahoma"></font>
<div style="font-size:13px">
<div><font size="2" face="Tahoma"><span lang="en-US">
<div style="margin:0">BR,</div>
<div style="margin:0"><i>Awais</i></div>
</span></font></div>
</div>
<font face="Tahoma"></font></div>
</div>
</body>
</html>