From ed0f5edc697d428a3a8e928a6be0ea65188c9b3b Mon Sep 17 00:00:00 2001 From: Harry Ramsey Date: Wed, 8 Jan 2025 10:03:10 +0000 Subject: [PATCH] Adapt generate_query_config.pl for Mbed TLS 3.6 and development This commit adapts the file generate_query_config.pl to work for both Mbed TLS 3.6 and development versions. Signed-off-by: Harry Ramsey --- scripts/generate_query_config.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/generate_query_config.pl b/scripts/generate_query_config.pl index 6a2f9cbdf..977ccf4bc 100755 --- a/scripts/generate_query_config.pl +++ b/scripts/generate_query_config.pl @@ -26,7 +26,12 @@ my ($mbedtls_config_file, $psa_crypto_config_file, $query_config_format_file, $query_config_file); my $default_mbedtls_config_file = "./include/mbedtls/mbedtls_config.h"; -my $default_psa_crypto_config_file = "./tf-psa-crypto/include/psa/crypto_config.h"; +if (-d "tf-psa-crypto") { + my $default_psa_crypto_config_file = "./tf-psa-crypto/include/psa/crypto_config.h"; +} +else { + my $default_psa_crypto_config_file = "./include/psa/crypto_config.h"; +} my $default_query_config_format_file = "./scripts/data_files/query_config.fmt"; my $default_query_config_file = "./programs/test/query_config.c";