File tree 1 file changed +7
-1
lines changed
config/esp32/components/chip
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -430,7 +430,13 @@ if(CONFIG_BT_ENABLED)
430
430
if ((target_name STREQUAL "esp32h2" ) OR (target_name STREQUAL "esp32c2" ) OR (target_name STREQUAL "esp32c6" ))
431
431
idf_component_get_property(bt_dir bt COMPONENT_DIR)
432
432
list (APPEND chip_libraries $<TARGET_FILE:${bt_lib} >)
433
- list (APPEND chip_libraries "${bt_dir} /controller/lib_${target_name} /${target_name} -bt-lib/libble_app.a" )
433
+ if (EXISTS ${bt_dir} /controller/lib_${target_name} /${target_name} -bt-lib/libble_app.a)
434
+ list (APPEND chip_libraries "${bt_dir} /controller/lib_${target_name} /${target_name} -bt-lib/libble_app.a" )
435
+ elseif (EXISTS ${bt_dir} /controller/lib_${target_name} /${target_name} -bt-lib/${target_name} /libble_app.a)
436
+ list (APPEND chip_libraries "${bt_dir} /controller/lib_${target_name} /${target_name} -bt-lib/${target_name} /libble_app.a" )
437
+ else ()
438
+ message (WARNING "There is no libble_app.a in the given path" )
439
+ endif ()
434
440
elseif (target_name STREQUAL "esp32p4" )
435
441
list (APPEND chip_libraries $<TARGET_FILE:${bt_lib} >)
436
442
else ()
You can’t perform that action at this time.
0 commit comments