1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-20 16:42:59 +03:00

cmake: Generate test_keys.h and test_certs.h in the build tree

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron
2025-02-14 15:43:22 +01:00
parent 81a674eee8
commit 99226e9b9b
8 changed files with 39 additions and 27 deletions

View File

@ -42,6 +42,8 @@ my $crypto_core_source_dir = 'tf-psa-crypto/core';
my $crypto_source_dir = 'tf-psa-crypto/drivers/builtin/src';
my $tls_test_source_dir = 'tests/src';
my $tls_test_header_dir = 'tests/include/test';
my $crypto_test_source_dir = 'tf-psa-crypto/tests/src';
my $crypto_test_header_dir = 'tf-psa-crypto/tests/include/test';
my $test_source_dir = 'framework/tests/src';
my $test_header_dir = 'framework/tests/include/test';
my $test_drivers_header_dir = 'framework/tests/include/test/drivers';
@ -68,6 +70,7 @@ my @include_directories = qw(
tf-psa-crypto/drivers/everest/include/everest/vs2013
tf-psa-crypto/drivers/everest/include/everest/kremlib
tests/include
tf-psa-crypto/tests/include
framework/tests/include
framework/tests/programs
);
@ -131,9 +134,11 @@ sub check_dirs {
&& -d $crypto_source_dir
&& -d $test_source_dir
&& -d $tls_test_source_dir
&& -d $crypto_test_source_dir
&& -d $test_drivers_source_dir
&& -d $test_header_dir
&& -d $tls_test_header_dir
&& -d $crypto_test_header_dir
&& -d $test_drivers_header_dir
&& -d $mbedtls_programs_dir
&& -d $framework_programs_dir
@ -300,6 +305,7 @@ sub main {
$psa_header_dir,
$test_header_dir,
$tls_test_header_dir,
$crypto_test_header_dir,
$test_drivers_header_dir,
$tls_source_dir,
$crypto_core_source_dir,
@ -314,6 +320,7 @@ sub main {
$crypto_source_dir,
$test_source_dir,
$tls_test_source_dir,
$crypto_test_source_dir,
$test_drivers_source_dir,
@thirdparty_source_dirs,
);