From 65ceb4a0bd400dfa5b18d063de4b957a522a52fb Mon Sep 17 00:00:00 2001 From: zyh Date: Fri, 18 May 2018 20:24:38 +0800 Subject: [PATCH] [Bsp][STM32L476-nucleo]remove scons armcc build support --- bsp/stm32l476-nucleo/rtconfig.py | 35 ++++++++------------------------ 1 file changed, 8 insertions(+), 27 deletions(-) diff --git a/bsp/stm32l476-nucleo/rtconfig.py b/bsp/stm32l476-nucleo/rtconfig.py index 51851d916..8f8aadaab 100644 --- a/bsp/stm32l476-nucleo/rtconfig.py +++ b/bsp/stm32l476-nucleo/rtconfig.py @@ -16,8 +16,10 @@ if CROSS_TOOL == 'gcc': PLATFORM = 'gcc' EXEC_PATH = '/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/bin/' elif CROSS_TOOL == 'keil': - PLATFORM = 'armcc' - EXEC_PATH = r'C:/Keil_v5' + print('================ERROR============================') + print('Not support iar yet!') + print('=================================================') + exit(0) elif CROSS_TOOL == 'iar': print('================ERROR============================') print('Not support iar yet!') @@ -63,31 +65,10 @@ if PLATFORM == 'gcc': M_LFLAGS = DEVICE + ' -Wl,-z,max-page-size=0x4 -shared -fPIC -e main -nostdlib' elif PLATFORM == 'armcc': - # toolchains - CC = 'armcc' - AS = 'armasm' - AR = 'armar' - LINK = 'armlink' - TARGET_EXT = 'axf' - - DEVICE = ' --cpu=cortex-m4.fp' - CFLAGS = DEVICE + ' --apcs=interwork' - AFLAGS = DEVICE - LFLAGS = DEVICE + ' --info sizes --info totals --info unused --info veneers --list rtthread-stm32.map --scatter stm32_rom.sct' - - CFLAGS += ' -I' + EXEC_PATH + '/ARM/RV31/INC' - LFLAGS += ' --libpath ' + EXEC_PATH + '/ARM/RV31/LIB' - - EXEC_PATH += '/arm/bin40/' - - if BUILD == 'debug': - CFLAGS += ' -g -O0' - AFLAGS += ' -g' - else: - CFLAGS += ' -O2' - - POST_ACTION = 'fromelf --bin $TARGET --output rtthread.bin \nfromelf -z $TARGET' - + print('================ERROR============================') + print('Not support iar yet!') + print('=================================================') + exit(0) elif PLATFORM == 'iar': print('================ERROR============================') print('Not support iar yet!')