Skip to content

Commit 0b65b27

Browse files
authored
Merge pull request Mbed-TLS#117 from daverodgman/fix-spm
Mtest - Disable SPM for TF-M config
2 parents 08a4a4e + 10f7b7f commit 0b65b27

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tools/bin/mtest

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,12 +440,15 @@ def configure_options(target):
440440

441441
for config in bulk_options:
442442
if config == COPY_TFM_CONFIG:
443+
# older versions of this config file need SPM to be disabled
444+
disable_spm = True
443445
# special flag to copy both TF-M config files - these have a couple of possible locations
444446
for mc, cc in TFM_CONFIG_FILES:
445447
if os.path.exists(f"{ROOT}/configs/{mc}") and (cc is None or os.path.exists(f"{ROOT}/configs/{cc}")):
446448
if mc == TFM_CONFIG_FILES[0][0]:
447449
# latest TF-M config file unsets this, so set it again
448450
set_no_platform_entropy = True
451+
disable_spm = False # not needed with latest version
449452
for c, dest in zip([mc, cc], [CONFIG_FILE, CRYPTO_CONFIG_FILE]):
450453
if c is not None:
451454
log(f"cp configs/{c} {dest[len(ROOT) + 1:]}")
@@ -454,8 +457,6 @@ def configure_options(target):
454457
else:
455458
# for looking at old checkouts where these configs were not in the tree, fetch from
456459
# date they were first created instead
457-
# also disable MBEDTLS_PSA_CRYPTO_SPM is required to get it to build
458-
disable_spm = True
459460
for config, dest in zip(TFM_CONFIG_FILES[-1], [CONFIG_FILE, CRYPTO_CONFIG_FILE]):
460461
log(f"git show 2f1ae5a86ebd67faa50c3983b4567656c2234674:configs/{config} > {dest[len(ROOT) + 1:]}")
461462
output, _ = subrun(["git", "show", "origin/development:configs/" + config], silent=True)

0 commit comments

Comments
 (0)