Skip to content

Commit a131e85

Browse files
lmaciejonczykhenrikbrixandersen
authored andcommitted
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 <[email protected]>
1 parent 609520b commit a131e85

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

modules/openthread/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ if(CONFIG_OPENTHREAD_POWER_SUPPLY)
137137
set(OT_POWER_SUPPLY ${CONFIG_OPENTHREAD_POWER_SUPPLY} CACHE STRING "Power supply configuration" FORCE)
138138
endif()
139139

140+
if (CONFIG_OPENTHREAD_CLI_VENDOR_EXTENSION)
141+
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)
142+
endif()
143+
140144
set(BUILD_TESTING OFF CACHE BOOL "Disable openthread cmake testing targets" FORCE)
141145

142146
# Zephyr logging options

modules/openthread/Kconfig.features

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,3 +389,6 @@ config OPENTHREAD_UPTIME
389389

390390
config OPENTHREAD_VERHOEFF_CHECKSUM
391391
bool "Verhoeff checksum"
392+
393+
config OPENTHREAD_CLI_VENDOR_EXTENSION
394+
string "Path to CMake file to define and link Openthread CLI vendor extension"

0 commit comments

Comments
 (0)