@@ -440,12 +440,15 @@ def configure_options(target):
440
440
441
441
for config in bulk_options :
442
442
if config == COPY_TFM_CONFIG :
443
+ # older versions of this config file need SPM to be disabled
444
+ disable_spm = True
443
445
# special flag to copy both TF-M config files - these have a couple of possible locations
444
446
for mc , cc in TFM_CONFIG_FILES :
445
447
if os .path .exists (f"{ ROOT } /configs/{ mc } " ) and (cc is None or os .path .exists (f"{ ROOT } /configs/{ cc } " )):
446
448
if mc == TFM_CONFIG_FILES [0 ][0 ]:
447
449
# latest TF-M config file unsets this, so set it again
448
450
set_no_platform_entropy = True
451
+ disable_spm = False # not needed with latest version
449
452
for c , dest in zip ([mc , cc ], [CONFIG_FILE , CRYPTO_CONFIG_FILE ]):
450
453
if c is not None :
451
454
log (f"cp configs/{ c } { dest [len (ROOT ) + 1 :]} " )
@@ -454,8 +457,6 @@ def configure_options(target):
454
457
else :
455
458
# for looking at old checkouts where these configs were not in the tree, fetch from
456
459
# date they were first created instead
457
- # also disable MBEDTLS_PSA_CRYPTO_SPM is required to get it to build
458
- disable_spm = True
459
460
for config , dest in zip (TFM_CONFIG_FILES [- 1 ], [CONFIG_FILE , CRYPTO_CONFIG_FILE ]):
460
461
log (f"git show 2f1ae5a86ebd67faa50c3983b4567656c2234674:configs/{ config } > { dest [len (ROOT ) + 1 :]} " )
461
462
output , _ = subrun (["git" , "show" , "origin/development:configs/" + config ], silent = True )
0 commit comments