[cmake] add OT_15_4 option for RADIO_LINK_IEEE_802_15_4_ENABLE (#8529)

This commit adds new cmake option `OT_15_4` to enable 802.15. radio
link. It also adds additional `message(STATUS)` to output the common
`OT_APP_CLI/NCP/RCP` and `OT_FTD/MTD/RCP` options.
This commit is contained in:
Abtin Keshavarzian
2022-12-15 20:47:58 -08:00
committed by Jonathan Hui
parent 281732fa3d
commit 6ab41a7383
2 changed files with 9 additions and 0 deletions
+8
View File
@@ -34,6 +34,13 @@ option(OT_FTD "enable FTD" ON)
option(OT_MTD "enable MTD" ON)
option(OT_RCP "enable RCP" ON)
message(STATUS OT_APP_CLI=${OT_APP_CLI})
message(STATUS OT_APP_NCP=${OT_APP_NCP})
message(STATUS OT_APP_RCP=${OT_APP_RCP})
message(STATUS OT_FTD=${OT_FTD})
message(STATUS OT_MTD=${OT_MTD})
message(STATUS OT_RCP=${OT_RCP})
set(OT_CONFIG_VALUES
""
"ON"
@@ -69,6 +76,7 @@ macro(ot_option name ot_config description)
endif()
endmacro()
ot_option(OT_15_4 OPENTHREAD_CONFIG_RADIO_LINK_IEEE_802_15_4_ENABLE "802.15.4 radio link")
ot_option(OT_ANYCAST_LOCATOR OPENTHREAD_CONFIG_TMF_ANYCAST_LOCATOR_ENABLE "anycast locator")
ot_option(OT_ASSERT OPENTHREAD_CONFIG_ASSERT_ENABLE "assert function OT_ASSERT()")
ot_option(OT_BACKBONE_ROUTER OPENTHREAD_CONFIG_BACKBONE_ROUTER_ENABLE "backbone router functionality")
+1
View File
@@ -6,6 +6,7 @@ This page lists the available common switches with description. Unless stated ot
| Makefile switch | CMake switch | Description |
| --- | --- | --- |
| | OT_15_4 | Enables 802.15.4 radio link. |
| ANYCAST_LOCATOR | OT_ANYCAST_LOCATOR | Enables anycast locator functionality. |
| BACKBONE_ROUTER | OT_BACKBONE_ROUTER | Enables Backbone Router functionality for Thread 1.2. |
| BIG_ENDIAN | OT_BIG_ENDIAN | Allows the host platform to use big-endian byte order. |