You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
samples: matter: enable LTO by default for release and nRF70
Enable LTO by default for release configuration in all samples
and applications and for nRF70.
Signed-off-by: Maciej Baczmanski <[email protected]>
Co-authored-by: Kamil Kasperczyk <[email protected]>
Copy file name to clipboardExpand all lines: doc/nrf/protocols/matter/getting_started/memory_optimization.rst
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,13 @@ You can reduce the memory usage of your Matter application by enabling Link Time
46
46
47
47
LTO is an advanced compilation technique that performs optimization across all compiled units of an application at the link stage, rather than within each unit separately.
48
48
49
+
LTO is enabled by default for:
50
+
51
+
- The :ref:`matter_bridge_app` application.
52
+
- The ``release`` configuration of the :ref:`matter_samples` and the :ref:`matter_weather_station_app`.
53
+
- The ``nrf7002dk/nrf5340/cpuapp`` build target in the :ref:`matter_samples`.
54
+
55
+
49
56
To enable LTO, set the :kconfig:option:`CONFIG_LTO` and :kconfig:option:`CONFIG_ISR_TABLES_LOCAL_DECLARATION` Kconfig options to ``y``.
Copy file name to clipboardExpand all lines: doc/nrf/releases_and_maturity/releases/release-notes-changelog.rst
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -207,6 +207,7 @@ Matter Bridge
207
207
208
208
* Enabled SUIT DFU support for the :ref:`matter_bridge_app` application.
209
209
Currently, only the Matter OTA protocol is fully supported for SUIT DFU purposes.
210
+
* Enabled Link Time Optimization (LTO) by default for the ``release`` configuration.
210
211
211
212
nRF5340 Audio
212
213
-------------
@@ -244,7 +245,7 @@ Serial LTE modem
244
245
Thingy:53: Matter weather station
245
246
---------------------------------
246
247
247
-
|no_changes_yet_note|
248
+
* Enabled Link Time Optimization (LTO) by default for the ``release`` configuration.
248
249
249
250
Samples
250
251
=======
@@ -374,6 +375,7 @@ Matter samples
374
375
* Updated the :ref:`matter_template_sample` sample document with the instructions on how to build the sample on the nRF54L15 DK with support for Matter OTA DFU and DFU over Bluetooth SMP, and using internal MRAM only.
375
376
* Enabled SUIT DFU support for the :ref:`matter_lock_sample`, and :ref:`matter_template_sample` samples.
376
377
Currently, only the Matter OTA protocol is fully supported for SUIT DFU purposes.
378
+
* Enabled Link Time Optimization (LTO) by default for the ``release`` configuration and ``nrf7002dk/nrf5340/cpuapp`` build target.
0 commit comments