From 6ab41a738335cf37a38ae29aa0ca4f51a1d33cf1 Mon Sep 17 00:00:00 2001 From: Abtin Keshavarzian Date: Fri, 9 Dec 2022 16:35:05 -0800 Subject: [PATCH] [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. --- etc/cmake/options.cmake | 8 ++++++++ examples/README.md | 1 + 2 files changed, 9 insertions(+) diff --git a/etc/cmake/options.cmake b/etc/cmake/options.cmake index ff2dc5327..8d0151efd 100644 --- a/etc/cmake/options.cmake +++ b/etc/cmake/options.cmake @@ -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") diff --git a/examples/README.md b/examples/README.md index 9f4b8dbd2..e3f5c8c33 100644 --- a/examples/README.md +++ b/examples/README.md @@ -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. |