Skip to content

Commit d59c65c

Browse files
krish2718karun2796
authored andcommitted
samples: net: Enable LTO to fix flash overflow
Due to recent upmerge we are seeing flash overflow in aws_iot and azure_iot_hub samples, so, enable LTO to fix the build. Signed-off-by: Chaitanya Tata <[email protected]>
1 parent 18b49cf commit d59c65c

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

samples/net/aws_iot/boards/nrf7002dk_nrf5340_cpuapp_ns.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,7 @@ CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y
109109
CONFIG_TFM_PROFILE_TYPE_SMALL=y
110110
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0xc000
111111
CONFIG_PM_PARTITION_SIZE_TFM=0x1fe00
112+
113+
# Enable LTO to save flash memory
114+
CONFIG_LTO=y
115+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

samples/net/azure_iot_hub/boards/nrf7002dk_nrf5340_cpuapp_ns.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,3 +104,7 @@ CONFIG_TLS_CREDENTIALS_BACKEND_PROTECTED_STORAGE=y
104104
CONFIG_TFM_PROFILE_TYPE_SMALL=y
105105
CONFIG_PM_PARTITION_SIZE_TFM_SRAM=0xc000
106106
CONFIG_PM_PARTITION_SIZE_TFM=0x1fe00
107+
108+
# Enable LTO to save flash memory
109+
CONFIG_LTO=y
110+
CONFIG_ISR_TABLES_LOCAL_DECLARATION=y

0 commit comments

Comments
 (0)