kconfig: openthread: Add OPENTHREAD_CLI_VENDOR_EXTENSION option

This commit introduces a new option, OPENTHREAD_CLI_VENDOR_EXTENSION,
in the Zephyr OpenThread module to map the upstream option
OT_CLI_VENDOR_EXTENSION.

OPENTHREAD_CLI_VENDOR_EXTENSION option specifies the path to a CMake
file that defines and links the CLI vendor extension. By setting this
option, it enables the addition of vendor-specific commands to
the OpenThread CLI interface.

Signed-off-by: Lukasz Maciejonczyk <lukasz.maciejonczyk@nordicsemi.no>
This commit is contained in:
Lukasz Maciejonczyk 2024-10-10 12:05:37 +02:00 committed by Henrik Brix Andersen
parent 609520bf3f
commit a131e85a94
2 changed files with 7 additions and 0 deletions

View file

@ -137,6 +137,10 @@ if(CONFIG_OPENTHREAD_POWER_SUPPLY)
set(OT_POWER_SUPPLY ${CONFIG_OPENTHREAD_POWER_SUPPLY} CACHE STRING "Power supply configuration" FORCE)
endif()
if (CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION)
set(OT_CLI_VENDOR_EXTENSION ${CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION} CACHE STRING "Path to CMake file to define and link Openthread CLI vendor extension" FORCE)
endif()
set(BUILD_TESTING OFF CACHE BOOL "Disable openthread cmake testing targets" FORCE)
# Zephyr logging options

View file

@ -389,3 +389,6 @@ config OPENTHREAD_UPTIME
config OPENTHREAD_VERHOEFF_CHECKSUM
bool "Verhoeff checksum"
config OPENTHREAD_CLI_VENDOR_EXTENSION
string "Path to CMake file to define and link Openthread CLI vendor extension"