diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2015-09-30 05:38:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-10-01 07:43:38 +0100 |
commit | 8283a57db845b2fc407909909460cb58e5baafd7 (patch) | |
tree | 948d04c5405cb2291b2d79e5b4b4cf978b2d074c /scripts/lib/bsp | |
parent | b355a5e00ea141cdde980cb5bfbecba537e89b11 (diff) | |
download | openembedded-core-contrib-8283a57db845b2fc407909909460cb58e5baafd7.tar.gz |
scrips/lib/bsp/engine: List properties to stdout when output parameter is omitted
When user wants to output the list of properties for a corresponding architecture
and the output parameter is given (--o/-outfile), there is no need to show the
properties into the console.
(From meta-yocto rev: bd133e2a6e626b4158f5a303d85205de9c66e8f2)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/bsp')
-rw-r--r-- | scripts/lib/bsp/engine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/bsp/engine.py b/scripts/lib/bsp/engine.py index 7d6be239da..aac35d3b19 100644 --- a/scripts/lib/bsp/engine.py +++ b/scripts/lib/bsp/engine.py @@ -1685,8 +1685,8 @@ def yocto_layer_list_properties(arch, scripts_path, properties_file, expand_comm sys.exit(1) json.dump(properties, of) - - print_dict(properties) + else: + print_dict(properties) def split_nested_property(property): |