Skip to content

Commit 2be7207

Browse files
committed
restructure - Fixed missing symbols in generation of mbed 2 cmsis library
1 parent 96b4ff3 commit 2be7207

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tools/build_api.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -925,17 +925,20 @@ def build_mbed_libs(target, toolchain_name, verbose=False,
925925
hal_implementation.libraries +
926926
[MBED_CONFIG_FILE],
927927
build_target, resources=hal_implementation)
928+
toolchain.copy_files(hal_implementation.linker_script, build_toolchain)
929+
toolchain.copy_files(hal_implementation.bin_files, build_toolchain)
928930
incdirs = toolchain.scan_resources(build_target).inc_dirs
929931
objects = toolchain.compile_sources(hal_implementation, tmp_path,
930932
library_incdirs + incdirs)
933+
toolchain.copy_files(objects, build_toolchain)
931934

932935
# Common Sources
933936
mbed_resources = None
934937
for dir in [MBED_DRIVERS, MBED_PLATFORM, MBED_HAL]:
935938
mbed_resources += toolchain.scan_resources(dir)
936939

937-
objects += toolchain.compile_sources(mbed_resources, tmp_path,
938-
library_incdirs + incdirs)
940+
objects = toolchain.compile_sources(mbed_resources, tmp_path,
941+
library_incdirs + incdirs)
939942

940943
# A number of compiled files need to be copied as objects as opposed to
941944
# way the linker search for symbols in archives. These are:

0 commit comments

Comments
 (0)