@@ -58,11 +58,15 @@ config("openthread_rw61x_config") {
58
58
" OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE=1" ,
59
59
" OPENTHREAD_CONFIG_MULTICAST_DNS_AUTO_ENABLE_ON_INFRA_IF=0" ,
60
60
" OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE=1" ,
61
- " OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE=1" ,
62
61
" OT_APP_BR_LWIP_HOOKS_EN=1" ,
63
- " OT_APP_CLI_EPHEMERAL_KEY_ADDON=1" ,
64
- " OT_APP_CLI_LWIP_ADDON=1" ,
65
62
]
63
+
64
+ if (chip_enable_matter_cli ) {
65
+ defines += [
66
+ " OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE=1" ,
67
+ " OT_APP_CLI_EPHEMERAL_KEY_ADDON=1" ,
68
+ " OT_APP_CLI_LWIP_ADDON=1"
69
+ ]
66
70
}
67
71
68
72
# ot cli configs
@@ -86,9 +90,6 @@ source_set("libopenthread-rw61x") {
86
90
87
91
if (chip_enable_wifi && chip_enable_openthread ) {
88
92
sources += [
89
- " ${ openthread_nxp_root } /examples/utils/cli_addons/addons_cli.c" ,
90
- " ${ openthread_nxp_root } /examples/utils/cli_addons/ephemeral_key/ephemeral_key_cli.c" ,
91
- " ${ openthread_nxp_root } /examples/utils/cli_addons/lwip/lwip_cli.c" ,
92
93
" ${ openthread_nxp_root } /src/common/br/border_agent.c" ,
93
94
" ${ openthread_nxp_root } /src/common/br/br_rtos_manager.c" ,
94
95
" ${ openthread_nxp_root } /src/common/br/infra_if.c" ,
@@ -98,6 +99,15 @@ source_set("libopenthread-rw61x") {
98
99
" ${ openthread_nxp_root } /src/common/br/udp_plat.c" ,
99
100
" ${ openthread_nxp_root } /src/common/br/utils.c" ,
100
101
]
102
+
103
+ if (chip_enable_matter_cli ) {
104
+ sources += [
105
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/addons_cli.c" ,
106
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/ephemeral_key/ephemeral_key_cli.c" ,
107
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/lwip/lwip_cli.c" ,
108
+ ]
109
+ }
110
+
101
111
deps += [ " ${ nxp_sdk_build_root } :nxp_lwip" ]
102
112
}
103
113
if (spinel_interface_rpmsg ) {
0 commit comments