From 6cd4f7789f5c4455f6055048d0dfdef7c25000fa Mon Sep 17 00:00:00 2001 From: Oren Cohen Date: Sun, 25 Nov 2018 13:06:12 +0200 Subject: [PATCH] Add Version to SPM templates and generator --- .../prot_internal_storage/COMPONENT_SPE/psa_setup.c | 2 ++ .../COMPONENT_SPE/psa_test_its_reset_partition.c | 2 ++ .../COMPONENT_SPE/psa_test_its_reset_partition.h | 2 ++ .../its_reset/psa_test_its_reset_ifs.h | 2 ++ .../psa_client_tests_part1_partition.c | 2 ++ .../psa_client_tests_part1_partition.h | 2 ++ TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c | 2 ++ TESTS/psa/spm_client/psa_client_tests_part1_ifs.h | 2 ++ .../COMPONENT_SPE/psa_server_test_part1_partition.c | 2 ++ .../COMPONENT_SPE/psa_server_test_part1_partition.h | 2 ++ .../COMPONENT_SPE/psa_server_test_part2_partition.c | 2 ++ .../COMPONENT_SPE/psa_server_test_part2_partition.h | 2 ++ TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c | 2 ++ TESTS/psa/spm_server/psa_server_test_part1_ifs.h | 2 ++ TESTS/psa/spm_server/psa_server_test_part2_ifs.h | 2 ++ TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c | 2 ++ .../COMPONENT_SPE/psa_smoke_test_part1_partition.c | 2 ++ .../COMPONENT_SPE/psa_smoke_test_part1_partition.h | 2 ++ TESTS/psa/spm_smoke/psa_smoke_test_part1_ifs.h | 2 ++ .../COMPONENT_SPE/psa_its_partition.c | 2 ++ .../COMPONENT_SPE/psa_its_partition.h | 2 ++ .../psa_prot_internal_storage/psa_its_ifs.h | 2 ++ components/TARGET_PSA/spm/COMPONENT_SPE/psa_setup.c | 2 ++ tools/spm/generate_partition_code.py | 13 ++++++++----- .../COMPONENT_SPE/psa_NAME_partition.c.tpl | 2 ++ .../COMPONENT_SPE/psa_NAME_partition.h.tpl | 2 ++ tools/spm/templates/COMPONENT_SPE/psa_setup.c.tpl | 2 ++ tools/spm/templates/psa_NAME_ifs.h.tpl | 2 ++ 28 files changed, 62 insertions(+), 5 deletions(-) diff --git a/TESTS/psa/prot_internal_storage/COMPONENT_SPE/psa_setup.c b/TESTS/psa/prot_internal_storage/COMPONENT_SPE/psa_setup.c index 007c6c3dbd..16bb9ba9df 100644 --- a/TESTS/psa/prot_internal_storage/COMPONENT_SPE/psa_setup.c +++ b/TESTS/psa/prot_internal_storage/COMPONENT_SPE/psa_setup.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.c b/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.c index 7f340853dd..88b3fc9307 100644 --- a/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.c +++ b/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.h b/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.h index 4e41e02655..cc3b061f27 100644 --- a/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.h +++ b/TESTS/psa/prot_internal_storage/its_reset/COMPONENT_SPE/psa_test_its_reset_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_TEST_ITS_RESET_PARTITION_H diff --git a/TESTS/psa/prot_internal_storage/its_reset/psa_test_its_reset_ifs.h b/TESTS/psa/prot_internal_storage/its_reset/psa_test_its_reset_ifs.h index 4dccfa0284..e61ae5e349 100644 --- a/TESTS/psa/prot_internal_storage/its_reset/psa_test_its_reset_ifs.h +++ b/TESTS/psa/prot_internal_storage/its_reset/psa_test_its_reset_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_TEST_ITS_RESET_PARTITION_ROT_SERVICES_H diff --git a/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.c b/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.c index b34f30fa5d..dff2c31045 100644 --- a/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.c +++ b/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.h b/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.h index 1da5c784d3..24b93ae853 100644 --- a/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.h +++ b/TESTS/psa/spm_client/COMPONENT_SPE/psa_client_tests_part1_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_CLIENT_TESTS_PART1_PARTITION_H diff --git a/TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c b/TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c index 80f1889d01..f8da8119ff 100644 --- a/TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c +++ b/TESTS/psa/spm_client/COMPONENT_SPE/psa_setup.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/TESTS/psa/spm_client/psa_client_tests_part1_ifs.h b/TESTS/psa/spm_client/psa_client_tests_part1_ifs.h index 97d0771ccf..6c709eb2a5 100644 --- a/TESTS/psa/spm_client/psa_client_tests_part1_ifs.h +++ b/TESTS/psa/spm_client/psa_client_tests_part1_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_CLIENT_TESTS_PART1_PARTITION_ROT_SERVICES_H diff --git a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.c b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.c index 8f329baf35..8d1b0a5333 100644 --- a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.c +++ b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.h b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.h index 9f75e0d396..dd64e41f60 100644 --- a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.h +++ b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part1_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SERVER_TEST_PART1_PARTITION_H diff --git a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.c b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.c index 4f4b5ed439..a4fc7572c8 100644 --- a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.c +++ b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.h b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.h index 53b66dd413..3b8371af21 100644 --- a/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.h +++ b/TESTS/psa/spm_server/COMPONENT_SPE/psa_server_test_part2_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SERVER_TEST_PART2_PARTITION_H diff --git a/TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c b/TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c index 06aeea9bd4..61af9b3756 100644 --- a/TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c +++ b/TESTS/psa/spm_server/COMPONENT_SPE/psa_setup.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/TESTS/psa/spm_server/psa_server_test_part1_ifs.h b/TESTS/psa/spm_server/psa_server_test_part1_ifs.h index 7cb1c0cba5..1d1d5fb077 100644 --- a/TESTS/psa/spm_server/psa_server_test_part1_ifs.h +++ b/TESTS/psa/spm_server/psa_server_test_part1_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SERVER_TEST_PART1_PARTITION_ROT_SERVICES_H diff --git a/TESTS/psa/spm_server/psa_server_test_part2_ifs.h b/TESTS/psa/spm_server/psa_server_test_part2_ifs.h index 6124cbdc96..6b553419b0 100644 --- a/TESTS/psa/spm_server/psa_server_test_part2_ifs.h +++ b/TESTS/psa/spm_server/psa_server_test_part2_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SERVER_TEST_PART2_PARTITION_ROT_SERVICES_H diff --git a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c index b575209049..9ce8fdeed0 100644 --- a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c +++ b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_setup.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.c b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.c index 8716f15562..d80f58e41b 100644 --- a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.c +++ b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.h b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.h index a5bd726e6b..3808449525 100644 --- a/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.h +++ b/TESTS/psa/spm_smoke/COMPONENT_SPE/psa_smoke_test_part1_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SMOKE_TEST_PART1_PARTITION_H diff --git a/TESTS/psa/spm_smoke/psa_smoke_test_part1_ifs.h b/TESTS/psa/spm_smoke/psa_smoke_test_part1_ifs.h index d5d6d636a0..6b36fcd4e1 100644 --- a/TESTS/psa/spm_smoke/psa_smoke_test_part1_ifs.h +++ b/TESTS/psa/spm_smoke/psa_smoke_test_part1_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_SMOKE_TEST_PART1_PARTITION_ROT_SERVICES_H diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.c b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.c index 0fd5ffabef..0fcd295247 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.c +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "cmsis.h" diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.h b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.h index a96366eb42..7e9b47665f 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.h +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/COMPONENT_SPE/psa_its_partition.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_ITS_PARTITION_H diff --git a/components/TARGET_PSA/services/psa_prot_internal_storage/psa_its_ifs.h b/components/TARGET_PSA/services/psa_prot_internal_storage/psa_its_ifs.h index 2ca3f19a4f..99c70ba30b 100644 --- a/components/TARGET_PSA/services/psa_prot_internal_storage/psa_its_ifs.h +++ b/components/TARGET_PSA/services/psa_prot_internal_storage/psa_its_ifs.h @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #ifndef PSA_ITS_PARTITION_ROT_SERVICES_H diff --git a/components/TARGET_PSA/spm/COMPONENT_SPE/psa_setup.c b/components/TARGET_PSA/spm/COMPONENT_SPE/psa_setup.c index 5096d91033..07800599de 100644 --- a/components/TARGET_PSA/spm/COMPONENT_SPE/psa_setup.c +++ b/components/TARGET_PSA/spm/COMPONENT_SPE/psa_setup.c @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version 1.0 **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/tools/spm/generate_partition_code.py b/tools/spm/generate_partition_code.py index 2d099e97d1..d6202adfa7 100644 --- a/tools/spm/generate_partition_code.py +++ b/tools/spm/generate_partition_code.py @@ -21,9 +21,9 @@ import json import os from os.path import join as path_join -from jinja2 import Environment, FileSystemLoader +from jinja2 import Environment, FileSystemLoader, StrictUndefined from jsonschema import validate - +__version__ = '1.0' SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__)) TEMPLATES_DIR = path_join(SCRIPT_DIR, 'templates') MANIFEST_TEMPLATES = filter( @@ -621,7 +621,8 @@ def generate_source_files( env = Environment( loader=FileSystemLoader(templates_dirs), lstrip_blocks=True, - trim_blocks=True + trim_blocks=True, + undefined=StrictUndefined ) if extra_filters: env.filters.update(extra_filters) @@ -666,7 +667,8 @@ def generate_partitions_sources(manifest_files, extra_filters=None): render_args = { 'partition': manifest, - 'dependent_partitions': manifest.find_dependencies(manifests) + 'dependent_partitions': manifest.find_dependencies(manifests), + 'script_ver': __version__ } manifest_output_folder = generate_source_files( manifest.templates_to_files(MANIFEST_TEMPLATES, @@ -721,7 +723,8 @@ Process all the given manifest files and generate C setup code from them 'partitions': manifests, 'regions': region_list, 'region_pair_list': list(itertools.combinations(region_list, 2)), - 'weak': weak_setup + 'weak': weak_setup, + 'script_ver': __version__ } return generate_source_files( diff --git a/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.c.tpl b/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.c.tpl index 04f201d754..769087c5bc 100644 --- a/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.c.tpl +++ b/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.c.tpl @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version {{script_ver}} **********************************************************************************************************************/ #include "cmsis.h" diff --git a/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.h.tpl b/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.h.tpl index 675903ff75..ae845af375 100644 --- a/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.h.tpl +++ b/tools/spm/templates/COMPONENT_SPE/psa_NAME_partition.h.tpl @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version {{script_ver}} **********************************************************************************************************************/ #ifndef PSA_{{partition.name|upper}}_PARTITION_H diff --git a/tools/spm/templates/COMPONENT_SPE/psa_setup.c.tpl b/tools/spm/templates/COMPONENT_SPE/psa_setup.c.tpl index c3cf154642..e4870f68d5 100644 --- a/tools/spm/templates/COMPONENT_SPE/psa_setup.c.tpl +++ b/tools/spm/templates/COMPONENT_SPE/psa_setup.c.tpl @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version {{script_ver}} **********************************************************************************************************************/ #include "spm_panic.h" diff --git a/tools/spm/templates/psa_NAME_ifs.h.tpl b/tools/spm/templates/psa_NAME_ifs.h.tpl index 024b9fc81c..18a6f88d61 100644 --- a/tools/spm/templates/psa_NAME_ifs.h.tpl +++ b/tools/spm/templates/psa_NAME_ifs.h.tpl @@ -19,6 +19,8 @@ * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! * THIS FILE IS AN AUTO-GENERATED FILE - DO NOT MODIFY IT. * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Template Version 1.0 + * Generated by tools/spm/generate_partition_code.py Version {{script_ver}} **********************************************************************************************************************/ #ifndef PSA_{{partition.name|upper}}_PARTITION_ROT_SERVICES_H