@@ -58,11 +58,16 @@ 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
+ ]
70
+ }
66
71
}
67
72
68
73
# ot cli configs
@@ -86,9 +91,6 @@ source_set("libopenthread-rw61x") {
86
91
87
92
if (chip_enable_wifi && chip_enable_openthread ) {
88
93
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
94
" ${ openthread_nxp_root } /src/common/br/border_agent.c" ,
93
95
" ${ openthread_nxp_root } /src/common/br/br_rtos_manager.c" ,
94
96
" ${ openthread_nxp_root } /src/common/br/infra_if.c" ,
@@ -98,6 +100,15 @@ source_set("libopenthread-rw61x") {
98
100
" ${ openthread_nxp_root } /src/common/br/udp_plat.c" ,
99
101
" ${ openthread_nxp_root } /src/common/br/utils.c" ,
100
102
]
103
+
104
+ if (chip_enable_matter_cli ) {
105
+ sources += [
106
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/addons_cli.c" ,
107
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/ephemeral_key/ephemeral_key_cli.c" ,
108
+ " ${ openthread_nxp_root } /examples/utils/cli_addons/lwip/lwip_cli.c" ,
109
+ ]
110
+ }
111
+
101
112
deps += [ " ${ nxp_sdk_build_root } :nxp_lwip" ]
102
113
}
103
114
if (spinel_interface_rpmsg ) {
0 commit comments