summaryrefslogtreecommitdiffstats
path: root/scripts/devtool
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-11-23 08:50:29 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-12-01 21:32:04 +0000
commit5001f23ecc5f380938cee8d7fcce053ea482d928 (patch)
treed1cabd8f38c55ad69c64b383cc53a7cc054da3fc /scripts/devtool
parentf79022dfff7374634cc8153aea61e6bf9c72b377 (diff)
downloadpoky-5001f23ecc5f380938cee8d7fcce053ea482d928.tar.gz
devtool: build: enable showing default task in help
Enable access to the configuration object in register_commands() so that we can read configuration values there; this allows us to show the task that will be run in the command line help for the build subcommand. (From OE-Core rev: 142d006de3235a034839ef7bbe147c56fc7af04a) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/devtool')
-rwxr-xr-xscripts/devtool1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/devtool b/scripts/devtool
index 2a5a3d41c1..1fcb42c134 100755
--- a/scripts/devtool
+++ b/scripts/devtool
@@ -220,6 +220,7 @@ def main():
220 config = ConfigHandler(os.path.join(basepath, 'conf', 'devtool.conf')) 220 config = ConfigHandler(os.path.join(basepath, 'conf', 'devtool.conf'))
221 if not config.read(): 221 if not config.read():
222 return -1 222 return -1
223 context.config = config
223 224
224 bitbake_subdir = config.get('General', 'bitbake_subdir', '') 225 bitbake_subdir = config.get('General', 'bitbake_subdir', '')
225 if bitbake_subdir: 226 if bitbake_subdir: