rename "name" field to "description" in manifest lists
"name" in manifest files is a C macro (all uppercase, no spaces),
but "name" in manifest lists is just a description of
a partition (which can be any text, including spaces),
so to remove confusion and improve readability "name" field is
renamed to "description"
Signed-off-by: Bohdan Hunko <Bohdan.Hunko@infineon.com>
Signed-off-by: Chris Brand <chris.brand@cypress.com>
Change-Id: Id081679bf31f400f110a1ab9648b9b1eaf3383a1
diff --git a/tools/tfm_parse_manifest_list.py b/tools/tfm_parse_manifest_list.py
index 9cbe3c1..9b77d6c 100644
--- a/tools/tfm_parse_manifest_list.py
+++ b/tools/tfm_parse_manifest_list.py
@@ -325,15 +325,15 @@
is_enabled = '1'
if is_enabled in valid_disabled_conditions:
- logging.info(" {:40s} OFF".format(manifest_item['name']))
+ logging.info(" {:40s} OFF".format(manifest_item['description']))
continue
elif is_enabled in valid_enabled_conditions:
- logging.info(" {:40s} ON".format(manifest_item['name']))
+ logging.info(" {:40s} ON".format(manifest_item['description']))
else:
raise Exception('Invalid "conditional" attribute: "{}" for {}. '
'Please set to one of {} or {}, case-insensitive.'\
.format(manifest_item['conditional'],
- manifest_item['name'],
+ manifest_item['description'],
valid_enabled_conditions, valid_disabled_conditions))
# Check if partition ID is manually set
@@ -490,7 +490,7 @@
partition_context['attr'] = one_partition['attr']
partition_context['manifest_out_basename'] = one_partition['manifest_out_basename']
- logging.info ('Generating {} in {}'.format(one_partition['attr']['name'],
+ logging.info ('Generating {} in {}'.format(one_partition['attr']['description'],
one_partition['output_dir']))
outfile_path = os.path.dirname(one_partition['header_file'])
if not os.path.exists(outfile_path):