Skip to content

Commit b5340b8

Browse files
committed
[NXP] Fix otbr build issue
Signed-off-by: Martin Girardot <martin.girardot@nxp.com>
1 parent 87511e1 commit b5340b8

File tree

1 file changed

+17
-6
lines changed
  • third_party/openthread/platforms/nxp/rt/rw61x

1 file changed

+17
-6
lines changed

third_party/openthread/platforms/nxp/rt/rw61x/BUILD.gn

+17-6
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,16 @@ config("openthread_rw61x_config") {
5858
"OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE=1",
5959
"OPENTHREAD_CONFIG_MULTICAST_DNS_AUTO_ENABLE_ON_INFRA_IF=0",
6060
"OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE=1",
61-
"OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE=1",
6261
"OT_APP_BR_LWIP_HOOKS_EN=1",
63-
"OT_APP_CLI_EPHEMERAL_KEY_ADDON=1",
64-
"OT_APP_CLI_LWIP_ADDON=1",
6562
]
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+
}
6671
}
6772

6873
# ot cli configs
@@ -86,9 +91,6 @@ source_set("libopenthread-rw61x") {
8691

8792
if (chip_enable_wifi && chip_enable_openthread) {
8893
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",
9294
"${openthread_nxp_root}/src/common/br/border_agent.c",
9395
"${openthread_nxp_root}/src/common/br/br_rtos_manager.c",
9496
"${openthread_nxp_root}/src/common/br/infra_if.c",
@@ -98,6 +100,15 @@ source_set("libopenthread-rw61x") {
98100
"${openthread_nxp_root}/src/common/br/udp_plat.c",
99101
"${openthread_nxp_root}/src/common/br/utils.c",
100102
]
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+
101112
deps += [ "${nxp_sdk_build_root}:nxp_lwip" ]
102113
}
103114
if (spinel_interface_rpmsg) {

0 commit comments

Comments
 (0)