diff options
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-x | scripts/devtool | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/devtool b/scripts/devtool index 87df951dc1..e4d9db301a 100755 --- a/scripts/devtool +++ b/scripts/devtool | |||
@@ -221,9 +221,6 @@ 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 | |||
227 | bitbake_subdir = config.get('General', 'bitbake_subdir', '') | 224 | bitbake_subdir = config.get('General', 'bitbake_subdir', '') |
228 | if bitbake_subdir: | 225 | if bitbake_subdir: |
229 | # Normally set for use within the SDK | 226 | # Normally set for use within the SDK |
@@ -244,7 +241,7 @@ def main(): | |||
244 | scriptutils.logger_setup_color(logger, global_args.color) | 241 | scriptutils.logger_setup_color(logger, global_args.color) |
245 | 242 | ||
246 | if global_args.bbpath is None: | 243 | if global_args.bbpath is None: |
247 | tinfoil = setup_tinfoil(config_only=True) | 244 | tinfoil = setup_tinfoil(config_only=True, basepath=basepath) |
248 | global_args.bbpath = tinfoil.config_data.getVar('BBPATH', True) | 245 | global_args.bbpath = tinfoil.config_data.getVar('BBPATH', True) |
249 | else: | 246 | else: |
250 | tinfoil = None | 247 | tinfoil = None |