diff options
| author | Meco Man <[email protected]> | 2022-05-30 18:04:05 -0400 |
|---|---|---|
| committer | guo <[email protected]> | 2022-06-09 07:01:59 +0800 |
| commit | 50f041f5c2fb69b06283f54ce4619a08751d9367 (patch) | |
| tree | 7e21367cb788808018dd4ccf5eee70a8ac2c8d0f /bsp/lpc43xx/Libraries/Device/SConscript | |
| parent | e622ef3aec4fe36d6348a3e746823dadc213979b (diff) | |
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp/lpc43xx/Libraries/Device/SConscript')
| -rw-r--r-- | bsp/lpc43xx/Libraries/Device/SConscript | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/lpc43xx/Libraries/Device/SConscript b/bsp/lpc43xx/Libraries/Device/SConscript index fed180fd71..da99bf9cc8 100644 --- a/bsp/lpc43xx/Libraries/Device/SConscript +++ b/bsp/lpc43xx/Libraries/Device/SConscript @@ -12,14 +12,14 @@ CPPDEFINES = [rtconfig.USE_CORE] CPPDEFINES += ['USE_SPIFI'] # add for startup script if rtconfig.USE_CORE =='CORE_M4': - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s'] elif rtconfig.CROSS_TOOL == 'iar': src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s'] else: - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] elif rtconfig.PLATFORM in ['armcc', 'armclang']: src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s'] |
