Skip to content

Commit 43ad5f9

Browse files
committed
applications: gesture_recognition: Add MCUboot configuration files
This commit introduces new MCUboot overlay configuration files for the nRF54L15, nRF54LM20A, nRF54LM20B, and Thingy53 boards. It disables GPIO, serial, console, and other features to optimize power consumption in release configurations. JIRA: NCSDK-37833 Signed-off-by: Jan Zyczkowski jan.zyczkowski@nordicsemi.no
1 parent dac8fc7 commit 43ad5f9

9 files changed

Lines changed: 110 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#
2+
# Copyright (c) 2026 Nordic Semiconductor ASA
3+
#
4+
# SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5+
#
6+
CONFIG_GPIO=n
7+
CONFIG_SERIAL=n
8+
CONFIG_CONSOLE=n
9+
CONFIG_UART_CONSOLE=n
10+
CONFIG_PRINTK=n
11+
CONFIG_USE_SEGGER_RTT=n

applications/gesture_recognition/sysbuild/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,28 @@
77
# The application uses the configuration/<board> scheme for configuration files.
88
set(SB_APPLICATION_CONFIG_DIR "${CMAKE_CURRENT_LIST_DIR}/../configuration/\${NORMALIZED_BOARD_TARGET}")
99

10+
# Use default mcuboot config; when FILE_SUFFIX is set (e.g. release, release_no_ble),
11+
# add board-specific overlay from configuration/<board>/images/mcuboot if present.
12+
# This avoids duplicating full mcuboot prj.conf per board.
13+
if(FILE_SUFFIX AND DEFINED BOARD)
14+
get_filename_component(APP_CONFIG_BASE "${CMAKE_CURRENT_LIST_DIR}/../configuration" ABSOLUTE)
15+
# NORMALIZED_BOARD_TARGET is only set in Zephyr's boards.cmake (per-image); in sysbuild we
16+
# have BOARD from -DBOARD=, so normalize it here for the overlay path check.
17+
string(REPLACE "/" "_" _mcuboot_overlay_board "${BOARD}")
18+
set(mcuboot_OVERLAY_PATH
19+
"${APP_CONFIG_BASE}/${_mcuboot_overlay_board}/images/mcuboot/prj_${FILE_SUFFIX}.conf")
20+
if(EXISTS "${mcuboot_OVERLAY_PATH}")
21+
set(mcuboot_EXTRA_CONF_FILE "${mcuboot_OVERLAY_PATH}"
22+
CACHE INTERNAL "MCUboot overlay for FILE_SUFFIX=${FILE_SUFFIX}" FORCE
23+
)
24+
else()
25+
# No MCUboot overlay present for this FILE_SUFFIX; leave extra config empty.
26+
set(mcuboot_EXTRA_CONF_FILE ""
27+
CACHE INTERNAL "MCUboot overlay for FILE_SUFFIX=${FILE_SUFFIX}" FORCE
28+
)
29+
endif()
30+
endif()
31+
1032
find_package(Sysbuild REQUIRED HINTS $ENV{ZEPHYR_BASE})
1133

1234
project(sysbuild LANGUAGES)

0 commit comments

Comments
 (0)