summaryrefslogtreecommitdiff
path: root/scripts/devtool
diff options
context:
space:
mode:
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