mirror of
https://github.com/espressif/openthread.git
synced 2026-09-06 17:20:09 +00:00
[trel] add 'OT_TREL' CMake option & 'TREL' autoconf switch (#6239)
This commit adds `OT_TREL` as a CMake option and 'TREL' as an autoconf switch option to enable support for TREL radio link for Thread over Infrastructure feature.
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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. |
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user