mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-10-28 23:14:56 +03:00
Merge pull request #10409 from gilles-peskine-arm/config-error-on-removed-options-prerequisite-for-crypto
Mechanism to error out on removed configuration options: mbedtls prerequisite for crypto
This commit is contained in:
@@ -356,6 +356,8 @@ $(TF_PSA_CRYPTO_GENERATED_CONFIG_CHECK_FILES):
|
||||
echo " Gen $(TF_PSA_CRYPTO_GENERATED_CONFIG_CHECK_FILES)"
|
||||
$(PYTHON) $(TF_PSA_CRYPTO_CORE_PATH)/../scripts/generate_config_checks.py
|
||||
|
||||
$(TF_PSA_CRYPTO_CORE_PATH)/tf_psa_crypto_config.o: $(TF_PSA_CRYPTO_GENERATED_CONFIG_CHECK_FILES)
|
||||
|
||||
clean:
|
||||
ifndef WINDOWS
|
||||
rm -f *.o *.s libmbed*
|
||||
|
||||
@@ -2436,7 +2436,10 @@ component_test_xts () {
|
||||
# supported through the PSA API.
|
||||
msg "build: Default + MBEDTLS_CIPHER_MODE_XTS"
|
||||
|
||||
echo "#define MBEDTLS_CIPHER_MODE_XTS" > psa_user_config.h
|
||||
cat <<'EOF' >psa_user_config.h
|
||||
#define MBEDTLS_CIPHER_MODE_XTS
|
||||
#define TF_PSA_CRYPTO_CONFIG_CHECK_BYPASS
|
||||
EOF
|
||||
cmake -DTF_PSA_CRYPTO_USER_CONFIG_FILE="psa_user_config.h"
|
||||
make
|
||||
|
||||
|
||||
Reference in New Issue
Block a user