mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-10 21:59:54 -05:00
36 lines
1.0 KiB
Python
36 lines
1.0 KiB
Python
|
|
def add_file_downloads(confs : dict) -> list:
|
|
'''
|
|
@param confs kconfig vars, dict type
|
|
@return list type, items is dict type
|
|
'''
|
|
# version = f"{confs['CONFIG_OMV_VERSION_MAJOR']}.{confs['CONFIG_OMV_VERSION_MINOR']}.{confs['CONFIG_OMV_VERSION_PATCH']}"
|
|
version = "2.1.0"
|
|
url = f"https://github.com/zxing-cpp/zxing-cpp/archive/refs/tags/v{version}.tar.gz"
|
|
if version == "2.1.0":
|
|
sha256sum = "6d54e403592ec7a143791c6526c1baafddf4c0897bb49b1af72b70a0f0c4a3fe"
|
|
else:
|
|
raise Exception(f"version {version} not support")
|
|
sites = ['https://www.openssl.org/source/']
|
|
filename = f"zxing-cpp-{version}.tar.gz"
|
|
path = f"zxing-cpp"
|
|
check_file = f'zxing-cpp-{version}'
|
|
rename = {}
|
|
|
|
return [
|
|
{
|
|
'url': f'{url}',
|
|
'urls': [],
|
|
'sites': sites,
|
|
'sha256sum': sha256sum,
|
|
'filename': filename,
|
|
'path': path,
|
|
'check_files': [
|
|
check_file
|
|
],
|
|
'rename': rename
|
|
}
|
|
]
|
|
|
|
|