fix(esp8266): Fix compiling error when enable Wi-Fi debug

This commit is contained in:
Dong Heng
2022-03-28 19:09:45 +08:00
parent 2e7f87ea1d
commit de327615db

View File

@ -69,7 +69,12 @@ else()
target_link_libraries(${COMPONENT_LIB} PUBLIC "-L ${CMAKE_CURRENT_SOURCE_DIR}/lib" "-lstdc++")
target_compile_definitions(${COMPONENT_LIB} PUBLIC -DUSING_IBUS_FASTER_GET)
if(NOT CONFIG_NO_BLOBS)
set(blobs "gcc" "hal" "core" "net80211" "phy" "rtc" "clk" "pp" "smartconfig" "ssc" "espnow")
set(blobs "gcc" "hal" "phy" "rtc" "clk" "smartconfig" "ssc")
if(CONFIG_ESP8266_WIFI_DEBUG_LOG_ENABLE)
list(APPEND blobs "core_dbg" "net80211_dbg" "pp_dbg" "espnow_dbg")
else()
list(APPEND blobs "core" "net80211" "pp" "espnow")
endif()
foreach(blob ${blobs})
add_library(${blob} STATIC IMPORTED)
set_property(TARGET ${blob} PROPERTY IMPORTED_LOCATION ${CMAKE_CURRENT_SOURCE_DIR}/lib/lib${blob}.a)