Skip to content

Commit 580d0f1

Browse files
benothmn-sterwango
authored andcommitted
scripts: Update README file path in ble_library.py for lib/stm32wb*
Update the README file path in ble_library.py for lib/stm32wba and lib/stm32wb and move the README file of lib/stm32wb to the new path. Signed-off-by: Nidhal BEN OTHMEN <[email protected]>
1 parent 360a0e2 commit 580d0f1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed
File renamed without changes.

scripts/ble_library.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def update_ble_lib_readme(lib_path, make_version, make_commit):
202202
make_commit: Commit corresponding to latest STM32Cube version.
203203
"""
204204

205-
readme_path = Path(lib_path / "hci" / "README")
205+
readme_path = Path(lib_path / "README")
206206

207207
with readme_path.open(mode="r") as readme_prev:
208208
lines = (x for x in readme_prev.read().splitlines())
@@ -285,8 +285,8 @@ def build_patch_from_current_zephyr_version(
285285
for file in temp_source_lib_path.glob("*"):
286286
if file.is_file():
287287
file.unlink()
288-
if Path(temp_source_lib_path / "hci" / "README").exists():
289-
Path(temp_source_lib_path / "hci" / "README").unlink()
288+
if Path(temp_source_lib_path / "README").exists():
289+
Path(temp_source_lib_path / "README").unlink()
290290

291291
# commit this current zephyr library file
292292
os_cmd(("git", "add", "*"), cwd=temp_source_path)
@@ -337,9 +337,8 @@ def update(
337337
)
338338
copy_hci_files(src_repo_path, dest_lib_path, stm32_serie)
339339
common_utils.apply_patch(dest_lib_path / "ble_zephyr.patch", dest_lib_path)
340-
if Path(dest_lib_path / "hci" / "README").exists():
341-
update_ble_lib_readme(
342-
dest_lib_path, update_version, commit)
340+
if Path(dest_lib_path / "README").exists():
341+
update_ble_lib_readme(dest_lib_path, update_version, commit)
343342

344343

345344
if __name__ == "__main__":

0 commit comments

Comments
 (0)