Skip to content

Commit 34ec829

Browse files
committed
Copy .o and .ar files for when building static library (needed for uVisor for example)
1 parent ba31ed0 commit 34ec829

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/build_api.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,11 @@ def build_library(src_paths, build_path, target, toolchain_name,
272272
else:
273273
tmp_path = build_path
274274

275-
# Copy Headers
275+
# Copy headers, objects and static libraries
276276
for resource in resources:
277277
toolchain.copy_files(resource.headers, build_path, rel_path=resource.base_path)
278+
toolchain.copy_files(resource.objects, build_path, rel_path=resource.base_path)
279+
toolchain.copy_files(resource.libraries, build_path, rel_path=resource.base_path)
278280
if resource.linker_script:
279281
toolchain.copy_files(resource.linker_script, build_path, rel_path=resource.base_path)
280282

0 commit comments

Comments
 (0)