Skip to content

Commit 4f31e72

Browse files
committed
doc: footprint: inform about CONFIG_DEVICE_STORE_NAME
CONFIG_DEVICE_STORE_NAME has the potential to reduce ROM usage in case application images do not make use of device_get_binding(), so mention it in the footprint documentation. Signed-off-by: Gerard Marull-Paretas <[email protected]>
1 parent b36e67f commit 4f31e72

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/develop/optimizations/footprint.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ the running application and to provide means for debugging and error handling:
4949
:kconfig:option:`CONFIG_DEBUG`
5050
This option can be disabled for production builds
5151

52+
Others
53+
******
54+
55+
:kconfig:option:`CONFIG_DEVICE_STORE_NAME`
56+
When this option is disabled, devices will not have a unique human readable
57+
name (:c:member:`device.name`). If you set this option to ``n``, you will no
58+
longer be able to use :c:func:`device_get_binding`, because it looks up
59+
devices by name. Use :c:macro:`DEVICE_DT_GET` or another related macro
60+
instead.
5261

5362
MPU/MMU Support
5463
***************

0 commit comments

Comments
 (0)