Skip to content

Commit

Permalink
sysbuild: add flash_sim overlay for s1 image
Browse files Browse the repository at this point in the history
This patch fixes the sysbuild build for thingy91x nrf5340.
Previously, the flash_sim overlay was not included in the s1 image.

Signed-off-by: Maximilian Deubel <[email protected]>
  • Loading branch information
maxd-nordic authored and rlubos committed May 29, 2024
1 parent 93cf90e commit 36c8145
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions boards/nordic/thingy91x/Kconfig.sysbuild
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ if BOARD_THINGY91X_NRF5340_CPUAPP || BOARD_THINGY91X_NRF5340_CPUAPP_NS
config SECURE_BOOT_NETCORE
default y

config SECURE_BOOT_APPCORE
default y

config NETCORE_APP_UPDATE
default y

Expand Down
6 changes: 6 additions & 0 deletions sysbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,12 @@ function(${SYSBUILD_CURRENT_MODULE_NAME}_pre_cmake)
mcuboot
${ZEPHYR_NRF_MODULE_DIR}/modules/mcuboot/flash_sim.overlay
)
if(SB_CONFIG_SECURE_BOOT_BUILD_S1_VARIANT_IMAGE)
add_overlay_dts(
s1_image
${ZEPHYR_NRF_MODULE_DIR}/modules/mcuboot/flash_sim.overlay
)
endif()
else()
set_config_bool(mcuboot CONFIG_PCD_APP n)
endif()
Expand Down

0 comments on commit 36c8145

Please sign in to comment.