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>
This commit is contained in:
Leonardo Sandoval 2015-09-30 05:38:33 +00:00 committed by Richard Purdie
parent b355a5e00e
commit 8283a57db8
1 changed files with 2 additions and 2 deletions

View File

@ -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):