Mbed-TLS / TF-PSA-Crypto

Reference implementation of the PSA Cryptography API
Apache License 2.0
7 stars 7 forks source link

Add support for psa-crypto in config.py #58

Closed ronald-cron-arm closed 1 month ago

ronald-cron-arm commented 9 months ago

Add support for psa-crypto repo in config.py regarding the options baremetal,baremetal_size,full,full_no_deprecated,realfull,crypto,crypto_baremetal,crypto_full.

The configuration file in psa-crypto is include/psa/crypto_config.h. It contains PSACRYPTO and PSAWANT configuration options and thus config.py should be able to handle those configuration options.

We have in build_tree.py looks_like_psa_crypto_root() to detect if we are in the mbedtls or psa-crypto repo.

In psa-crypto, baremetal and crypto_baremetal are equivalent, as well as full and crypto_full. crypto does not do anything, just the default psa-crypto configuration.

ronald-cron-arm commented 1 month ago

Superseded by https://github.com/Mbed-TLS/mbedtls/issues/9157 and https://github.com/Mbed-TLS/mbedtls/issues/9158.