summaryrefslogtreecommitdiff
path: root/bsp/smartfusion2/CMSIS/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/smartfusion2/CMSIS/SConscript
parent08bebb40ba4c9a8c47be4c2686379e6a919aced7 (diff)
[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)
* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
Diffstat (limited to 'bsp/smartfusion2/CMSIS/SConscript')
-rw-r--r--bsp/smartfusion2/CMSIS/SConscript4
1 files changed, 2 insertions, 2 deletions
diff --git a/bsp/smartfusion2/CMSIS/SConscript b/bsp/smartfusion2/CMSIS/SConscript
index 653a3b7fc6..157d672a0b 100644
--- a/bsp/smartfusion2/CMSIS/SConscript
+++ b/bsp/smartfusion2/CMSIS/SConscript
@@ -4,10 +4,10 @@ import rtconfig
cwd = GetCurrentDir()
src = Glob('*.c')
-if rtconfig.CROSS_TOOL == 'gcc':
+if rtconfig.PLATFORM == 'gcc':
src += ['startup_gcc/startup_m2sxxx.S']
-elif rtconfig.CROSS_TOOL == 'keil':
+elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup_arm/startup_m2sxxx.s']
CPPPATH = [cwd]