@@ -271,7 +271,7 @@ def __eq__(self, other):
271
271
)
272
272
273
273
@classmethod
274
- def from_json (cls , manifest_file ):
274
+ def from_json (cls , manifest_file , skip_src = False ):
275
275
"""
276
276
Load a partition manifest file
277
277
@@ -294,9 +294,10 @@ def from_json(cls, manifest_file):
294
294
manifest_dir = os .path .dirname (manifest_file )
295
295
296
296
source_files = []
297
- for src_file in manifest ['source_files' ]:
298
- source_files .append (
299
- os .path .normpath (path_join (manifest_dir , src_file )))
297
+ if not skip_src :
298
+ for src_file in manifest ['source_files' ]:
299
+ source_files .append (
300
+ os .path .normpath (path_join (manifest_dir , src_file )))
300
301
301
302
mmio_regions = []
302
303
for mmio_region in manifest .get ('mmio_regions' , []):
@@ -356,11 +357,11 @@ def is_up_to_date(self, template_files):
356
357
357
358
def find_dependencies (self , manifests ):
358
359
"""
359
- Find other manifests which holds Secure functions that
360
+ Find other manifests which holds Secure functions that
360
361
are declared as extern in this manifest
361
362
362
363
:param manifests: list of manifests to filter
363
- :return: list of manifest's names that holds current
364
+ :return: list of manifest's names that holds current
364
365
extern secure functions
365
366
"""
366
367
@@ -672,7 +673,7 @@ def generate_spm_data(manifest_files, output_dir, extra_filters=None):
672
673
region_list = []
673
674
manifests = []
674
675
for manifest_file in manifest_files :
675
- manifest_obj = Manifest .from_json (manifest_file )
676
+ manifest_obj = Manifest .from_json (manifest_file , skip_src = True )
676
677
for region in manifest_obj .mmio_regions :
677
678
region_list .append (region )
678
679
manifests .append (manifest_obj )
0 commit comments