mirror of
https://github.com/sipeed/MaixCDK.git
synced 2026-09-11 06:09:42 -05:00
fix build bug
This commit is contained in:
3
components/3rd_party/opencv/component.py
vendored
3
components/3rd_party/opencv/component.py
vendored
@@ -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")
|
||||
|
||||
@@ -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] = []
|
||||
|
||||
Reference in New Issue
Block a user