summaryrefslogtreecommitdiffstats
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:27:53 +0100
commit69b7a613fc8404bef6ef20a8d480303d1e6ddab2 (patch)
tree2202b7ecd837313a1574eeb4515b6d9df4fb28b7 /scripts/devtool
parent7b1f670ca385c33db3687f07d305e3a1510cf181 (diff)
downloadpoky-69b7a613fc8404bef6ef20a8d480303d1e6ddab2.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? (From OE-Core rev: 1687ec04bfee327fe24fdfecb67db689835769f2) 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():
221 if not config.read(): 221 if not config.read():
222 return -1 222 return -1
223 223
224 # We need to be in this directory or we won't be able to initialise tinfoil
225 os.chdir(basepath)
226
224 bitbake_subdir = config.get('General', 'bitbake_subdir', '') 227 bitbake_subdir = config.get('General', 'bitbake_subdir', '')
225 if bitbake_subdir: 228 if bitbake_subdir:
226 # Normally set for use within the SDK 229 # Normally set for use within the SDK