mirror of
https://github.com/espressif/openthread.git
synced 2026-08-11 21:27:46 +00:00
[build] add CMake option for enabling TCP (#8778)
This commit adds CMake option `OT_TCP` (`TCP` in `common-switches`) which map to `OPENTHREAD_CONFIG_TCP_ENABLE` (enabling TCP).
This commit is contained in:
@@ -137,6 +137,7 @@ ot_option(OT_SLAAC OPENTHREAD_CONFIG_IP6_SLAAC_ENABLE "SLAAC address")
|
||||
ot_option(OT_SNTP_CLIENT OPENTHREAD_CONFIG_SNTP_CLIENT_ENABLE "SNTP client")
|
||||
ot_option(OT_SRP_CLIENT OPENTHREAD_CONFIG_SRP_CLIENT_ENABLE "SRP client")
|
||||
ot_option(OT_SRP_SERVER OPENTHREAD_CONFIG_SRP_SERVER_ENABLE "SRP server")
|
||||
ot_option(OT_TCP OPENTHREAD_CONFIG_TCP_ENABLE, "TCP")
|
||||
ot_option(OT_TIME_SYNC OPENTHREAD_CONFIG_TIME_SYNC_ENABLE "time synchronization service")
|
||||
ot_option(OT_TREL OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE "TREL radio link for Thread over Infrastructure feature")
|
||||
ot_option(OT_TX_BEACON_PAYLOAD OPENTHREAD_CONFIG_MAC_OUTGOING_BEACON_PAYLOAD_ENABLE "tx beacon payload")
|
||||
|
||||
@@ -67,6 +67,7 @@ This page lists the available common switches with description. Unless stated ot
|
||||
| SPINEL_ENCRYPTER_LIBS | not implemented | Specifies library files (absolute paths) for implementing the NCP Spinel Encrypter. |
|
||||
| SRP_CLIENT | OT_SRP_CLIENT | Enable support for SRP client. |
|
||||
| SRP_SERVER | OT_SRP_SERVER | Enable support for SRP server. |
|
||||
| TCP | OT_TCP | Enable support for TCP (based on TCPlp). |
|
||||
| THREAD_VERSION | OT_THREAD_VERSION | Enables the chosen Thread version (1.1 / 1.2 (default)). For example, set to `1.1` for Thread 1.1. |
|
||||
| TIME_SYNC | OT_TIME_SYNC | Enables the time synchronization service feature. **Note: Enabling this feature breaks conformance to the Thread Specification.** |
|
||||
| TREL | OT_TREL | Enables TREL radio link for Thread over Infrastructure feature. |
|
||||
|
||||
@@ -86,6 +86,7 @@ SLAAC ?= 1
|
||||
SNTP_CLIENT ?= 0
|
||||
SRP_CLIENT ?= 0
|
||||
SRP_SERVER ?= 0
|
||||
TCP ?= 0
|
||||
THREAD_VERSION ?= 1.3
|
||||
TIME_SYNC ?= 0
|
||||
TREL ?= 0
|
||||
@@ -329,6 +330,10 @@ ifeq ($(SRP_SERVER),1)
|
||||
COMMONCFLAGS += -DOPENTHREAD_CONFIG_SRP_SERVER_ENABLE=1
|
||||
endif
|
||||
|
||||
ifeq ($(TCP),1)
|
||||
COMMONCFLAGS += -DOPENTHREAD_CONFIG_TCP_ENABLE=1
|
||||
endif
|
||||
|
||||
ifeq ($(THREAD_VERSION),1.1)
|
||||
COMMONCFLAGS += -DOPENTHREAD_CONFIG_THREAD_VERSION=2
|
||||
else ifeq ($(THREAD_VERSION),1.2)
|
||||
|
||||
Reference in New Issue
Block a user