From: Paul Eggleton Date: Tue, 8 Sep 2015 10:39:15 +0000 (+0100) Subject: devtool: fix running from a different directory X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~29012 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1687ec04bfee327fe24fdfecb67db689835769f2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Richard Purdie --- diff --git a/scripts/devtool b/scripts/devtool index b9d3bb9e85e..87df951dc13 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