diff --git a/etc/cmake/options.cmake b/etc/cmake/options.cmake index ce73f0f2d..41bf8d2d3 100644 --- a/etc/cmake/options.cmake +++ b/etc/cmake/options.cmake @@ -302,6 +302,11 @@ if(OT_TIME_SYNC) target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_TIME_SYNC_ENABLE=1") endif() +option(OT_TREL "enable TREL radio link for Thread over Infrastructure feature") +if (OT_TREL) + target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE=1") +endif() + option(OT_UDP_FORWARD "enable UDP forward support") if(OT_UDP_FORWARD) target_compile_definitions(ot-config INTERFACE "OPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=1") diff --git a/examples/README.md b/examples/README.md index dd6810c69..89305595d 100644 --- a/examples/README.md +++ b/examples/README.md @@ -61,4 +61,5 @@ This page lists the available common switches with description. Unless stated ot | SRP_SERVER | OT_SRP_SERVER | Enable support for SRP server. | | THREAD_VERSION | OT_THREAD_VERSION | Enables the chosen Thread version (1.1 (default) / 1.2). For example, set to `1.2` for Thread 1.2. | | 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. | | UDP_FORWARD | OT_UDP_FORWARD | Enables support for UDP forward. | Enable this switch on the Border Router device (running on the NCP design) with External Commissioning support to service Thread Commissioner packets on the NCP side. | diff --git a/examples/common-switches.mk b/examples/common-switches.mk index e1b825083..b4b549f52 100644 --- a/examples/common-switches.mk +++ b/examples/common-switches.mk @@ -82,6 +82,7 @@ SRP_CLIENT ?= 0 SRP_SERVER ?= 0 THREAD_VERSION ?= 1.1 TIME_SYNC ?= 0 +TREL ?= 0 UDP_FORWARD ?= 0 RCP_RESTORATION_MAX_COUNT ?= 0 @@ -298,6 +299,10 @@ ifeq ($(TIME_SYNC),1) COMMONCFLAGS += -DOPENTHREAD_CONFIG_TIME_SYNC_ENABLE=1 -DOPENTHREAD_CONFIG_MAC_HEADER_IE_SUPPORT=1 endif +ifeq ($(TREL),1) +COMMONCFLAGS += -DOPENTHREAD_CONFIG_RADIO_LINK_TREL_ENABLE=1 +endif + ifeq ($(UDP_FORWARD),1) COMMONCFLAGS += -DOPENTHREAD_CONFIG_UDP_FORWARD_ENABLE=1 endif