Skip to content

Commit

Permalink
Fix read of openthread package version
Browse files Browse the repository at this point in the history
  • Loading branch information
darkxst committed Mar 1, 2025
1 parent 5a16e77 commit ad18222
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tools/create_gbl.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,11 @@ def main():
if "ot_rcp_version" in gbl_dynamic:
gbl_dynamic.remove("ot_rcp_version")
openthread_config_h = parse_c_header_defines(
(project_root / "config/sl_openthread_generic_config.h").read_text()
(
gsdk_path / "protocol/openthread/include/sl_openthread_package_info.h"
).read_text()
)
metadata["ot_rcp_version"] = openthread_config_h["PACKAGE_STRING"]
metadata["ot_rcp_version"] = openthread_config_h["PACKAGE_VERSION"]

if "gecko_bootloader_version" in gbl_dynamic:
gbl_dynamic.remove("gecko_bootloader_version")
Expand Down

0 comments on commit ad18222

Please sign in to comment.