CMake: don't link libwolfboot.o in test-app

pull/727/head
Mattia Moffa 2026-03-19 16:53:56 +01:00
parent b2dba7f670
commit 84f762b730
1 changed files with 2 additions and 2 deletions

View File

@ -176,8 +176,8 @@ if(BUILD_TEST_APPS)
target_include_directories(image PRIVATE ../lib/wolfPKCS11)
endif()
# wolfCrypt TrustZone test builds provide extra secure-call wrappers directly.
if(TZEN AND WOLFCRYPT_TZ)
# For TrustZone builds, avoid linking the bootloader lib (it defines NSC stubs).
if(TZEN)
target_sources(image PRIVATE ../src/libwolfboot.c)
if(NOT SIGN STREQUAL "NONE")
set_source_files_properties(${CMAKE_BINARY_DIR}/keystore.c PROPERTIES GENERATED TRUE)