Skip to content

Commit

Permalink
[NXP] Fix otbr build issue
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Girardot <[email protected]>
  • Loading branch information
Martin-NXP committed Sep 20, 2024
1 parent 87511e1 commit 114d933
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions third_party/openthread/platforms/nxp/rt/rw61x/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,15 @@ config("openthread_rw61x_config") {
"OPENTHREAD_CONFIG_MULTICAST_DNS_ENABLE=1",
"OPENTHREAD_CONFIG_MULTICAST_DNS_AUTO_ENABLE_ON_INFRA_IF=0",
"OPENTHREAD_CONFIG_MULTICAST_DNS_PUBLIC_API_ENABLE=1",
"OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE=1",
"OT_APP_BR_LWIP_HOOKS_EN=1",
"OT_APP_CLI_EPHEMERAL_KEY_ADDON=1",
"OT_APP_CLI_LWIP_ADDON=1",
]

if (chip_enable_matter_cli) {
defines += [
"OPENTHREAD_CONFIG_BORDER_AGENT_EPHEMERAL_KEY_ENABLE=1",
"OT_APP_CLI_EPHEMERAL_KEY_ADDON=1",
"OT_APP_CLI_LWIP_ADDON=1"
]
}

# ot cli configs
Expand All @@ -86,9 +90,6 @@ source_set("libopenthread-rw61x") {

if (chip_enable_wifi && chip_enable_openthread) {
sources += [
"${openthread_nxp_root}/examples/utils/cli_addons/addons_cli.c",
"${openthread_nxp_root}/examples/utils/cli_addons/ephemeral_key/ephemeral_key_cli.c",
"${openthread_nxp_root}/examples/utils/cli_addons/lwip/lwip_cli.c",
"${openthread_nxp_root}/src/common/br/border_agent.c",
"${openthread_nxp_root}/src/common/br/br_rtos_manager.c",
"${openthread_nxp_root}/src/common/br/infra_if.c",
Expand All @@ -98,6 +99,15 @@ source_set("libopenthread-rw61x") {
"${openthread_nxp_root}/src/common/br/udp_plat.c",
"${openthread_nxp_root}/src/common/br/utils.c",
]

if (chip_enable_matter_cli) {
sources += [
"${openthread_nxp_root}/examples/utils/cli_addons/addons_cli.c",
"${openthread_nxp_root}/examples/utils/cli_addons/ephemeral_key/ephemeral_key_cli.c",
"${openthread_nxp_root}/examples/utils/cli_addons/lwip/lwip_cli.c",
]
}

deps += [ "${nxp_sdk_build_root}:nxp_lwip" ]
}
if (spinel_interface_rpmsg) {
Expand Down

0 comments on commit 114d933

Please sign in to comment.