mirror of
https://github.com/espressif/openthread.git
synced 2026-10-20 22:48:17 +00:00
[cmake] allow configuration of NCP defines (#4633)
Signed-off-by: Markus Becker <[email protected]>
This commit is contained in:
@@ -136,6 +136,16 @@ if(OT_MTD_NETDIAG)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_CONFIG_TMF_NETWORK_DIAG_MTD_ENABLE=1")
|
||||
endif()
|
||||
|
||||
option(OT_NCP "enable network co-processor NCP")
|
||||
if(OT_NCP)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_ENABLE_NCP=1")
|
||||
endif()
|
||||
|
||||
option(OT_NCP_RADIO_ONLY "run NCP in radio only mode")
|
||||
if(OT_NCP_RADIO_ONLY)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_ENABLE_RADIO_ONLY=1")
|
||||
endif()
|
||||
|
||||
option(OT_PLATFORM_UDP "enable platform UDP support")
|
||||
if(OT_PLATFORM_UDP)
|
||||
list(APPEND OT_PRIVATE_DEFINES "OPENTHREAD_CONFIG_PLATFORM_UDP_ENABLE=1")
|
||||
|
||||
Reference in New Issue
Block a user