zephyr/tests/boot/mcuboot_recovery_retention/sysbuild.cmake
Jamie McCrae a4d56e4f55 tests: boot: mcuboot_recovery_retention: Fix configuration issue
Fixes an issue with the tests whereby the RAM memory configuration
files were not being used, and could not be passed to the mcuboot
image.

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
2023-07-20 15:13:49 +00:00

14 lines
709 B
CMake

set(mcuboot_EXTRA_ZEPHYR_MODULES "${CMAKE_CURRENT_LIST_DIR}/test_module" CACHE INTERNAL "test_module directory")
if(DEFINED mcuboot_TARGET_OVERLAY_CONFIG)
list(APPEND mcuboot_OVERLAY_CONFIG "${CMAKE_CURRENT_LIST_DIR}/sysbuild/mcuboot/${mcuboot_TARGET_OVERLAY_CONFIG}")
list(REMOVE_DUPLICATES mcuboot_OVERLAY_CONFIG)
set(mcuboot_OVERLAY_CONFIG "${mcuboot_OVERLAY_CONFIG}" CACHE INTERNAL "")
endif()
if(DEFINED mcuboot_TARGET_DTC_OVERLAY_FILE)
list(APPEND mcuboot_DTC_OVERLAY_FILE "${CMAKE_CURRENT_LIST_DIR}/sysbuild/mcuboot/${mcuboot_TARGET_DTC_OVERLAY_FILE}")
list(REMOVE_DUPLICATES mcuboot_DTC_OVERLAY_FILE)
set(mcuboot_DTC_OVERLAY_FILE "${mcuboot_DTC_OVERLAY_FILE}" CACHE INTERNAL "")
endif()