[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链

This commit is contained in:
Meco Man
2022-05-30 18:04:05 -04:00
committed by guo
parent e622ef3aec
commit 50f041f5c2
236 changed files with 244 additions and 244 deletions

View File

@@ -7,7 +7,7 @@ cwd = GetCurrentDir()
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
# add for startup script
if rtconfig.PLATFORM == 'gcc':
if rtconfig.PLATFORM in ['gcc']:
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']