summaryrefslogtreecommitdiff
path: root/bsp/lpc176x/CMSIS/SConscript
diff options
context:
space:
mode:
authorMeco Man <[email protected]>2022-05-30 18:04:05 -0400
committerguo <[email protected]>2022-06-09 07:01:59 +0800
commit50f041f5c2fb69b06283f54ce4619a08751d9367 (patch)
tree7e21367cb788808018dd4ccf5eee70a8ac2c8d0f /bsp/lpc176x/CMSIS/SConscript
parente622ef3aec4fe36d6348a3e746823dadc213979b (diff)
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp/lpc176x/CMSIS/SConscript')
-rw-r--r--bsp/lpc176x/CMSIS/SConscript2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsp/lpc176x/CMSIS/SConscript b/bsp/lpc176x/CMSIS/SConscript
index 2908e197a3..06a2fa04b9 100644
--- a/bsp/lpc176x/CMSIS/SConscript
+++ b/bsp/lpc176x/CMSIS/SConscript
@@ -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']