test: mbedtls: add custom target to check MbedTLS auto-generated files
This commit adds a custom target to tests/crypto/mbedtls in order to verify that MbedTLS auto-generated files are up to date. Signed-off-by: Valerio Setti <vsetti@baylibre.com>
This commit is contained in:
parent
210e08be5d
commit
ffe79b5522
1 changed files with 12 additions and 0 deletions
|
@ -4,5 +4,17 @@ cmake_minimum_required(VERSION 3.20.0)
|
|||
find_package(Zephyr REQUIRED HINTS $ENV{ZEPHYR_BASE})
|
||||
project(mbedtls)
|
||||
|
||||
set(output_file ${PROJECT_BINARY_DIR}/mbedtls-check.timestamp)
|
||||
|
||||
add_custom_command(
|
||||
COMMENT "Check Mbed TLS auto-generated files"
|
||||
COMMAND
|
||||
${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/modules/mbedtls/create_psa_files.py --check
|
||||
OUTPUT
|
||||
${output_file}
|
||||
)
|
||||
|
||||
add_custom_target(check_mbedtls_auto_generated_files ALL DEPENDS ${output_file})
|
||||
|
||||
FILE(GLOB app_sources src/*.c)
|
||||
target_sources(app PRIVATE ${app_sources})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue