Revert move of version.h to tf-psa-crypto libray

This commit moves version.h back into /include/mbedtls from
tf-psa-crypto/drivers/builtin/include. This commit also changes the
necessary build files and scripts to generate version_features.c

Signed-off-by: Harry Ramsey <[email protected]>
This commit is contained in:
Harry Ramsey
2024-10-04 13:37:42 +01:00
parent 467edcd64a
commit 468c0aede9
7 changed files with 26 additions and 27 deletions
+18
View File
@@ -36,9 +36,26 @@ set(src_tls
ssl_tls13_server.c
ssl_tls13_client.c
ssl_tls13_generic.c
version.c
version_features.c
)
if(GEN_FILES)
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/version_features.c
COMMAND
${PERL_EXECUTABLE}
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_features.pl
${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files
${CMAKE_CURRENT_BINARY_DIR}/version_features.c
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/generate_features.pl
${CMAKE_CURRENT_SOURCE_DIR}/../include/mbedtls/mbedtls_config.h
${CMAKE_CURRENT_SOURCE_DIR}/../scripts/data_files/version_features.fmt
)
add_custom_command(
OUTPUT
${CMAKE_CURRENT_BINARY_DIR}/ssl_debug_helpers_generated.c
@@ -52,6 +69,7 @@ if(GEN_FILES)
${tls_error_headers}
)
else()
link_to_source(version_features.c)
link_to_source(ssl_debug_helpers_generated.c)
endif()