summaryrefslogtreecommitdiff
path: root/bsp/lpc43xx/Libraries/Device/SConscript
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-04-19 21:56:04 -0400
committerGitHub <[email protected]>2022-04-20 09:56:04 +0800
commita0f8d43744aea08165f6d89eb1fef8d068c5bbe2 (patch)
tree1453fbe45372452948de00c36f07939909649a0e /bsp/lpc43xx/Libraries/Device/SConscript
parent08bebb40ba4c9a8c47be4c2686379e6a919aced7 (diff)
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
Diffstat (limited to 'bsp/lpc43xx/Libraries/Device/SConscript')
-rw-r--r--bsp/lpc43xx/Libraries/Device/SConscript8
1 files changed, 4 insertions, 4 deletions
diff --git a/bsp/lpc43xx/Libraries/Device/SConscript b/bsp/lpc43xx/Libraries/Device/SConscript
index 47f7e04885..fed180fd71 100644
--- a/bsp/lpc43xx/Libraries/Device/SConscript
+++ b/bsp/lpc43xx/Libraries/Device/SConscript
@@ -12,16 +12,16 @@ CPPDEFINES = [rtconfig.USE_CORE]
CPPDEFINES += ['USE_SPIFI']
# add for startup script
if rtconfig.USE_CORE =='CORE_M4':
- if rtconfig.CROSS_TOOL == 'gcc':
+ if rtconfig.PLATFORM == 'gcc':
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s']
- elif rtconfig.CROSS_TOOL == 'keil':
+ 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.CROSS_TOOL == 'gcc':
+ if rtconfig.PLATFORM == 'gcc':
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s']
- elif rtconfig.CROSS_TOOL == 'keil':
+ elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s']
elif rtconfig.CROSS_TOOL == 'iar':
src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s']