Skip to content

Commit 355dd5a

Browse files
author
Oren Cohen
committed
TFM autogen scan the entire tree
1 parent 1549c5c commit 355dd5a

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

tools/psa/generate_tfm_partition_code.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,12 @@
2626
sys.path.insert(0, ROOT)
2727

2828
from tools.psa.mbed_spm_tfm_common import \
29-
Manifest, validate_partition_manifests, manifests_discovery, MBED_OS_ROOT, SERVICES_DIR, TESTS_DIR
29+
Manifest, validate_partition_manifests, manifests_discovery, MBED_OS_ROOT
3030

3131
__version__ = '1.0'
3232
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
3333
TEMPLATES_LIST_FILE = path_join(SCRIPT_DIR, 'tfm', 'tfm_generated_file_list.json')
3434

35-
SERVICES_MANIFESTS = [
36-
path_join(SERVICES_DIR, 'storage', 'its', 'pits_psa.json'),
37-
path_join(SERVICES_DIR, 'platform', 'platform_psa.json'),
38-
path_join(SERVICES_DIR, 'crypto', 'crypto_partition_psa.json'),
39-
path_join(SERVICES_DIR, 'attestation', 'attestation_partition_psa.json')
40-
]
41-
4235

4336
def parse_manifests(manifests_files):
4437
region_list = []
@@ -104,8 +97,8 @@ def generate_partition_source_files(service_manifest_files, test_manifest_files,
10497

10598

10699
def generate_tfm_code():
107-
_, tests_manifests = manifests_discovery(TESTS_DIR)
108-
generate_partition_source_files(SERVICES_MANIFESTS, tests_manifests)
100+
service_manifests, tests_manifests = manifests_discovery(MBED_OS_ROOT)
101+
generate_partition_source_files(service_manifests, tests_manifests)
109102

110103

111104
if __name__ == '__main__':

0 commit comments

Comments
 (0)