[Bsp][STM32L476-nucleo]remove scons armcc build support
This commit is contained in:
parent
ca59fbb588
commit
65ceb4a0bd
|
@ -16,8 +16,10 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = '/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/bin/'
|
EXEC_PATH = '/usr/local/Cellar/arm-none-eabi-gcc/7-2017-q4-major/gcc/bin/'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
print('================ERROR============================')
|
||||||
EXEC_PATH = r'C:/Keil_v5'
|
print('Not support iar yet!')
|
||||||
|
print('=================================================')
|
||||||
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print('================ERROR============================')
|
print('================ERROR============================')
|
||||||
print('Not support iar yet!')
|
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'
|
M_LFLAGS = DEVICE + ' -Wl,-z,max-page-size=0x4 -shared -fPIC -e main -nostdlib'
|
||||||
|
|
||||||
elif PLATFORM == 'armcc':
|
elif PLATFORM == 'armcc':
|
||||||
# toolchains
|
print('================ERROR============================')
|
||||||
CC = 'armcc'
|
print('Not support iar yet!')
|
||||||
AS = 'armasm'
|
print('=================================================')
|
||||||
AR = 'armar'
|
exit(0)
|
||||||
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'
|
|
||||||
|
|
||||||
elif PLATFORM == 'iar':
|
elif PLATFORM == 'iar':
|
||||||
print('================ERROR============================')
|
print('================ERROR============================')
|
||||||
print('Not support iar yet!')
|
print('Not support iar yet!')
|
||||||
|
|
Loading…
Reference in New Issue