Skip to content

Commit

Permalink
[ESP32]: fix compile error for c6 bt lib path (#36332)
Browse files Browse the repository at this point in the history
* esp32: fix compile error for c6 bt lib path

* Add warning message if no libble_app.a is found.
  • Loading branch information
DejinChen authored Nov 22, 2024
1 parent 1ba5de6 commit d1600cc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion config/esp32/components/chip/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,13 @@ if(CONFIG_BT_ENABLED)
if((target_name STREQUAL "esp32h2") OR (target_name STREQUAL "esp32c2") OR (target_name STREQUAL "esp32c6"))
idf_component_get_property(bt_dir bt COMPONENT_DIR)
list(APPEND chip_libraries $<TARGET_FILE:${bt_lib}>)
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a")
if (EXISTS ${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a)
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/libble_app.a")
elseif(EXISTS ${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/${target_name}/libble_app.a)
list(APPEND chip_libraries "${bt_dir}/controller/lib_${target_name}/${target_name}-bt-lib/${target_name}/libble_app.a")
else()
message(WARNING "There is no libble_app.a in the given path")
endif()
elseif(target_name STREQUAL "esp32p4")
list(APPEND chip_libraries $<TARGET_FILE:${bt_lib}>)
else()
Expand Down

0 comments on commit d1600cc

Please sign in to comment.