From 34ec8297a405bff68eb6175269ba8a31629058ab Mon Sep 17 00:00:00 2001 From: Mihail Stoyanov Date: Wed, 4 May 2016 12:06:57 +0100 Subject: [PATCH] Copy .o and .ar files for when building static library (needed for uVisor for example) --- tools/build_api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/build_api.py b/tools/build_api.py index b55d5f52e4..a8d5287cfa 100644 --- a/tools/build_api.py +++ b/tools/build_api.py @@ -272,9 +272,11 @@ def build_library(src_paths, build_path, target, toolchain_name, else: tmp_path = build_path - # Copy Headers + # Copy headers, objects and static libraries for resource in resources: toolchain.copy_files(resource.headers, build_path, rel_path=resource.base_path) + toolchain.copy_files(resource.objects, build_path, rel_path=resource.base_path) + toolchain.copy_files(resource.libraries, build_path, rel_path=resource.base_path) if resource.linker_script: toolchain.copy_files(resource.linker_script, build_path, rel_path=resource.base_path)