mirror of
https://github.com/Mbed-TLS/mbedtls-framework.git
synced 2026-09-27 20:37:22 +00:00
Adapt crypto core directory path
Adapt crypto core directory path in mbedtls due to the move of the PSA crypto core to tf-psa-crypto/core. Signed-off-by: Ronald Cron <[email protected]>
This commit is contained in:
@@ -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')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user