fix(ble): Add link requires esp_phy for ble.

This commit is contained in:
Geng Yuchao
2025-03-14 16:40:49 +08:00
committed by Zhou Xiao
parent a88d47537a
commit c646c40dbc

View File

@ -913,12 +913,15 @@ if(CONFIG_BT_ENABLED)
target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_panic_handler") target_link_libraries(${COMPONENT_LIB} INTERFACE "-Wl,--wrap=esp_panic_handler")
endif() endif()
if(CONFIG_IDF_TARGET_ESP32C6) if(CONFIG_IDF_TARGET_ESP32C6)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a") add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/esp32c6/libble_app.a"
REQUIRES esp_phy)
else() else()
if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND CONFIG_IDF_TARGET_ESP32C2) if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND CONFIG_IDF_TARGET_ESP32C2)
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app_flash.a") add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app_flash.a"
REQUIRES esp_phy)
else() else()
add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a") add_prebuilt_library(libble_app "controller/lib_${target}/${target}-bt-lib/libble_app.a"
REQUIRES esp_phy)
endif() endif()
endif() endif()
target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app) target_link_libraries(${COMPONENT_LIB} PRIVATE libble_app)