summaryrefslogtreecommitdiff
path: root/bsp/imxrt
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/imxrt
parente622ef3aec4fe36d6348a3e746823dadc213979b (diff)
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp/imxrt')
-rw-r--r--bsp/imxrt/imxrt1052-atk-commander/applications/SConscript2
-rw-r--r--bsp/imxrt/imxrt1052-fire-pro/applications/SConscript2
-rw-r--r--bsp/imxrt/imxrt1052-nxp-evk/applications/SConscript2
-rw-r--r--bsp/imxrt/imxrt1052-seeed-ArchMix/applications/SConscript2
-rw-r--r--bsp/imxrt/imxrt1060-nxp-evk/applications/SConscript2
-rw-r--r--bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript2
-rw-r--r--bsp/imxrt/libraries/MIMXRT1050/SConscript4
-rw-r--r--bsp/imxrt/libraries/MIMXRT1060/SConscript4
-rw-r--r--bsp/imxrt/libraries/MIMXRT1064/SConscript4
-rw-r--r--bsp/imxrt/libraries/templates/imxrt1050xxx/applications/SConscript2
-rw-r--r--bsp/imxrt/libraries/templates/imxrt1064xxx/applications/SConscript2
11 files changed, 14 insertions, 14 deletions
diff --git a/bsp/imxrt/imxrt1052-atk-commander/applications/SConscript b/bsp/imxrt/imxrt1052-atk-commander/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/imxrt1052-atk-commander/applications/SConscript
+++ b/bsp/imxrt/imxrt1052-atk-commander/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/imxrt1052-fire-pro/applications/SConscript b/bsp/imxrt/imxrt1052-fire-pro/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/imxrt1052-fire-pro/applications/SConscript
+++ b/bsp/imxrt/imxrt1052-fire-pro/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/imxrt1052-nxp-evk/applications/SConscript b/bsp/imxrt/imxrt1052-nxp-evk/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/imxrt1052-nxp-evk/applications/SConscript
+++ b/bsp/imxrt/imxrt1052-nxp-evk/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/imxrt1052-seeed-ArchMix/applications/SConscript b/bsp/imxrt/imxrt1052-seeed-ArchMix/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/imxrt1052-seeed-ArchMix/applications/SConscript
+++ b/bsp/imxrt/imxrt1052-seeed-ArchMix/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/imxrt1060-nxp-evk/applications/SConscript b/bsp/imxrt/imxrt1060-nxp-evk/applications/SConscript
index 69e3f9b88e..ee6c5b7230 100644
--- a/bsp/imxrt/imxrt1060-nxp-evk/applications/SConscript
+++ b/bsp/imxrt/imxrt1060-nxp-evk/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript b/bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript
+++ b/bsp/imxrt/imxrt1064-nxp-evk/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/libraries/MIMXRT1050/SConscript b/bsp/imxrt/libraries/MIMXRT1050/SConscript
index e28febe813..e39658fae2 100644
--- a/bsp/imxrt/libraries/MIMXRT1050/SConscript
+++ b/bsp/imxrt/libraries/MIMXRT1050/SConscript
@@ -10,7 +10,7 @@ src = Split('''
MIMXRT1052/drivers/fsl_cache.c
''')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['MIMXRT1052/gcc/startup_MIMXRT1052.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1052/arm/startup_MIMXRT1052.s']
@@ -87,7 +87,7 @@ src += ['MIMXRT1052/drivers/fsl_xbarb.c']
src += ['MIMXRT1052/drivers/fsl_os_abstraction_rtthread.c']
src += ['MIMXRT1052/drivers/generic_list.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
else:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
diff --git a/bsp/imxrt/libraries/MIMXRT1060/SConscript b/bsp/imxrt/libraries/MIMXRT1060/SConscript
index b7f79e1fc9..211adc3c83 100644
--- a/bsp/imxrt/libraries/MIMXRT1060/SConscript
+++ b/bsp/imxrt/libraries/MIMXRT1060/SConscript
@@ -11,7 +11,7 @@ src = Split('''
MIMXRT1060/drivers/fsl_cache.c
''')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['MIMXRT1060/gcc/startup_MIMXRT1062.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1060/arm/startup_MIMXRT1062.s']
@@ -106,7 +106,7 @@ src += ['MIMXRT1060/drivers/fsl_xbarb.c']
# src += ['MIMXRT1060/drivers/fsl_os_abstraction_rtthread.c']
# src += ['MIMXRT1060/drivers/generic_list.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
else:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
diff --git a/bsp/imxrt/libraries/MIMXRT1064/SConscript b/bsp/imxrt/libraries/MIMXRT1064/SConscript
index 38124f8f7e..4c62bc22f2 100644
--- a/bsp/imxrt/libraries/MIMXRT1064/SConscript
+++ b/bsp/imxrt/libraries/MIMXRT1064/SConscript
@@ -10,7 +10,7 @@ MIMXRT1064/drivers/fsl_clock.c
MIMXRT1064/drivers/fsl_cache.c
''')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['MIMXRT1064/gcc/startup_MIMXRT1064.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1064/arm/startup_MIMXRT1064.s']
@@ -77,7 +77,7 @@ if GetDepend(['RT_SERIAL_USING_DMA']):
src += ['MIMXRT1064/drivers/fsl_lpuart_edma.c']
src += ['MIMXRT1064/drivers/fsl_lpspi_edma.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
else:
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
diff --git a/bsp/imxrt/libraries/templates/imxrt1050xxx/applications/SConscript b/bsp/imxrt/libraries/templates/imxrt1050xxx/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/libraries/templates/imxrt1050xxx/applications/SConscript
+++ b/bsp/imxrt/libraries/templates/imxrt1050xxx/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []
diff --git a/bsp/imxrt/libraries/templates/imxrt1064xxx/applications/SConscript b/bsp/imxrt/libraries/templates/imxrt1064xxx/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/imxrt/libraries/templates/imxrt1064xxx/applications/SConscript
+++ b/bsp/imxrt/libraries/templates/imxrt1064xxx/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd]
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES = ['__START=entry']
else:
CPPDEFINES = []