fix build bug

This commit is contained in:
Neucrack
2025-03-19 15:49:27 +08:00
parent 46dc7fca4d
commit c95e06e16b
2 changed files with 3 additions and 1 deletions

View File

@@ -72,7 +72,7 @@ def add_file_downloads(confs : dict) -> list:
'extract': False
})
elif confs.get("PLATFORM_LINUX", None):
files.append(
files.extend([
{
'url': f'https://github.com/opencv/ade/archive/v0.1.2b.zip',
'urls': [],
@@ -98,6 +98,7 @@ def add_file_downloads(confs : dict) -> list:
'rename': {},
'extract': False
}
]
)
else:
raise Exception("No opencv config for this board, please edit to add opencv support for this board")

View File

@@ -69,6 +69,7 @@ def get_components_files(components, valid_components, kconfigs):
py_path = os.path.join(components[name], "component.py")
if not os.path.exists(py_path):
continue
print(f"-- get files for component {name} (component.py)")
found, files[name] = execute_component_py_func(py_path, "add_file_downloads", kconfigs)
if not found:
files[name] = []