|
26 | 26 | sys.path.insert(0, ROOT)
|
27 | 27 |
|
28 | 28 | 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 |
30 | 30 |
|
31 | 31 | __version__ = '1.0'
|
32 | 32 | SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
|
33 | 33 | TEMPLATES_LIST_FILE = path_join(SCRIPT_DIR, 'tfm', 'tfm_generated_file_list.json')
|
34 | 34 |
|
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 |
| - |
42 | 35 |
|
43 | 36 | def parse_manifests(manifests_files):
|
44 | 37 | region_list = []
|
@@ -104,8 +97,8 @@ def generate_partition_source_files(service_manifest_files, test_manifest_files,
|
104 | 97 |
|
105 | 98 |
|
106 | 99 | 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) |
109 | 102 |
|
110 | 103 |
|
111 | 104 | if __name__ == '__main__':
|
|
0 commit comments