Explorar o código

Merge branch 'feature/Add_target_link_library' into 'master'

ieee802154: Add linkage target library

See merge request espressif/esp-idf!21839
Zhang Wen Xu %!s(int64=3) %!d(string=hai) anos
pai
achega
c09cbfe414
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      components/ieee802154/CMakeLists.txt

+ 2 - 1
components/ieee802154/CMakeLists.txt

@@ -7,6 +7,7 @@ idf_component_register(
 
 
 if(CONFIG_IEEE802154_ENABLED)
 if(CONFIG_IEEE802154_ENABLED)
     idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB)
     idf_component_get_property(esp_phy_lib esp_phy COMPONENT_LIB)
+    idf_component_get_property(esp_system_lib esp_system COMPONENT_LIB)
     if($ENV{IEEE802154_LIB_FROM_INTERNAL_SRC})
     if($ENV{IEEE802154_LIB_FROM_INTERNAL_SRC})
         idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB)
         idf_component_get_property(ieee802154_lib ieee802154_driver COMPONENT_LIB)
         target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}>
         target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${ieee802154_lib}>
@@ -25,6 +26,6 @@ if(CONFIG_IEEE802154_ENABLED)
             target_link_directories(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}")
             target_link_directories(${COMPONENT_LIB} INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}/lib/${idf_target}")
         endif()
         endif()
         target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> lib802154.a libphy.a libbtbb.a
         target_link_libraries(${COMPONENT_LIB} INTERFACE $<TARGET_FILE:${esp_phy_lib}> lib802154.a libphy.a libbtbb.a
-                            $<TARGET_FILE:${esp_phy_lib}>)
+                           $<TARGET_FILE:${esp_phy_lib}> $<TARGET_FILE:${esp_system_lib}>)
     endif()
     endif()
 endif()
 endif()