diff --git a/etc/cmake/options.cmake b/etc/cmake/options.cmake index 6798f46f5..d0ac55a7a 100644 --- a/etc/cmake/options.cmake +++ b/etc/cmake/options.cmake @@ -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") diff --git a/examples/README.md b/examples/README.md index 9b76704e9..8d8d1eca7 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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. | diff --git a/examples/common-switches.mk b/examples/common-switches.mk index 656ecdc13..83e6620d9 100644 --- a/examples/common-switches.mk +++ b/examples/common-switches.mk @@ -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)