aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-09-08 11:39:15 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-09 14:25:07 +0100
commit1687ec04bfee327fe24fdfecb67db689835769f2 (patch)
tree35acb524348fd346f68042d1c4e03ac870976e18 /scripts/devtool
parent6dc0269bca3e874582d61b40dbf0d495331fb96a (diff)
downloadopenembedded-core-contrib-1687ec04bfee327fe24fdfecb67db689835769f2.tar.gz
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@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/devtool b/scripts/devtool
index b9d3bb9e85..87df951dc1 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