Skip to content

Commit 4c2de2f

Browse files
kapi-norlubos
authored andcommitted
applications: nrf_desktop: enable LTO for the MCUboot on nRF54L15 DK
Enable Link Time optimization (LTO) for the MCUboot image and the nRF54L15 DK target in the nRF Desktop application. Signed-off-by: Kamil Piszczek <[email protected]>
1 parent c96a1a6 commit 4c2de2f

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l15_cpuapp/images/mcuboot/prj.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ CONFIG_MINIMAL_LIBC=y
3535

3636
# Improve debugging experience by disabling reset on fatal error
3737
CONFIG_RESET_ON_FATAL_ERROR=n
38+
39+
# Activate LTO
40+
CONFIG_LTO=y
41+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l15_cpuapp/images/mcuboot/prj_fast_pair.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ CONFIG_MINIMAL_LIBC=y
3535

3636
# Improve debugging experience by disabling reset on fatal error
3737
CONFIG_RESET_ON_FATAL_ERROR=n
38+
39+
# Activate LTO
40+
CONFIG_LTO=y
41+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l15_cpuapp/images/mcuboot/prj_keyboard.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,7 @@ CONFIG_MINIMAL_LIBC=y
3535

3636
# Improve debugging experience by disabling reset on fatal error
3737
CONFIG_RESET_ON_FATAL_ERROR=n
38+
39+
# Activate LTO
40+
CONFIG_LTO=y
41+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

applications/nrf_desktop/configuration/nrf54l15dk_nrf54l15_cpuapp/images/mcuboot/prj_release.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,7 @@ CONFIG_USE_SEGGER_RTT=n
3434

3535
# Use minimal C library instead of the Picolib
3636
CONFIG_MINIMAL_LIBC=y
37+
38+
# Activate LTO
39+
CONFIG_LTO=y
40+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ nRF Desktop
343343
* All build configurations with the DFU over MCUmgr support to require encryption for operations on the Bluetooth GATT SMP service (see the :kconfig:option:`CONFIG_MCUMGR_TRANSPORT_BT_PERM_RW_ENCRYPT` Kconfig option).
344344
The Bluetooth pairing procedure of the unpaired Bluetooth peers must now be performed before the DFU operation.
345345
* The :ref:`nrf_desktop_dfu_mcumgr` to enable the MCUmgr handler that is used to report the bootloader information (see the :kconfig:option:`CONFIG_MCUMGR_GRP_OS_BOOTLOADER_INFO` Kconfig option).
346+
* The MCUboot image configurations for the :ref:`zephyr:nrf54l15dk_nrf54l15` board to enable Link Time Optimization (LTO) (see the :kconfig:option:`CONFIG_LTO` Kconfig option) and reduce the memory footprint of the bootloader.
346347

347348
nRF Machine Learning (Edge Impulse)
348349
-----------------------------------

0 commit comments

Comments
 (0)