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>
This commit is contained in:
parent
ee5c9b2629
commit
a4d56e4f55
4 changed files with 37 additions and 2 deletions
|
@ -1 +1,13 @@
|
||||||
set(mcuboot_EXTRA_ZEPHYR_MODULES "${CMAKE_CURRENT_LIST_DIR}/test_module" CACHE INTERNAL "test_module directory")
|
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()
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
#
|
||||||
|
# Copyright (c) 2023 Nordic Semiconductor ASA
|
||||||
|
#
|
||||||
|
# SPDX-License-Identifier: Apache-2.0
|
||||||
|
#
|
||||||
|
CONFIG_RETAINED_MEM_NRF_GPREGRET=n
|
||||||
|
CONFIG_RETAINED_MEM_ZEPHYR_RAM=y
|
|
@ -0,0 +1,14 @@
|
||||||
|
/* SPDX-License-Identifier: Apache-2.0 */
|
||||||
|
#include "../../../boards/nrf52840dk_nrf52840_mem.overlay"
|
||||||
|
|
||||||
|
/ {
|
||||||
|
chosen {
|
||||||
|
zephyr,code-partition = &boot_partition;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
&zephyr_udc0 {
|
||||||
|
cdc_acm_uart0 {
|
||||||
|
compatible = "zephyr,cdc-acm-uart";
|
||||||
|
};
|
||||||
|
};
|
|
@ -30,8 +30,10 @@ tests:
|
||||||
mcuboot.recovery.retention.mem:
|
mcuboot.recovery.retention.mem:
|
||||||
platform_allow: nrf52840dk_nrf52840
|
platform_allow: nrf52840dk_nrf52840
|
||||||
extra_args:
|
extra_args:
|
||||||
- "'OVERLAY_CONFIG=\"nrf52840dk_nrf52840_mem.conf\"'"
|
- OVERLAY_CONFIG="boards/nrf52840dk_nrf52840_mem.conf"
|
||||||
- "'DTC_OVERLAY_FILE=\"boards/nrf52840dk_nrf52840_mem.overlay\"'"
|
- DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840_mem.overlay"
|
||||||
|
- mcuboot_TARGET_OVERLAY_CONFIG="boards/nrf52840dk_nrf52840_mem.conf"
|
||||||
|
- mcuboot_TARGET_DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840_mem.overlay"
|
||||||
tags:
|
tags:
|
||||||
- mcuboot
|
- mcuboot
|
||||||
- sysbuild
|
- sysbuild
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue