Merge branch 'fix/rcp-build' into 'master'

openthread: fix RCP example build

See merge request espressif/esp-idf!15483
This commit is contained in:
Shu Chen 2021-10-13 03:03:16 +00:00
commit 6faa121b9d
2 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,10 @@ if(CONFIG_OPENTHREAD_ENABLED)
if(CONFIG_OPENTHREAD_ESP_LIB_FROM_INTERNAL_SRC) if(CONFIG_OPENTHREAD_ESP_LIB_FROM_INTERNAL_SRC)
idf_component_get_property(openthread_port_lib openthread_port COMPONENT_LIB) idf_component_get_property(openthread_port_lib openthread_port COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} PUBLIC $<TARGET_FILE:${openthread_port_lib}>) idf_component_get_property(esp_system_lib esp_system COMPONENT_LIB)
target_link_libraries(${COMPONENT_LIB} PUBLIC
$<TARGET_FILE:${openthread_port_lib}>
$<TARGET_FILE:${esp_system_lib}>)
if(CONFIG_OPENTHREAD_BORDER_ROUTER) if(CONFIG_OPENTHREAD_BORDER_ROUTER)
idf_component_get_property(openthread_br_lib openthread_br COMPONENT_LIB) idf_component_get_property(openthread_br_lib openthread_br COMPONENT_LIB)

View File

@ -46,7 +46,9 @@ set(exclude_srcs
"openthread/src/core/common/heap_string.cpp" "openthread/src/core/common/heap_string.cpp"
"openthread/src/core/common/time_ticker.cpp" "openthread/src/core/common/time_ticker.cpp"
"openthread/src/core/common/notifier.cpp" "openthread/src/core/common/notifier.cpp"
"openthread/src/core/api/dns_api.cpp"
"openthread/src/core/api/message_api.cpp" "openthread/src/core/api/message_api.cpp"
"openthread/src/core/api/tcp_api.cpp"
"openthread/src/core/thread/energy_scan_server.cpp" "openthread/src/core/thread/energy_scan_server.cpp"
"openthread/src/core/thread/mesh_forwarder.cpp" "openthread/src/core/thread/mesh_forwarder.cpp"
"openthread/src/core/thread/mle.cpp" "openthread/src/core/thread/mle.cpp"