Skip to content

Commit

Permalink
samples: suit: Link time optimization for recovery app
Browse files Browse the repository at this point in the history
This commit enables LTO on both cores in the default
SUIT recovery application.

This allows to save ~10kB on the application core
and ~5kB on the radio core.

Signed-off-by: Artur Hadasz <artur.hadasz@nordicsemi.no>
  • Loading branch information
ahasztag committed Nov 7, 2024
1 parent 9e61aa7 commit 7f9dd01
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions samples/suit/recovery/prj.conf
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,13 @@ CONFIG_BT_DEVICE_NAME="SUIT Recovery"
########

# Disable unneeded drivers, peripherals and features to optimize for size

CONFIG_SIZE_OPTIMIZATIONS=y

# Enable LTO
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

CONFIG_I2C=n
CONFIG_WATCHDOG=n
CONFIG_SPI=n
Expand Down
5 changes: 5 additions & 0 deletions samples/suit/recovery/sysbuild/hci_ipc.conf
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ CONFIG_PRINTK=n

CONFIG_SIZE_OPTIMIZATIONS=y

# Enable LTO
CONFIG_LTO=y
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y


CONFIG_BT_CTLR_CRYPTO=n
CONFIG_ENTROPY_GENERATOR=y

Expand Down

0 comments on commit 7f9dd01

Please sign in to comment.