Skip to content
Permalink
Browse files

net: openthread: Allow DHCP configuration of OpenThread in Zephyr

Certain Thread implementations (notably ARMs) require a DHCPv6
implementation.
Allow the usage of the relevant OpenThread configuration parameters in
Zephyr.

Signed-off-by: Markus Becker <markus.becker@tridonic.com>
  • Loading branch information...
markus-becker-tridonic-com authored and jukkar committed Jul 11, 2019
1 parent efae1a5 commit 3178555878e6392d686aa79ce7e90eda544b3d0e
Showing with 22 additions and 0 deletions.
  1. +10 −0 subsys/net/l2/openthread/Kconfig
  2. +12 −0 subsys/net/lib/openthread/CMakeLists.txt
@@ -162,6 +162,16 @@ config OPENTHREAD_JOINER_PSKD
help
Pre Shared Key for the Device to start joiner

config OPENTHREAD_DHCP6_CLIENT
bool "DHCPv6 client support"
help
Enable DHCPv6 client capability in OpenThread stack

config OPENTHREAD_DHCP6_SERVER
bool "DHCPv6 server support"
help
Enable DHCPv6 server capability in OpenThread stack

config OPENTHREAD_PLATFORM_INFO
string "Platform information for OpenThread"
default "ZEPHYR"
@@ -165,6 +165,18 @@ if(CONFIG_OPENTHREAD_JOINER)
)
endif()

if(CONFIG_OPENTHREAD_DHCP6_CLIENT)
list(APPEND configure_flags
--enable-dhcp6-client
)
endif()

if(CONFIG_OPENTHREAD_DHCP6_SERVER)
list(APPEND configure_flags
--enable-dhcp6-server
)
endif()

if(CONFIG_OPENTHREAD_SHELL)
list(APPEND configure_flags
--enable-cli

0 comments on commit 3178555

Please sign in to comment.
You can’t perform that action at this time.