You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adapting Python and shell scripts to work for mbedtls 3.6, mbedtls 4.0 and/or TF-PSA-Crypto, we often need to detect if the script is called in mbedtls or TF-PSA-Crypto context, if it is called from the root of the project and in the case of mbedtls if the branch is 3.6 or 4.0. The goals of this task are:
to complete/improve the Python utility functions in build_tree.py to do the above. Complete: no mbedlts 3.6/4.0 detection for the time being I think. Improve: to distinguish between mbedtls/TF-PSA-Crypto, find a project root, rather use the scripts/project_name.txt file introduced by Standardise Project Detection in Shell Scripts mbedtls#8609 (to be added in tf-psa-crypto/scripts). Done in Projects and Mbed TLS 3.6 detection #45
for shell scripts, extend along the lines of what has been done in #8609 to detect between mbedtls 3.6 and 4.0. We should probably create an utility script located in framework/scripts containing the functions in_mbedtls_repo() and in_tf_psa_crypto_repo() as defined in #8609 as well as an is_3_6_branch()/is_4_x_branch() (probably that better names can be found for this functions). The utility script would be "sourced" in test scripts assuming they are called from the root of the repositories.
The text was updated successfully, but these errors were encountered:
When adapting Python and shell scripts to work for mbedtls 3.6, mbedtls 4.0 and/or TF-PSA-Crypto, we often need to detect if the script is called in mbedtls or TF-PSA-Crypto context, if it is called from the root of the project and in the case of mbedtls if the branch is 3.6 or 4.0. The goals of this task are:
to complete/improve the Python utility functions in build_tree.py to do the above. Complete: no mbedlts 3.6/4.0 detection for the time being I think. Improve: to distinguish between mbedtls/TF-PSA-Crypto, find a project root, rather use the
scripts/project_name.txt
file introduced by Standardise Project Detection in Shell Scripts mbedtls#8609 (to be added in tf-psa-crypto/scripts). Done in Projects and Mbed TLS 3.6 detection #45for shell scripts, extend along the lines of what has been done in #8609 to detect between mbedtls 3.6 and 4.0. We should probably create an utility script located in
framework/scripts
containing the functionsin_mbedtls_repo()
andin_tf_psa_crypto_repo()
as defined in #8609 as well as anis_3_6_branch()
/is_4_x_branch()
(probably that better names can be found for this functions). The utility script would be "sourced" in test scripts assuming they are called from the root of the repositories.The text was updated successfully, but these errors were encountered: