File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1369,6 +1369,9 @@ if(TARGET ${WOLFSSL_TGT})
13691369 )
13701370endif () # TARGET ${WOLFSSL_TGT}
13711371
1372+ set (WOLFBOOT_DEFS_PUBLIC ${WOLFBOOT_DEFS} )
1373+ list (REMOVE_ITEM WOLFBOOT_DEFS_PUBLIC __WOLFBOOT)
1374+
13721375if (BUILD_TEST_APPS OR BUILD_IMAGE)
13731376 message (STATUS "Building wolfBoot image" )
13741377 add_subdirectory (test -app )
@@ -1420,9 +1423,6 @@ set(WOLFBOOT_VERSION
14201423 ${WOLFBOOT_VERSION}
14211424 CACHE INTERNAL "" )
14221425
1423- set (WOLFBOOT_DEFS_PUBLIC ${WOLFBOOT_DEFS} )
1424- list (REMOVE_ITEM WOLFBOOT_DEFS_PUBLIC __WOLFBOOT)
1425-
14261426# generate target.h
14271427configure_file (include /target.h.in ${CMAKE_CURRENT_BINARY_DIR} /target.h @ONLY )
14281428
Original file line number Diff line number Diff line change @@ -124,12 +124,9 @@ if(BUILD_TEST_APPS)
124124
125125 # stm32h5-specific sources
126126 if ("${WOLFBOOT_TARGET} " STREQUAL "stm32h5" )
127- set_source_files_properties (${CMAKE_BINARY_DIR} /keystore.c PROPERTIES GENERATED TRUE )
128127 target_sources (image PRIVATE
129128 ../hal/uart/uart_drv_stm32h5.c
130- ${CMAKE_BINARY_DIR} /keystore.c
131129 )
132- add_dependencies (image keystore )
133130 target_compile_definitions (image PRIVATE
134131 APP_HAS_SYSTICK
135132 RAMFUNCTION=__attribute__ \(\(used,section \(".ramcode" \),long_call \)\)
@@ -177,6 +174,11 @@ if(BUILD_TEST_APPS)
177174 # For TrustZone builds, avoid linking the bootloader lib (it defines NSC stubs).
178175 if (TZEN AND WOLFCRYPT_TZ)
179176 target_sources (image PRIVATE ../src/libwolfboot.c )
177+ if (NOT SIGN STREQUAL "NONE" )
178+ set_source_files_properties (${CMAKE_BINARY_DIR} /keystore.c PROPERTIES GENERATED TRUE )
179+ target_sources (image PRIVATE ${CMAKE_BINARY_DIR} /keystore.c )
180+ add_dependencies (image keystore )
181+ endif ()
180182 target_link_libraries (image PRIVATE wolfboothal target )
181183 else ()
182184 target_link_libraries (image PRIVATE wolfboot wolfboothal public_key target )
You can’t perform that action at this time.
0 commit comments