Просмотр исходного кода

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

openthread: fix RCP example build

See merge request espressif/esp-idf!15483
Shu Chen 4 лет назад
Родитель
Сommit
6faa121b9d
2 измененных файлов с 6 добавлено и 1 удалено
  1. 4 1
      components/openthread/CMakeLists.txt
  2. 2 0
      components/openthread/radio.cmake

+ 4 - 1
components/openthread/CMakeLists.txt

@@ -50,7 +50,10 @@ if(CONFIG_OPENTHREAD_ENABLED)
 
     if(CONFIG_OPENTHREAD_ESP_LIB_FROM_INTERNAL_SRC)
         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)
             idf_component_get_property(openthread_br_lib openthread_br COMPONENT_LIB)

+ 2 - 0
components/openthread/radio.cmake

@@ -46,7 +46,9 @@ set(exclude_srcs
     "openthread/src/core/common/heap_string.cpp"
     "openthread/src/core/common/time_ticker.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/tcp_api.cpp"
     "openthread/src/core/thread/energy_scan_server.cpp"
     "openthread/src/core/thread/mesh_forwarder.cpp"
     "openthread/src/core/thread/mle.cpp"