summaryrefslogtreecommitdiff
path: root/bsp/microchip/same70
diff options
context:
space:
mode:
Diffstat (limited to 'bsp/microchip/same70')
-rw-r--r--bsp/microchip/same70/SConstruct2
-rw-r--r--bsp/microchip/same70/bsp/SConscript2
2 files changed, 2 insertions, 2 deletions
diff --git a/bsp/microchip/same70/SConstruct b/bsp/microchip/same70/SConstruct
index 9f8b13d9cf..1a7569d7b8 100644
--- a/bsp/microchip/same70/SConstruct
+++ b/bsp/microchip/same70/SConstruct
@@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
-if rtconfig.PLATFORM == 'iar':
+if rtconfig.PLATFORM in ['iccarm']:
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
env.Replace(ARFLAGS = [''])
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread-'+ rtconfig.DEVICE_PART + '.map')
diff --git a/bsp/microchip/same70/bsp/SConscript b/bsp/microchip/same70/bsp/SConscript
index dc8d9d46e3..28b8d6cadc 100644
--- a/bsp/microchip/same70/bsp/SConscript
+++ b/bsp/microchip/same70/bsp/SConscript
@@ -35,7 +35,7 @@ if rtconfig.PLATFORM in ['gcc']:
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/same70b/armcc/Source/' + 'system_same70q21b.c']
src += [cwd + '/same70b/armcc/Source/ARM/' + 'startup_SAME70.s']
-elif rtconfig.CROSS_TOOL == 'iar':
+elif rtconfig.PLATFORM in ['iccarm']:
src += [cwd + '/same70b/iar/' + 'system_same70q21b.c']
src += [cwd + '/same70b/iar/iar/' + 'startup_same70q21b.c']