提交 74cfa9e5 编写于 作者: W Willian Chan

[bsp][mm32l3xx]Fix the error-reporting problem when using the "sconds--dist" command.

Signed-off-by: NWillian Chan <chentingwei@rt-thread.com>
上级 2599bc23
......@@ -7,9 +7,7 @@ CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3x
src += Glob('MM32L3xx/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'gcc':
src += ['MM32L3xx/Source/GCC_StartAsm/startup_MM32L3xx.s']
elif rtconfig.CROSS_TOOL == 'keil':
if rtconfig.CROSS_TOOL == 'keil':
src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s']
......
......@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
OBJDUMP = PREFIX + 'objdump'
OBJCPY = PREFIX + 'objcopy'
DEVICE = ' -mcpu=' + CPU + ' -ffunction-sections -fdata-sections -Wall'
DEVICE = ' -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -Wall'
CFLAGS = DEVICE + ' -std=c99'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T drivers/linker_scripts/link.lds'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册