[oe-commits] Paul Eggleton : devtool: fix running from a different directory

git at git.openembedded.org git at git.openembedded.org
Wed Sep 9 13:54:08 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 1687ec04bfee327fe24fdfecb67db689835769f2
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=1687ec04bfee327fe24fdfecb67db689835769f2

Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date:   Tue Sep  8 11:39:15 2015 +0100

devtool: fix running from a different directory

Fixes the following error when running devtool from a directory other
than the build directory (or the SDK base path when using within the
extensible SDK):

  The BBPATH variable is not set and bitbake did not find a
  conf/bblayers.conf file in the expected location.
  Maybe you accidentally invoked bitbake from the wrong directory?

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 scripts/devtool | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/devtool b/scripts/devtool
index b9d3bb9..87df951 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -221,6 +221,9 @@ def main():
     if not config.read():
         return -1
 
+    # We need to be in this directory or we won't be able to initialise tinfoil
+    os.chdir(basepath)
+
     bitbake_subdir = config.get('General', 'bitbake_subdir', '')
     if bitbake_subdir:
         # Normally set for use within the SDK



More information about the Openembedded-commits mailing list