Skip to content

Commit e14f988

Browse files
benothmn-sterwango
authored andcommitted
scripts: Rename a function in ble_library.py for more coherence
Rename copy_hci_files to copy_ble_lib_files for more coherence Signed-off-by: Nidhal BEN OTHMEN <[email protected]>
1 parent 580d0f1 commit e14f988

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/ble_library.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,8 @@ def os_cmd(cmd, cwd=None, shell=False):
140140
)
141141

142142

143-
def copy_hci_files(src_repo_path, dest_lib_path, stm32_serie):
144-
"""Copy sources files from Cube Firmware to zephyr"""
143+
def copy_ble_lib_files(src_repo_path, dest_lib_path, stm32_serie):
144+
"""Copy BLE lib related files from Cube Firmware to hal_stm32"""
145145
if stm32_serie == "stm32wb":
146146
# Remove existing *.c and *.h files
147147
hci_path = Path(dest_lib_path / "hci")
@@ -251,7 +251,7 @@ def build_patch_from_current_zephyr_version(
251251
shutil.rmtree(temp_source_path, onerror=common_utils.remove_readonly)
252252
temp_source_lib_path.mkdir(parents=True)
253253

254-
copy_hci_files(
254+
copy_ble_lib_files(
255255
src_repo_path,
256256
temp_source_lib_path,
257257
stm32_serie,
@@ -335,7 +335,7 @@ def update(
335335
("git", "checkout", "-f", "--recurse-submodules", update_version),
336336
cwd=src_repo_path,
337337
)
338-
copy_hci_files(src_repo_path, dest_lib_path, stm32_serie)
338+
copy_ble_lib_files(src_repo_path, dest_lib_path, stm32_serie)
339339
common_utils.apply_patch(dest_lib_path / "ble_zephyr.patch", dest_lib_path)
340340
if Path(dest_lib_path / "README").exists():
341341
update_ble_lib_readme(dest_lib_path, update_version, commit)

0 commit comments

Comments
 (0)