heap_caps_realloc_default)
foreach(wrap ${WRAP_FUNCTIONS})
- target_link_libraries(heap "-Wl,--wrap=${wrap}")
+ target_link_libraries(${COMPONENT_TARGET} "-Wl,--wrap=${wrap}")
endforeach()
endif()
# Import mbedtls library targets
add_subdirectory(mbedtls)
+# Use port specific implementation of net_socket.c instead of one from mbedtls
+get_target_property(src_tls mbedtls SOURCES)
+list(REMOVE_ITEM src_tls net_sockets.c)
+set_property(TARGET mbedtls PROPERTY SOURCES ${src_tls})
+
set(mbedtls_targets mbedtls mbedcrypto mbedx509)
# Add port files to mbedtls targets
# Catch usage of deprecated mbedTLS functions when building tests
if(mbedtls_test IN_LIST BUILD_TEST_COMPONENTS)
add_definitions(-DMBEDTLS_DEPRECATED_WARNING)
-endif()
\ No newline at end of file
+endif()
register_component()
if(CONFIG_ENABLE_STATIC_TASK_CLEAN_UP_HOOK)
- target_link_libraries(pthread "-Wl,--wrap=vPortCleanUpTCB")
+ target_link_libraries(${COMPONENT_TARGET} "-Wl,--wrap=vPortCleanUpTCB")
endif()