feat(ble_mesh): supported get lib version

(cherry picked from commit 56f78da32c)

Co-authored-by: luoxu <luoxu@espressif.com>
This commit is contained in:
Luo Xu
2026-07-27 10:03:19 +08:00
parent 1a11140e13
commit 759fbad296
3 changed files with 10 additions and 2 deletions

View File

@@ -4,8 +4,13 @@ function(register_ble_mesh_libs)
endif()
if(CONFIG_BLE_MESH_V11_SUPPORT)
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/${idf_target}/libble_mesh.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
if(NOT CONFIG_BLE_MESH_COMPRESSED_LOG_ENABLE)
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/${idf_target}/libble_mesh.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
else()
add_prebuilt_library(ble_mesh "esp_ble_mesh/lib/lib/${idf_target}/log_compressed/libble_mesh.a")
target_link_libraries(${COMPONENT_LIB} PRIVATE ble_mesh)
endif()
endif()
endfunction()

View File

@@ -5096,6 +5096,7 @@ void bt_mesh_lib_ext_func_dummy_call(void)
int bt_mesh_v11_ext_init(void)
{
bt_mesh_lib_log_info("%s", bt_mesh_v11_commit_str);
return bt_mesh_v11_init(&bt_mesh_ext_cfg, sizeof(bt_mesh_ext_cfg),
&bt_mesh_ext_func, sizeof(bt_mesh_ext_func));
}

View File

@@ -26,6 +26,8 @@ int bt_mesh_v11_init(const void *cfg, size_t cfg_size,
int bt_mesh_v11_deinit(void);
extern const char bt_mesh_v11_commit_str[];
#define BLE_MESH_TAG_SEND_SEGMENTED BIT(0)
#define BLE_MESH_TAG_IMMUTABLE_CRED BIT(1)
#define BLE_MESH_TAG_USE_DIRECTED BIT(2)