From 313d4cd3f108e22aedf41c7ec59ab60c6217a6e0 Mon Sep 17 00:00:00 2001 From: ShenWeilong Date: Fri, 28 Aug 2026 19:20:18 +0800 Subject: [PATCH] fix(ble): Check if there are illegal library files in controller lib path --- components/bt/controller/CMakeLists.txt | 7 +++++++ components/bt/controller/lib_esp32h2/esp32h2-bt-lib | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/components/bt/controller/CMakeLists.txt b/components/bt/controller/CMakeLists.txt index 1157d14199d..21952097981 100644 --- a/components/bt/controller/CMakeLists.txt +++ b/components/bt/controller/CMakeLists.txt @@ -40,6 +40,13 @@ function(register_bt_ctrl_libs) add_prebuilt_library(libble_app "${lib_path}/libble_app.a" REQUIRES esp_phy bt) endif() else() + file(GLOB ILLEGAL_LIB_FILES "${lib_path}/*.a") + if(ILLEGAL_LIB_FILES) + message(FATAL_ERROR + "${lib_path} should not contain the library files!" + ) + endif() + if(CONFIG_BT_CTRL_RUN_IN_FLASH_ONLY AND EXISTS "${lib_path}/${idf_target}/libble_app_flash.a") add_prebuilt_library(libble_app "${lib_path}/${idf_target}/libble_app_flash.a" REQUIRES esp_phy bt) else() diff --git a/components/bt/controller/lib_esp32h2/esp32h2-bt-lib b/components/bt/controller/lib_esp32h2/esp32h2-bt-lib index df0cbaba7e2..b7db86bd4d5 160000 --- a/components/bt/controller/lib_esp32h2/esp32h2-bt-lib +++ b/components/bt/controller/lib_esp32h2/esp32h2-bt-lib @@ -1 +1 @@ -Subproject commit df0cbaba7e2cb665352358799c1063258c32e7b0 +Subproject commit b7db86bd4d579055c4a47ca849575513f00a23f9