Merge pull request #32 from ronald-cron-arm/adapt-to-crypto-modules-migration

Adapt to crypto modules migration
This commit is contained in:
Ronald Cron
2024-07-10 11:56:49 +02:00
committed by GitHub
+6 -2
View File
@@ -37,9 +37,13 @@ def crypto_core_directory(root: Optional[str] = None, relative: Optional[bool] =
return "core"
return os.path.join(root, "core")
elif looks_like_mbedtls_root(root):
if os.path.isdir(os.path.join(root, 'tf-psa-crypto')):
path = "tf-psa-crypto/core"
else:
path = "library"
if relative:
return "library"
return os.path.join(root, "library")
return path
return os.path.join(root, path)
else:
raise Exception('Neither Mbed TLS nor TF-PSA-Crypto source tree found')