waf: fixed cygwin build for ChibiOS

keep path lengths to linker short
This commit is contained in:
Andrew Tridgell 2018-03-02 16:27:40 +11:00
parent 08634903c8
commit 3e9f0f83f0

View File

@ -375,9 +375,10 @@ class chibios(Board):
'-mfpu=fpv4-sp-d16', '-mfpu=fpv4-sp-d16',
'-mno-thumb-interwork', '-mno-thumb-interwork',
'-mthumb', '-mthumb',
'-L%s' % env.BUILDROOT,
'-L%s' % cfg.srcnode.make_node('modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/ld/').abspath(), '-L%s' % cfg.srcnode.make_node('modules/ChibiOS/os/common/startup/ARMCMx/compilers/GCC/ld/').abspath(),
'-L%s' % cfg.srcnode.make_node('libraries/AP_HAL_ChibiOS/hwdef/common/').abspath(), '-L%s' % cfg.srcnode.make_node('libraries/AP_HAL_ChibiOS/hwdef/common/').abspath(),
'-Wl,--gc-sections,--no-warn-mismatch,--library-path=/ld,--script=%s/ldscript.ld,--defsym=__process_stack_size__=0x400,--defsym=__main_stack_size__=0x400' % env.BUILDROOT, '-Wl,--gc-sections,--no-warn-mismatch,--library-path=/ld,--script=ldscript.ld,--defsym=__process_stack_size__=0x400,--defsym=__main_stack_size__=0x400',
] ]
env.LIB += ['gcc', 'm'] env.LIB += ['gcc', 'm']