Commit 6cd0a77
committed
modules: openthread: Add Kconfig check for precompiled libraries
Add configuration validation when using precompiled OpenThread
libraries. This helps users identify Kconfig options that differ
from the library's built-in configuration and would have no
effect.
- Create openthread_kconfig_check.cmake with utilities for
tracking Kconfig to OT option mappings
- Move the kconfig_to_ot_option macro for boolean options to
a separate script file.
- Add kconfig_to_ot_string_option macro for string options
- Register all OpenThread Kconfig options including FTD/MTD and
string options like POWER_SUPPLY, THREAD_VERSION, etc.
- Add kconfig_to_ot_string_option macro for string options
- Add openthread_check_kconfig_for_precompiled_libs function
that:
- Reads openthread_lib_configuration.txt from the selected
library
- Compares current Kconfig values with library OT_* values
- Displays a warning listing differing options when
mismatches found
When CONFIG_OPENTHREAD_SOURCES is not set, users will now see a
warning if their configuration differs from the precompiled library,
guiding them to either adjust their config or build from sources.
Signed-off-by: Arkadiusz Balys <[email protected]>1 parent d6c88a7 commit 6cd0a77
File tree
4 files changed
+324
-130
lines changed- doc/nrf/releases_and_maturity/releases
- modules/openthread
- subsys/net
4 files changed
+324
-130
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
169 | 169 | | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
| 172 | + | |
173 | 173 | | |
174 | 174 | | |
175 | 175 | | |
| |||
0 commit comments