Skip to content

Commit 91ff644

Browse files
committed
boot: zephyr: nrf7120: derive image sectors automatically and enable LTO
nRF7120 builds without Partition Manager, where BOOT_MAX_IMG_SECTORS_AUTO is enabled by default and derives the sector count from the DTS slot size and the MRAM erase-block. Enable link-time optimization (CONFIG_LTO and CONFIG_ISR_TABLES_LOCAL_DECLARATION) to reduce the MCUboot footprint. Signed-off-by: Erdem Simsek <erdem.simsek@nordicsemi.no>
1 parent f263a70 commit 91ff644

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

boot/zephyr/socs/nrf7120_cpuapp.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@
22
#
33
# SPDX-License-Identifier: Apache-2.0
44
#
5-
CONFIG_BOOT_MAX_IMG_SECTORS=256
5+
66

77
# Ensure that the SPI NOR driver is disabled by default
88
CONFIG_SPI_NOR=n
99

10-
# TODO: below are not yet supported and need fixing
11-
CONFIG_FPROTECT=n
12-
1310
CONFIG_BOOT_WATCHDOG_FEED=n
11+
12+
# Link Time Optimizations
13+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y
14+
CONFIG_LTO=y

0 commit comments

Comments
 (0)