mirror of
https://github.com/odriverobotics/ODrive.git
synced 2026-09-24 17:53:39 +08:00
Minor cleanup, add comment to tupfile
This commit is contained in:
@@ -158,6 +158,9 @@ toolchain = GCCToolchain('arm-none-eabi-', 'build', FLAGS, LDFLAGS)
|
||||
|
||||
-- Load list of source files Makefile that was autogenerated by CubeMX
|
||||
vars = parse_makefile_vars(board.dir..'/Makefile')
|
||||
|
||||
-- ASM sources must precede C sources due to LTO removing weak symbols which appear after strong symbols
|
||||
-- in the call to the linker: https://bugs.launchpad.net/gcc-arm-embedded/+bug/1747966
|
||||
all_stm_sources = (vars['ASM_SOURCES'] or '')..' '..(vars['CPP_SOURCES'] or '')..' '..(vars['C_SOURCES'] or '')
|
||||
for src in string.gmatch(all_stm_sources, "%S+") do
|
||||
stm_sources += board.dir..'/'..src
|
||||
|
||||
Reference in New Issue
Block a user