summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZYH <[email protected]>2018-05-18 20:25:26 +0800
committerGitHub <[email protected]>2018-05-18 20:25:26 +0800
commitd679f14163cd48e98fa942a2ece250b16c4cb75c (patch)
tree8613e26907601c87bbcf2905893488735b666dbe
parent655e9875282419494db61a25c92acbca807f5078 (diff)
parent65ceb4a0bd400dfa5b18d063de4b957a522a52fb (diff)
Merge pull request #1450 from uestczyh222/master
[Bsp][STM32L476-nucleo]remove scons armcc build support
-rw-r--r--bsp/stm32l476-nucleo/rtconfig.py35
1 files changed, 8 insertions, 27 deletions
diff --git a/bsp/stm32l476-nucleo/rtconfig.py b/bsp/stm32l476-nucleo/rtconfig.py
index 51851d916b..8f8aadaab5 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!')