Skip to content

Commit 85788d2

Browse files
nordicjmjgl-meta
authored andcommitted
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 <[email protected]> (cherry picked from commit a4d56e4)
1 parent 5952c22 commit 85788d2

File tree

4 files changed

+37
-2
lines changed

4 files changed

+37
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
11
set(mcuboot_EXTRA_ZEPHYR_MODULES "${CMAKE_CURRENT_LIST_DIR}/test_module" CACHE INTERNAL "test_module directory")
2+
3+
if(DEFINED mcuboot_TARGET_OVERLAY_CONFIG)
4+
list(APPEND mcuboot_OVERLAY_CONFIG "${CMAKE_CURRENT_LIST_DIR}/sysbuild/mcuboot/${mcuboot_TARGET_OVERLAY_CONFIG}")
5+
list(REMOVE_DUPLICATES mcuboot_OVERLAY_CONFIG)
6+
set(mcuboot_OVERLAY_CONFIG "${mcuboot_OVERLAY_CONFIG}" CACHE INTERNAL "")
7+
endif()
8+
9+
if(DEFINED mcuboot_TARGET_DTC_OVERLAY_FILE)
10+
list(APPEND mcuboot_DTC_OVERLAY_FILE "${CMAKE_CURRENT_LIST_DIR}/sysbuild/mcuboot/${mcuboot_TARGET_DTC_OVERLAY_FILE}")
11+
list(REMOVE_DUPLICATES mcuboot_DTC_OVERLAY_FILE)
12+
set(mcuboot_DTC_OVERLAY_FILE "${mcuboot_DTC_OVERLAY_FILE}" CACHE INTERNAL "")
13+
endif()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#
2+
# Copyright (c) 2023 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: Apache-2.0
5+
#
6+
CONFIG_RETAINED_MEM_NRF_GPREGRET=n
7+
CONFIG_RETAINED_MEM_ZEPHYR_RAM=y
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/* SPDX-License-Identifier: Apache-2.0 */
2+
#include "../../../boards/nrf52840dk_nrf52840_mem.overlay"
3+
4+
/ {
5+
chosen {
6+
zephyr,code-partition = &boot_partition;
7+
};
8+
};
9+
10+
&zephyr_udc0 {
11+
cdc_acm_uart0 {
12+
compatible = "zephyr,cdc-acm-uart";
13+
};
14+
};

tests/boot/mcuboot_recovery_retention/testcase.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,10 @@ tests:
3030
mcuboot.recovery.retention.mem:
3131
platform_allow: nrf52840dk_nrf52840
3232
extra_args:
33-
- "'OVERLAY_CONFIG=\"nrf52840dk_nrf52840_mem.conf\"'"
34-
- "'DTC_OVERLAY_FILE=\"boards/nrf52840dk_nrf52840_mem.overlay\"'"
33+
- OVERLAY_CONFIG="boards/nrf52840dk_nrf52840_mem.conf"
34+
- DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840_mem.overlay"
35+
- mcuboot_TARGET_OVERLAY_CONFIG="boards/nrf52840dk_nrf52840_mem.conf"
36+
- mcuboot_TARGET_DTC_OVERLAY_FILE="boards/nrf52840dk_nrf52840_mem.overlay"
3537
tags:
3638
- mcuboot
3739
- sysbuild

0 commit comments

Comments
 (0)