diff --git a/components/nghttp/CMakeLists.txt b/components/nghttp/CMakeLists.txt index bf3f72746..c7e4b754b 100644 --- a/components/nghttp/CMakeLists.txt +++ b/components/nghttp/CMakeLists.txt @@ -1,6 +1,4 @@ set(COMPONENT_ADD_INCLUDEDIRS port/include nghttp2/lib/includes) set(COMPONENT_SRCDIRS nghttp2/lib port) -set(COMPONENT_REQUIRES lwip mbedtls) - register_component() diff --git a/components/pthread/CMakeLists.txt b/components/pthread/CMakeLists.txt index ad162fe1e..0b93e09ed 100644 --- a/components/pthread/CMakeLists.txt +++ b/components/pthread/CMakeLists.txt @@ -2,3 +2,7 @@ set(COMPONENT_SRCDIRS ".") set(COMPONENT_ADD_INCLUDEDIRS "include") set(COMPONENT_REQUIRES) register_component() + +if(CONFIG_ENABLE_STATIC_TASK_CLEAN_UP_HOOK) + target_link_libraries(pthread "-Wl,--wrap=vPortCleanUpTCB") +endif() diff --git a/components/wpa_supplicant/CMakeLists.txt b/components/wpa_supplicant/CMakeLists.txt index d349e96be..e77e3160b 100644 --- a/components/wpa_supplicant/CMakeLists.txt +++ b/components/wpa_supplicant/CMakeLists.txt @@ -2,7 +2,7 @@ set(COMPONENT_SRCDIRS src/crypto port src/fast_crypto) set(COMPONENT_ADD_INCLUDEDIRS include port/include) set(COMPONENT_REQUIRES "") -set(COMPONENT_PRIV_REQUIRES lwip mbedtls) +set(COMPONENT_PRIV_REQUIRES mbedtls) register_component() diff --git a/tools/cmake/components.cmake b/tools/cmake/components.cmake index fc7c7f5ed..0056a3b4a 100644 --- a/tools/cmake/components.cmake +++ b/tools/cmake/components.cmake @@ -46,7 +46,7 @@ function(register_component) foreach(src ${COMPONENT_SRCS}) get_filename_component(abs_src "${src}" ABSOLUTE ${component_dir}) if("${exclude}" STREQUAL "${abs_src}") # compare as canonical paths - list(REMOVE_ITEM COMPONENT_SRCS src) + list(REMOVE_ITEM COMPONENT_SRCS "${src}") endif() endforeach() endforeach()