Core: Remove tfm_spm_signal_defs.h
Remove 'tfm_spm_signal_defs.h' which used to include the service signal
value for SPM and add the generate manifest header file to the related
file directly.
Change-Id: I49e32e3053b6e73571db5b1f07149ab2a9087d22
Signed-off-by: Edison Ai <edison.ai@arm.com>
diff --git a/tools/tfm_parse_manifest_list.py b/tools/tfm_parse_manifest_list.py
index 102ff13..2e563b1 100644
--- a/tools/tfm_parse_manifest_list.py
+++ b/tools/tfm_parse_manifest_list.py
@@ -84,6 +84,7 @@
env :
The instance of Environment.
"""
+ manifest_header_list = []
with open(manifest_list_yaml_file_path) as manifest_list_yaml_file:
manifest_list = yaml.load(manifest_list_yaml_file)
templatefile_name = 'secure_fw/services/manifestfilename.template'
@@ -108,6 +109,8 @@
context['file_name'] = outfile_name.replace('.h', '')
+ manifest_header_list.append(outfile_path)
+
print ("Generating " + outfile_path)
if not os.path.exists(os.path.dirname(outfile_path)):
@@ -119,7 +122,7 @@
outfile = io.open(outfile_path, "w", newline='\n')
outfile.write(template.render(context))
outfile.close()
- return
+ return manifest_header_list
def main():
"""
@@ -135,14 +138,18 @@
keep_trailing_newline = True
)
+ # Generate manifestfilename
+ manifest_header_list = generate_manifestfilename(env)
+ utilities = {}
+ context = {}
+
with open(manifest_list_yaml_file_path) as manifest_list_yaml_file:
# Read manifest list file, build database
db = load_manifest_list(manifest_list_yaml_file)
- utilities = {}
utilities['donotedit_warning']=donotedit_warning
+ utilities['manifest_header_list']=manifest_header_list
- context = {}
context['manifests'] = db
context['utilities'] = utilities
@@ -163,9 +170,6 @@
outfile.write(template.render(context))
outfile.close()
- # Generate manifestfilename
- generate_manifestfilename(env)
-
print ("Generation of files done")
if __name__ == "__main__":