Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions modules/trusted-firmware-m/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,13 @@ if (CONFIG_BUILD_WITH_TFM)
interface/interface.c
)

# A dependency on tfm_s.hex for zephyr.elf will not cause a Zephyr re-link when
# tfm_s.hex is updated, as the hex is not a direct input on the executable.
# Instead we establish a source file dependency which ensures that tfm_api is
# updated when there are changes in tfm itself, this again will trigger an re-link
# of Zephyr.elf.
set_property(SOURCE interface/interface.c APPEND PROPERTY OBJECT_DEPENDS ${TFM_S_HEX_FILE})

# Non-Secure interface to request system reboot
if (CONFIG_TFM_PARTITION_PLATFORM AND NOT CONFIG_TFM_PARTITION_PLATFORM_CUSTOM_REBOOT)
zephyr_library_sources(src/reboot.c)
Expand Down