1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-29 11:41:15 +03:00

Rename is_psa_crypto -> in_psa_crypto_repo

(For consistency with all.sh)

Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
David Horstmann
2023-08-23 16:24:55 +01:00
parent 7f93d22ad9
commit 0ac57ca6c6

View File

@ -58,7 +58,7 @@ PSA_ARCH_TESTS_REF = 'fix-pr-5736'
def main(library_build_dir: str):
mbedtls_dir = os.getcwd()
is_psa_crypto = build_tree.looks_like_psa_crypto_root(mbedtls_dir)
in_psa_crypto_repo = build_tree.looks_like_psa_crypto_root(mbedtls_dir)
if not os.path.exists(library_build_dir + '/library/libmbedcrypto.a'):
subprocess.check_call([
@ -86,14 +86,14 @@ def main(library_build_dir: str):
os.mkdir(build_dir)
os.chdir(build_dir)
if is_psa_crypto:
if in_psa_crypto_repo:
crypto_lib_filename = \
library_build_dir + '/core/libpsacrypto.a'
else:
crypto_lib_filename = library_build_dir + '/library/libmbedcrypto.a'
extra_includes = (';{}/drivers/builtin/include'.format(mbedtls_dir)
if is_psa_crypto else '')
if in_psa_crypto_repo else '')
#pylint: disable=bad-continuation
subprocess.check_call([