Skip to content

Commit

Permalink
Add temporarily the option to use toolchains with _signed postfix
Browse files Browse the repository at this point in the history
This is to fix an issue with ARM Mac toolchain for IDF v5.4
  • Loading branch information
me-no-dev committed Jan 15, 2025
1 parent 43bf922 commit 3305cbe
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions tools/gen_tools_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def replace_if_xz(system):
if not system['url'].endswith(".tar.xz"):
return system

new_url = system['url'].replace(".tar.xz", ".tar.gz")
new_name = system['archiveFileName'].replace(".tar.xz", ".tar.gz")
new_url = system['url'].replace(".tar.xz", "_signed.tar.gz")
new_name = system['archiveFileName'].replace(".tar.xz", "_signed.tar.gz")
new_checksum = ""
new_size = 0

Expand All @@ -40,8 +40,16 @@ def replace_if_xz(system):
(owner, proj, version, filename) = urlx[0]
release_manifest_url = "https://github.com/%s/%s/releases/download/%s/%s-%s-checksum.sha256" % (owner, proj, version, proj, version)
else:
print("No manifest match")
return system
new_url = system['url'].replace(".tar.xz", ".tar.gz")
new_name = system['archiveFileName'].replace(".tar.xz", ".tar.gz")
# parse the download url to extract all info needed for the checksum file url
urlx = re.findall("^https://github.com/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)/releases/download/([a-zA-Z0-9_\-.]+)/([a-zA-Z0-9_\-.]+)$", new_url)
if urlx and len(urlx) > 0:
(owner, proj, version, filename) = urlx[0]
release_manifest_url = "https://github.com/%s/%s/releases/download/%s/%s-%s-checksum.sha256" % (owner, proj, version, proj, version)
else:
print("No manifest match")
return system

# check if we have already downloaded and parsed that manifest
manifest_index = 0
Expand Down

0 comments on commit 3305cbe

Please sign in to comment.