diff --git a/components/3rd_party/maixcam2_msp/component.py b/components/3rd_party/maixcam2_msp/component.py index b088e9ff..dc743c90 100644 --- a/components/3rd_party/maixcam2_msp/component.py +++ b/components/3rd_party/maixcam2_msp/component.py @@ -5,7 +5,7 @@ def add_file_downloads(confs : dict) -> list: @return list type, items is dict type ''' version = f"v{confs['CONFIG_MAIXCAM2_MSP_VERSION_MAJOR']}.{confs['CONFIG_MAIXCAM2_MSP_VERSION_MINOR']}.{confs['CONFIG_MAIXCAM2_MSP_VERSION_PATCH']}_{confs['CONFIG_MAIXCAM2_MSP_COMPILED_VERSION']}" - url = f"https://github.com/sipeed/MaixCDK/releases/download/v0.0.0/maixcam2_msp_arm64_glibc_{version}.tar.xz", + url = f"https://github.com/sipeed/MaixCDK/releases/download/v0.0.0/maixcam2_msp_arm64_glibc_{version}.tar.xz" if version == "v3.0.0_20241120230136": sha256sum = "3315bde03839e8451a864f79e0f1b1252703af821dd5d2b0418b1535a5396c84" elif version == "v3.0.0_20250319114413": diff --git a/tools/cmake/file_downloader.py b/tools/cmake/file_downloader.py index 729c64e1..c165234a 100644 --- a/tools/cmake/file_downloader.py +++ b/tools/cmake/file_downloader.py @@ -224,6 +224,11 @@ def check_download_items(items): sys.exit(1) if not "urls" in item: item["urls"] = [] + if type(item["url"]) in [list, tuple]: + urls = item["url"] + item["url"] = urls[0] + if len(urls) > 1: + item["urls"].extend(urls[1:]) if not "sites" in item: item["sites"] = [] if not "extract" in item: