net: openthread: Add cmake makro to openthread cmake lists.
This commit introduces `kconfig_to_ot_option` to simply fye the way of adding openthread related kconfigs. Signed-off-by: Przemyslaw Bida <przemyslaw.bida@nordicsemi.no>
This commit is contained in:
parent
d59e7be1ec
commit
b6d8d2715c
|
@ -3,6 +3,14 @@ if(CONFIG_OPENTHREAD_SOURCES)
|
|||
|
||||
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
|
||||
|
||||
macro(kconfig_to_ot_option kconfig_option ot_config description)
|
||||
if(${kconfig_option})
|
||||
set(${ot_config} ON CACHE BOOL "${description}" FORCE)
|
||||
else()
|
||||
set(${ot_config} OFF CACHE BOOL "${description}" FORCE)
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
# OpenThread options
|
||||
set(OT_BUILD_EXECUTABLES OFF CACHE BOOL "Disable OpenThread samples")
|
||||
set(OT_BUILTIN_MBEDTLS_MANAGEMENT OFF CACHE BOOL "Use Zephyr's mbedTLS heap")
|
||||
|
@ -28,494 +36,95 @@ elseif(CONFIG_OPENTHREAD_MTD)
|
|||
set(OT_MTD ON CACHE BOOL "Enable MTD" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_ANYCAST_LOCATOR)
|
||||
set(OT_ANYCAST_LOCATOR ON CACHE BOOL "Enable anycast locator" FORCE)
|
||||
else()
|
||||
set(OT_ANYCAST_LOCATOR OFF CACHE BOOL "Enable anycast locator" FORCE)
|
||||
endif()
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_ANYCAST_LOCATOR OT_ANYCAST_LOCATOR "Enable anycast locator")
|
||||
kconfig_to_ot_option(CONFIG_ASSERT OT_ASSERT "Enable assert function OT_ASSERT()")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BACKBONE_ROUTER OT_BACKBONE_ROUTER "Enable backbone router functionality")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BACKBONE_ROUTER_DUA_NDPROXYING OT_BACKBONE_ROUTER_DUA_NDPROXYING "Enable BBR DUA ND Proxy support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BACKBONE_ROUTER_MULTICAST_ROUTING OT_BACKBONE_ROUTER_MULTICAST_ROUTING "Enable BBR MR support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BLE_TCAT OT_BLE_TCAT "Enable BLE TCAT support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BORDER_AGENT OT_BORDER_AGENT "Enable Border Agent")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BORDER_ROUTER OT_BORDER_ROUTER "Enable Border Router")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BORDER_ROUTING OT_BORDER_ROUTING "Enable Border routing")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BORDER_ROUTING_COUNTERS OT_BORDER_ROUTING_COUNTERS "Enable Border routing counters")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_BORDER_ROUTING_DHCP6_PD OT_BORDER_ROUTING_DHCP6_PD "DHCPv6-PD support in border routing")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CHANNEL_MANAGER OT_CHANNEL_MANAGER "Enable channel manager support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CHANNEL_MONITOR OT_CHANNEL_MONITOR "Enable channel monitor support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_COAP OT_COAP "Enable CoAP API")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_COAP_BLOCK OT_COAP_BLOCK "Enable CoAP Block-wise option support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_COAP_OBSERVE OT_COAP_OBSERVE "Enable CoAP Observe option support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_COAPS OT_COAPS "Enable secure CoAP API support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_COMMISSIONER OT_COMMISSIONER "Enable Commissioner")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CSL_AUTO_SYNC OT_CSL_AUTO_SYNC "Enable csl autosync")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CSL_DEBUG OT_CSL_DEBUG "Enable CSL debug")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CSL_RECEIVER OT_CSL_RECEIVER "Enable CSL receiver feature for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_CSL_RECEIVER_LOCAL_TIME_SYNC OT_CSL_RECEIVER_LOCAL_TIME_SYNC "Use local time for CSL sync")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DATASET_UPDATER OT_DATASET_UPDATER "Enable Dataset updater")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DEVICE_PROP_LEADER_WEIGHT OT_DEVICE_PROP_LEADER_WEIGHT "Enable device props for leader weight")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DHCP6_CLIENT OT_DHCP6_CLIENT "Enable DHCPv6 Client")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DHCP6_SERVER OT_DHCP6_SERVER "Enable DHCPv6 Server")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DIAG OT_DIAGNOSTIC "Enable Diagnostics support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DNS_CLIENT OT_DNS_CLIENT "Enable DNS client support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DNS_CLIENT_OVER_TCP OT_DNS_CLIENT_OVER_TCP "Enable dns query over tcp")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DNS_DSO OT_DNS_DSO "Enable DNS Stateful Operations (DSO) support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DNS_UPSTREAM_QUERY OT_DNS_UPSTREAM_QUERY "Enable forwarding DNS queries to upstream")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DNSSD_SERVER OT_DNSSD_SERVER "Enable DNS-SD server support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_DUA OT_DUA "Enable Domain Unicast Address feature for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_ECDSA OT_ECDSA "Enable ECDSA support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_ENABLE_SERVICE OT_SERVICE "Enable Service entries in Thread Network Data")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_EXTERNAL_HEAP OT_EXTERNAL_HEAP "Enable external heap support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_FIREWALL OT_FIREWALL "Enable firewall")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_FULL_LOGS OT_FULL_LOGS "Enable full logs")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_HISTORY_TRACKER OT_HISTORY_TRACKER "Enable history tracker support.")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_IP6_FRAGM OT_IP6_FRAGM "Enable IPv6 fragmentation support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_JAM_DETECTION OT_JAM_DETECTION "Enable Jam Detection")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_JOINER OT_JOINER "Enable Joiner")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_LEGACY OT_LEGACY "Enable legacy network support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_LINK_METRICS_INITIATOR OT_LINK_METRICS_INITIATOR "Enable Link Metrics initiator for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_LINK_METRICS_MANAGER OT_LINK_METRICS_MANAGER "Enable Link Metrics manager for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT OT_LINK_METRICS_SUBJECT "Enable Link Metrics subject for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC OT_LOG_LEVEL_DYNAMIC "Enable dynamic log level control")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MAC_FILTER OT_MAC_FILTER "Enable MAC filter support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MESH_DIAG OT_MESH_DIAG "Enable Mesh Diagnostics")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MESSAGE_USE_HEAP OT_MESSAGE_USE_HEAP "Enable heap allocator for message buffers")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MLE_LONG_ROUTES OT_MLE_LONG_ROUTES "Enable MLE long routes support (Experimental)")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MLR OT_MLR "Enable Multicast Listener Registration feature for Thread 1.2")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MULTIPAN_RCP OT_MULTIPAN_RCP "Enable Multi-PAN RCP")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_MULTIPLE_INSTANCE OT_MULTIPLE_INSTANCE "Enable multiple instances")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_NAT64_BORDER_ROUTING OT_NAT64_BORDER_ROUTING "Enable border routing NAT64 support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_NAT64_TRANSLATOR OT_NAT64_TRANSLATOR "Enable NAT64 translator")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_NEIGHBOR_DISCOVERY_AGENT OT_NEIGHBOR_DISCOVERY_AGENT "Enable neighbor discovery agent support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_NETDIAG_CLIENT OT_NETDIAG_CLIENT "Enable TMF network diagnostics on clients")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_NETDATA_PUBLISHER OT_NETDATA_PUBLISHER "Enable Thread Network Data publisher")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_OPERATIONAL_DATASET_AUTO_INIT OT_OPERATIONAL_DATASET_AUTO_INIT "Enable operational dataset auto init")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_OTNS OT_OTNS "Enable OTNS support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_PING_SENDER OT_PING_SENDER "Enable ping sender support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_PLATFORM_KEY_REF OT_PLATFORM_KEY_REF "Enable platform key reference support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_PLATFORM_NETIF OT_PLATFORM_NETIF "Enable platform netif support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_PLATFORM_UDP OT_PLATFORM_UDP "Enable platform UDP support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_RADIO_LINK_IEEE_802_15_4_ENABLE OT_15_4 "Enable 802.15.4 radio")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_RAW OT_LINK_RAW "Enable Link Raw")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_REFERENCE_DEVICE OT_REFERENCE_DEVICE "Enable Thread Certification Reference Device")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_SETTINGS_RAM OT_SETTINGS_RAM "Enable volatile-only storage of settings")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_SLAAC OT_SLAAC "Enable SLAAC")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_SNTP_CLIENT OT_SNTP_CLIENT "Enable SNTP Client support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_SRP_CLIENT OT_SRP_CLIENT "Enable SRP Client support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_SRP_SERVER OT_SRP_SERVER "Enable SRP Server support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_TCP_ENABLE OT_TCP "Enable TCP support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_TIME_SYNC OT_TIME_SYNC "Enable the time synchronization service feature")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_TREL OT_TREL "Enable TREL radio link for Thread over Infrastructure feature")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_TX_BEACON_PAYLOAD OT_TX_BEACON_PAYLOAD "Enable tx beacon payload support")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_TX_QUEUE_STATISTICS OT_TX_QUEUE_STATS "Enable tx queue statistics")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_UDP_FORWARD OT_UDP_FORWARD "Enable UDP forward feature")
|
||||
kconfig_to_ot_option(CONFIG_OPENTHREAD_UPTIME OT_UPTIME "Enable support for tracking OpenThread instance's uptime")
|
||||
|
||||
if(CONFIG_ASSERT)
|
||||
set(OT_ASSERT ON CACHE BOOL "Enable assert function OT_ASSERT()" FORCE)
|
||||
else()
|
||||
set(OT_ASSERT OFF CACHE BOOL "Enable assert function OT_ASSERT()" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BACKBONE_ROUTER)
|
||||
set(OT_BACKBONE_ROUTER ON CACHE BOOL "Enable backbone router functionality" FORCE)
|
||||
else()
|
||||
set(OT_BACKBONE_ROUTER OFF CACHE BOOL "Enable backbone router functionality" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BACKBONE_ROUTER_DUA_NDPROXYING)
|
||||
set(OT_BACKBONE_ROUTER_DUA_NDPROXYING ON CACHE BOOL "Enable BBR DUA ND Proxy support" FORCE)
|
||||
else()
|
||||
set(OT_BACKBONE_ROUTER_DUA_NDPROXYING OFF CACHE BOOL "Enable BBR DUA ND Proxy support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BACKBONE_ROUTER_MULTICAST_ROUTING)
|
||||
set(OT_BACKBONE_ROUTER_MULTICAST_ROUTING ON CACHE BOOL "Enable BBR MR support" FORCE)
|
||||
else()
|
||||
set(OT_BACKBONE_ROUTER_MULTICAST_ROUTING OFF CACHE BOOL "Enable BBR MR support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BLE_TCAT)
|
||||
set(OT_BLE_TCAT ON CACHE BOOL "Enable BLE TCAT support" FORCE)
|
||||
else()
|
||||
set(OT_BLE_TCAT OFF CACHE BOOL "Enable BLE TCAT support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_AGENT)
|
||||
set(OT_BORDER_AGENT ON CACHE BOOL "Enable Border Agent" FORCE)
|
||||
else()
|
||||
set(OT_BORDER_AGENT OFF CACHE BOOL "Enable Border Agent" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTER)
|
||||
set(OT_BORDER_ROUTER ON CACHE BOOL "Enable Border Router" FORCE)
|
||||
else()
|
||||
set(OT_BORDER_ROUTER OFF CACHE BOOL "Enable Border Router" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTING)
|
||||
set(OT_BORDER_ROUTING ON CACHE BOOL "Enable Border routing" FORCE)
|
||||
else()
|
||||
set(OT_BORDER_ROUTING OFF CACHE BOOL "Enable Border routing" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTING_COUNTERS)
|
||||
set(OT_BORDER_ROUTING_COUNTERS ON CACHE BOOL "Enable Border routing counters" FORCE)
|
||||
else()
|
||||
set(OT_BORDER_ROUTING_COUNTERS OFF CACHE BOOL "Enable Border routing counters" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_BORDER_ROUTING_DHCP6_PD)
|
||||
set(OT_BORDER_ROUTING_DHCP6_PD ON CACHE BOOL "DHCPv6-PD support in border routing" FORCE)
|
||||
else()
|
||||
set(OT_BORDER_ROUTING_DHCP6_PD OFF CACHE BOOL "DHCPv6-PD support in border routing" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CHANNEL_MANAGER)
|
||||
set(OT_CHANNEL_MANAGER ON CACHE BOOL "Enable channel manager support" FORCE)
|
||||
else()
|
||||
set(OT_CHANNEL_MANAGER OFF CACHE BOOL "Enable channel manager support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CHANNEL_MONITOR)
|
||||
set(OT_CHANNEL_MONITOR ON CACHE BOOL "Enable channel monitor support" FORCE)
|
||||
else()
|
||||
set(OT_CHANNEL_MONITOR OFF CACHE BOOL "Enable channel monitor support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COAP)
|
||||
set(OT_COAP ON CACHE BOOL "Enable CoAP API" FORCE)
|
||||
else()
|
||||
set(OT_COAP OFF CACHE BOOL "Enable CoAP API" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COAP_BLOCK)
|
||||
set(OT_COAP_BLOCK ON CACHE BOOL "Enable CoAP Block-wise option support" FORCE)
|
||||
else()
|
||||
set(OT_COAP_BLOCK OFF CACHE BOOL "Enable CoAP Block-wise option support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COAP_OBSERVE)
|
||||
set(OT_COAP_OBSERVE ON CACHE BOOL "Enable CoAP Observe option support" FORCE)
|
||||
else()
|
||||
set(OT_COAP_OBSERVE OFF CACHE BOOL "Enable CoAP Observe option support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COAPS)
|
||||
set(OT_COAPS ON CACHE BOOL "Enable secure CoAP API support" FORCE)
|
||||
else()
|
||||
set(OT_COAPS OFF CACHE BOOL "Enable secure CoAP API support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COMMISSIONER)
|
||||
set(OT_COMMISSIONER ON CACHE BOOL "Enable Commissioner" FORCE)
|
||||
else()
|
||||
set(OT_COMMISSIONER OFF CACHE BOOL "Enable Commissioner" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CSL_AUTO_SYNC)
|
||||
set(OT_CSL_AUTO_SYNC ON CACHE BOOL "Enable csl autosync" FORCE)
|
||||
else()
|
||||
set(OT_CSL_AUTO_SYNC OFF CACHE BOOL "Enable csl autosync" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CSL_DEBUG)
|
||||
set(OT_CSL_DEBUG ON CACHE BOOL "Enable CSL debug" FORCE)
|
||||
else()
|
||||
set(OT_CSL_DEBUG OFF CACHE BOOL "Enable CSL debug" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CSL_RECEIVER)
|
||||
set(OT_CSL_RECEIVER ON CACHE BOOL "Enable CSL receiver feature for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_CSL_RECEIVER OFF CACHE BOOL "Enable CSL receiver feature for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_CSL_RECEIVER_LOCAL_TIME_SYNC)
|
||||
set(OT_CSL_RECEIVER_LOCAL_TIME_SYNC ON CACHE BOOL "Use local time for CSL sync" FORCE)
|
||||
else()
|
||||
set(OT_CSL_RECEIVER_LOCAL_TIME_SYNC OFF CACHE BOOL "Use local time for CSL sync" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DATASET_UPDATER)
|
||||
set(OT_DATASET_UPDATER ON CACHE BOOL "Enable Dataset updater" FORCE)
|
||||
else()
|
||||
set(OT_DATASET_UPDATER OFF CACHE BOOL "Enable Dataset updater" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DEVICE_PROP_LEADER_WEIGHT)
|
||||
set(OT_DEVICE_PROP_LEADER_WEIGHT ON CACHE BOOL "Enable device props for leader weight" FORCE)
|
||||
else()
|
||||
set(OT_DEVICE_PROP_LEADER_WEIGHT OFF CACHE BOOL "Enable device props for leader weight" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DHCP6_CLIENT)
|
||||
set(OT_DHCP6_CLIENT ON CACHE BOOL "Enable DHCPv6 Client" FORCE)
|
||||
else()
|
||||
set(OT_DHCP6_CLIENT OFF CACHE BOOL "Enable DHCPv6 Client" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DHCP6_SERVER)
|
||||
set(OT_DHCP6_SERVER ON CACHE BOOL "Enable DHCPv6 Server" FORCE)
|
||||
else()
|
||||
set(OT_DHCP6_SERVER OFF CACHE BOOL "Enable DHCPv6 Server" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DIAG)
|
||||
set(OT_DIAGNOSTIC ON CACHE BOOL "Enable Diagnostics support" FORCE)
|
||||
else()
|
||||
set(OT_DIAGNOSTIC OFF CACHE BOOL "Enable Diagnostics support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DNS_CLIENT)
|
||||
set(OT_DNS_CLIENT ON CACHE BOOL "Enable DNS client support" FORCE)
|
||||
else()
|
||||
set(OT_DNS_CLIENT OFF CACHE BOOL "Enable DNS client support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DNS_CLIENT_OVER_TCP)
|
||||
set(OT_DNS_CLIENT_OVER_TCP ON CACHE BOOL "Enable dns query over tcp" FORCE)
|
||||
else()
|
||||
set(OT_DNS_CLIENT_OVER_TCP OFF CACHE BOOL "Enable dns query over tcp" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DNS_DSO)
|
||||
set(OT_DNS_DSO ON CACHE BOOL "Enable DNS Stateful Operations (DSO) support" FORCE)
|
||||
else()
|
||||
set(OT_DNS_DSO OFF CACHE BOOL "Enable DNS Stateful Operations (DSO) support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DNS_UPSTREAM_QUERY)
|
||||
set(OT_DNS_UPSTREAM_QUERY ON CACHE BOOL "Enable forwarding DNS queries to upstream" FORCE)
|
||||
else()
|
||||
set(OT_DNS_UPSTREAM_QUERY OFF CACHE BOOL "Enable forwarding DNS queries to upstream" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DNSSD_SERVER)
|
||||
set(OT_DNSSD_SERVER ON CACHE BOOL "Enable DNS-SD server support" FORCE)
|
||||
else()
|
||||
set(OT_DNSSD_SERVER OFF CACHE BOOL "Enable DNS-SD server support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_DUA)
|
||||
set(OT_DUA ON CACHE BOOL "Enable Domain Unicast Address feature for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_DUA OFF CACHE BOOL "Enable Domain Unicast Address feature for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_ECDSA)
|
||||
set(OT_ECDSA ON CACHE BOOL "Enable ECDSA support" FORCE)
|
||||
else()
|
||||
set(OT_ECDSA OFF CACHE BOOL "Enable ECDSA support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_ENABLE_SERVICE)
|
||||
set(OT_SERVICE ON CACHE BOOL "Enable Service entries in Thread Network Data" FORCE)
|
||||
else()
|
||||
set(OT_SERVICE OFF CACHE BOOL "Enable Service entries in Thread Network Data" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_EXTERNAL_HEAP)
|
||||
set(OT_EXTERNAL_HEAP ON CACHE BOOL "Enable external heap support" FORCE)
|
||||
else()
|
||||
set(OT_EXTERNAL_HEAP OFF CACHE BOOL "Enable external heap support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_FIREWALL)
|
||||
set(OT_FIREWALL ON CACHE BOOL "Enable firewall" FORCE)
|
||||
else()
|
||||
set(OT_FIREWALL OFF CACHE BOOL "Enable firewall" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_FULL_LOGS)
|
||||
set(OT_FULL_LOGS ON CACHE BOOL "Enable full logs" FORCE)
|
||||
else()
|
||||
set(OT_FULL_LOGS OFF CACHE BOOL "Enable full logs" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_HISTORY_TRACKER)
|
||||
set(OT_HISTORY_TRACKER ON CACHE BOOL "Enable history tracker support." FORCE)
|
||||
else()
|
||||
set(OT_HISTORY_TRACKER OFF CACHE BOOL "Enable history tracker support." FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_IP6_FRAGM)
|
||||
set(OT_IP6_FRAGM ON CACHE BOOL "Enable IPv6 fragmentation support" FORCE)
|
||||
else()
|
||||
set(OT_IP6_FRAGM OFF CACHE BOOL "Enable IPv6 fragmentation support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_JAM_DETECTION)
|
||||
set(OT_JAM_DETECTION ON CACHE BOOL "Enable Jam Detection" FORCE)
|
||||
else()
|
||||
set(OT_JAM_DETECTION OFF CACHE BOOL "Enable Jam Detection" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_JOINER)
|
||||
set(OT_JOINER ON CACHE BOOL "Enable Joiner" FORCE)
|
||||
else()
|
||||
set(OT_JOINER OFF CACHE BOOL "Enable Joiner" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_LEGACY)
|
||||
set(OT_LEGACY ON CACHE BOOL "Enable legacy network support" FORCE)
|
||||
else()
|
||||
set(OT_LEGACY OFF CACHE BOOL "Enable legacy network support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_LINK_METRICS_INITIATOR)
|
||||
set(OT_LINK_METRICS_INITIATOR ON CACHE BOOL "Enable Link Metrics initiator for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_LINK_METRICS_INITIATOR OFF CACHE BOOL "Enable Link Metrics initiator for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_LINK_METRICS_MANAGER)
|
||||
set(OT_LINK_METRICS_MANAGER ON CACHE BOOL "Enable Link Metrics manager for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_LINK_METRICS_MANAGER OFF CACHE BOOL "Enable Link Metrics manager for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_LINK_METRICS_SUBJECT)
|
||||
set(OT_LINK_METRICS_SUBJECT ON CACHE BOOL "Enable Link Metrics subject for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_LINK_METRICS_SUBJECT OFF CACHE BOOL "Enable Link Metrics subject for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_LOG_LEVEL_DYNAMIC)
|
||||
set(OT_LOG_LEVEL_DYNAMIC ON CACHE BOOL "Enable dynamic log level control" FORCE)
|
||||
else()
|
||||
set(OT_LOG_LEVEL_DYNAMIC OFF CACHE BOOL "Enable dynamic log level control" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MAC_FILTER)
|
||||
set(OT_MAC_FILTER ON CACHE BOOL "Enable MAC filter support" FORCE)
|
||||
else()
|
||||
set(OT_MAC_FILTER OFF CACHE BOOL "Enable MAC filter support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MESH_DIAG)
|
||||
set(OT_MESH_DIAG ON CACHE BOOL "Enable Mesh Diagnostics" FORCE)
|
||||
else()
|
||||
set(OT_MESH_DIAG OFF CACHE BOOL "Enable Mesh Diagnostics" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MESSAGE_USE_HEAP)
|
||||
set(OT_MESSAGE_USE_HEAP ON CACHE BOOL "Enable heap allocator for message buffers" FORCE)
|
||||
else()
|
||||
set(OT_MESSAGE_USE_HEAP OFF CACHE BOOL "Enable heap allocator for message buffers" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MLE_LONG_ROUTES)
|
||||
set(OT_MLE_LONG_ROUTES ON CACHE BOOL "Enable MLE long routes support (Experimental)" FORCE)
|
||||
else()
|
||||
set(OT_MLE_LONG_ROUTES OFF CACHE BOOL "Enable MLE long routes support (Experimental)" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MLR)
|
||||
set(OT_MLR ON CACHE BOOL "Enable Multicast Listener Registration feature for Thread 1.2" FORCE)
|
||||
else()
|
||||
set(OT_MLR OFF CACHE BOOL "Enable Multicast Listener Registration feature for Thread 1.2" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MULTIPAN_RCP)
|
||||
set(OT_MULTIPAN_RCP ON CACHE BOOL "Enable Multi-PAN RCP" FORCE)
|
||||
else()
|
||||
set(OT_MULTIPAN_RCP OFF CACHE BOOL "Enable Multi-PAN RCP" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_MULTIPLE_INSTANCE)
|
||||
set(OT_MULTIPLE_INSTANCE ON CACHE BOOL "Enable multiple instances" FORCE)
|
||||
else()
|
||||
set(OT_MULTIPLE_INSTANCE OFF CACHE BOOL "Enable multiple instances" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_NAT64_BORDER_ROUTING)
|
||||
set(OT_NAT64_BORDER_ROUTING ON CACHE BOOL "Enable border routing NAT64 support" FORCE)
|
||||
else()
|
||||
set(OT_NAT64_BORDER_ROUTING OFF CACHE BOOL "Enable border routing NAT64 support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_NAT64_TRANSLATOR)
|
||||
set(OT_NAT64_TRANSLATOR ON CACHE BOOL "Enable NAT64 translator" FORCE)
|
||||
else()
|
||||
set(OT_NAT64_TRANSLATOR OFF CACHE BOOL "Enable NAT64 translator" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_NEIGHBOR_DISCOVERY_AGENT)
|
||||
set(OT_NEIGHBOR_DISCOVERY_AGENT ON CACHE BOOL "Enable neighbor discovery agent support" FORCE)
|
||||
else()
|
||||
set(OT_NEIGHBOR_DISCOVERY_AGENT OFF CACHE BOOL "Enable neighbor discovery agent support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_NETDIAG_CLIENT)
|
||||
set(OT_NETDIAG_CLIENT ON CACHE BOOL "Enable TMF network diagnostics on clients" FORCE)
|
||||
else()
|
||||
set(OT_NETDIAG_CLIENT OFF CACHE BOOL "Enable TMF network diagnostics on clients" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_NETDATA_PUBLISHER)
|
||||
set(OT_NETDATA_PUBLISHER ON CACHE BOOL "Enable Thread Network Data publisher" FORCE)
|
||||
else()
|
||||
set(OT_NETDATA_PUBLISHER OFF CACHE BOOL "Enable Thread Network Data publisher" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_OPERATIONAL_DATASET_AUTO_INIT)
|
||||
set(OT_OPERATIONAL_DATASET_AUTO_INIT ON CACHE BOOL "Enable operational dataset auto init" FORCE)
|
||||
else()
|
||||
set(OT_OPERATIONAL_DATASET_AUTO_INIT OFF CACHE BOOL "Enable operational dataset auto init" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_OTNS)
|
||||
set(OT_OTNS ON CACHE BOOL "Enable OTNS support" FORCE)
|
||||
else()
|
||||
set(OT_OTNS OFF CACHE BOOL "Enable OTNS support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_PING_SENDER)
|
||||
set(OT_PING_SENDER ON CACHE BOOL "Enable ping sender support" FORCE)
|
||||
else()
|
||||
set(OT_PING_SENDER OFF CACHE BOOL "Enable ping sender support" FORCE)
|
||||
endif()
|
||||
|
||||
if(OPENTHREAD_PLATFORM_KEY_REF)
|
||||
set(OT_PLATFORM_KEY_REF ON CACHE BOOL "Enable platform key reference support" FORCE)
|
||||
else()
|
||||
set(OT_PLATFORM_KEY_REF OFF CACHE BOOL "Enable platform key reference support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_PLATFORM_NETIF)
|
||||
set(OT_PLATFORM_NETIF ON CACHE BOOL "Enable platform netif support" FORCE)
|
||||
else()
|
||||
set(OT_PLATFORM_NETIF OFF CACHE BOOL "Enable platform netif support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_PLATFORM_UDP)
|
||||
set(OT_PLATFORM_UDP ON CACHE BOOL "Enable platform UDP support" FORCE)
|
||||
else()
|
||||
set(OT_PLATFORM_UDP OFF CACHE BOOL "Enable platform UDP support" FORCE)
|
||||
if(CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE)
|
||||
set(OT_NCP_VENDOR_HOOK_SOURCE ${CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE} CACHE STRING "NCP vendor hook source file name" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_POWER_SUPPLY)
|
||||
set(OT_POWER_SUPPLY ${CONFIG_OPENTHREAD_POWER_SUPPLY} CACHE STRING "Power supply configuration" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_RADIO_LINK_IEEE_802_15_4_ENABLE)
|
||||
set(OT_15_4 ON CACHE BOOL "Enable 802.15.4 radio" FORCE)
|
||||
else()
|
||||
set(OT_15_4 OFF CACHE BOOL "Enable 802.15.4 radio" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_RAW)
|
||||
set(OT_LINK_RAW ON CACHE BOOL "Enable Link Raw" FORCE)
|
||||
else()
|
||||
set(OT_LINK_RAW OFF CACHE BOOL "Enable Link Raw" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_REFERENCE_DEVICE)
|
||||
set(OT_REFERENCE_DEVICE ON CACHE BOOL "Enable Thread Certification Reference Device" FORCE)
|
||||
else()
|
||||
set(OT_REFERENCE_DEVICE OFF CACHE BOOL "Enable Thread Certification Reference Device" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_SETTINGS_RAM)
|
||||
set(OT_SETTINGS_RAM ON CACHE BOOL "Enable volatile-only storage of settings" FORCE)
|
||||
else()
|
||||
set(OT_SETTINGS_RAM OFF CACHE BOOL "Enable volatile-only storage of settings" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_SLAAC)
|
||||
set(OT_SLAAC ON CACHE BOOL "Enable SLAAC" FORCE)
|
||||
else()
|
||||
set(OT_SLAAC OFF CACHE BOOL "Enable SLAAC" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_SNTP_CLIENT)
|
||||
set(OT_SNTP_CLIENT ON CACHE BOOL "Enable SNTP Client support" FORCE)
|
||||
else()
|
||||
set(OT_SNTP_CLIENT OFF CACHE BOOL "Enable SNTP Client support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_SRP_CLIENT)
|
||||
set(OT_SRP_CLIENT ON CACHE BOOL "Enable SRP Client support" FORCE)
|
||||
else()
|
||||
set(OT_SRP_CLIENT OFF CACHE BOOL "Enable SRP Client support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_SRP_SERVER)
|
||||
set(OT_SRP_SERVER ON CACHE BOOL "Enable SRP Server support" FORCE)
|
||||
else()
|
||||
set(OT_SRP_SERVER OFF CACHE BOOL "Enable SRP Server support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_TCP_ENABLE)
|
||||
set(OT_TCP ON CACHE BOOL "Enable TCP support" FORCE)
|
||||
else()
|
||||
set(OT_TCP OFF CACHE BOOL "Enable TCP support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_TIME_SYNC)
|
||||
set(OT_TIME_SYNC ON CACHE BOOL "Enable the time synchronization service feature" FORCE)
|
||||
else()
|
||||
set(OT_TIME_SYNC OFF CACHE BOOL "Enable the time synchronization service feature" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_TREL)
|
||||
set(OT_TREL ON CACHE BOOL "Enable TREL radio link for Thread over Infrastructure feature" FORCE)
|
||||
else()
|
||||
set(OT_TREL OFF CACHE BOOL "Enable TREL radio link for Thread over Infrastructure feature" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_TX_BEACON_PAYLOAD)
|
||||
set(OT_TX_BEACON_PAYLOAD ON CACHE BOOL "Enable tx beacon payload support" FORCE)
|
||||
else()
|
||||
set(OT_TX_BEACON_PAYLOAD OFF CACHE BOOL "Enable tx beacon payload support" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_TX_QUEUE_STATISTICS)
|
||||
set(OT_TX_QUEUE_STATS ON CACHE BOOL "Enable tx queue statistics" FORCE)
|
||||
else()
|
||||
set(OT_TX_QUEUE_STATS OFF CACHE BOOL "Enable tx queue statistics" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_UDP_FORWARD)
|
||||
set(OT_UDP_FORWARD ON CACHE BOOL "Enable UDP forward feature" FORCE)
|
||||
else()
|
||||
set(OT_UDP_FORWARD OFF CACHE BOOL "Enable UDP forward feature" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_UPTIME)
|
||||
set(OT_UPTIME ON CACHE BOOL "Enable support for tracking OpenThread instance's uptime" FORCE)
|
||||
else()
|
||||
set(OT_UPTIME OFF CACHE BOOL "Enable support for tracking OpenThread instance's uptime" FORCE)
|
||||
endif()
|
||||
|
||||
if(CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE)
|
||||
set(OT_NCP_VENDOR_HOOK_SOURCE ${CONFIG_OPENTHREAD_COPROCESSOR_VENDOR_HOOK_SOURCE} CACHE STRING "NCP vendor hook source file name" FORCE)
|
||||
endif()
|
||||
|
||||
set(BUILD_TESTING OFF CACHE BOOL "Disable openthread cmake testing targets" FORCE)
|
||||
|
||||
# Zephyr logging options
|
||||
|
|
Loading…
Reference in a new issue