Skip to content

Commit 84f762b

Browse files
committed
CMake: don't link libwolfboot.o in test-app
1 parent b2dba7f commit 84f762b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test-app/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ if(BUILD_TEST_APPS)
176176
target_include_directories(image PRIVATE ../lib/wolfPKCS11)
177177
endif()
178178

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

0 commit comments

Comments
 (0)