Build: Simplify TF-M build output logs

TF-M build output log can be simplified by hiding the details of
manifest generation and showing the summaries.

Signed-off-by: Jianliang Shen <jianliang.shen@arm.com>
Change-Id: I42d6b42172a2f0cc1400e16360661a319e76fac4
diff --git a/tools/tfm_parse_manifest_list.py b/tools/tfm_parse_manifest_list.py
index ac74f45..59dc511 100644
--- a/tools/tfm_parse_manifest_list.py
+++ b/tools/tfm_parse_manifest_list.py
@@ -260,12 +260,14 @@
         load_info_file     = os.path.join(OUT_DIR, output_path, 'auto_generated',
                                           'load_info_{}.c'.format(manifest_out_basename))\
                                               .replace('\\', '/')
+        output_dir         = os.path.join(OUT_DIR, output_path).replace('\\', '/')
 
         partition_list.append({'manifest': manifest, 'attr': manifest_item,
                                'manifest_out_basename': manifest_out_basename,
                                'header_file': manifest_head_file,
                                'intermedia_file': intermedia_file,
-                               'loadinfo_file': load_info_file})
+                               'loadinfo_file': load_info_file,
+                               'output_dir':output_dir})
 
     # Automatically assign PIDs for partitions without 'pid' attribute
     pid = max(pid_list, default = TFM_PID_BASE - 1)
@@ -335,7 +337,8 @@
         partition_context['attr'] = one_partition['attr']
         partition_context['manifest_out_basename'] = one_partition['manifest_out_basename']
 
-        logging.info ("Generating Header: " + one_partition['header_file'])
+        logging.info ('Generating {} in {}'.format(one_partition['attr']['name'],
+                                            one_partition['output_dir']))
         outfile_path = os.path.dirname(one_partition['header_file'])
         if not os.path.exists(outfile_path):
             os.makedirs(outfile_path)
@@ -344,7 +347,6 @@
         headerfile.write(manifesttemplate.render(partition_context))
         headerfile.close()
 
-        logging.info ("Generating Intermedia: " + one_partition['intermedia_file'])
         intermediafile_path = os.path.dirname(one_partition['intermedia_file'])
         if not os.path.exists(intermediafile_path):
             os.makedirs(intermediafile_path)
@@ -352,7 +354,6 @@
         intermediafile.write(memorytemplate.render(partition_context))
         intermediafile.close()
 
-        logging.info ("Generating Loadinfo: " + one_partition['loadinfo_file'])
         infofile_path = os.path.dirname(one_partition['loadinfo_file'])
         if not os.path.exists(infofile_path):
             os.makedirs(infofile_path)
@@ -378,7 +379,6 @@
             file_list_yaml = yaml.safe_load(file_list_yaml_file)
             file_list.extend(file_list_yaml['file_list'])
 
-    logging.info("Start to generate file from the generated list:")
     for file in file_list:
         # Replace environment variables in the output filepath
         manifest_out_file = os.path.expandvars(file['output'])
@@ -387,8 +387,6 @@
 
         manifest_out_file = os.path.join(OUT_DIR, manifest_out_file)
 
-        logging.info ("Generating " + manifest_out_file)
-
         outfile_path = os.path.dirname(manifest_out_file)
         if not os.path.exists(outfile_path):
             os.makedirs(outfile_path)
@@ -399,8 +397,6 @@
         outfile.write(template.render(context))
         outfile.close()
 
-    logging.info ("Generation of files done")
-
 def process_stateless_services(partitions):
     """
     This function collects all stateless services together, and allocates