summaryrefslogtreecommitdiff
path: root/bsp
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
parente622ef3aec4fe36d6348a3e746823dadc213979b (diff)
[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
Diffstat (limited to 'bsp')
-rw-r--r--bsp/CME_M7/CMSIS/SConscript2
-rw-r--r--bsp/Vango/v85xx/Libraries/SConscript2
-rw-r--r--bsp/Vango/v85xxp/Libraries/SConscript2
-rw-r--r--bsp/acm32/acm32f0x0-nucleo/libraries/SConscript2
-rw-r--r--bsp/acm32/acm32f4xx-nucleo/libraries/SConscript2
-rw-r--r--bsp/airm2m/air105/board/SConscript2
-rw-r--r--bsp/allwinner_tina/libcpu/SConscript2
-rw-r--r--bsp/amebaz/libraries/smartconfig/SConscript2
-rw-r--r--bsp/apm32/apm32f103xe-minibroard/board/SConscript2
-rw-r--r--bsp/apollo2/libraries/startup/SConscript2
-rw-r--r--bsp/at32/at32f403a-start/board/SConscript2
-rw-r--r--bsp/at32/at32f407-start/board/SConscript2
-rw-r--r--bsp/at32/at32f435-start/board/SConscript2
-rw-r--r--bsp/at32/at32f437-start/board/SConscript2
-rw-r--r--bsp/at91/at91sam9260/platform/SConscript2
-rw-r--r--bsp/at91/at91sam9g45/platform/SConscript2
-rw-r--r--bsp/bluetrum/libcpu/cpu/SConscript2
-rw-r--r--bsp/efm32/Libraries/SConscript2
-rw-r--r--bsp/efm32/SConscript2
-rw-r--r--bsp/essemi/es32f0654/libraries/SConscript2
-rw-r--r--bsp/essemi/es32f369x/libraries/SConscript2
-rw-r--r--bsp/fm33lc026/board/SConscript2
-rw-r--r--bsp/frdm-k64f/device/SConscript2
-rw-r--r--bsp/ft32/ft32f072xb-starter/board/SConscript2
-rw-r--r--bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript2
-rw-r--r--bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript2
-rw-r--r--bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript2
-rw-r--r--bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript2
-rw-r--r--bsp/gd32/gd32103c-eval/board/SConscript2
-rw-r--r--bsp/gd32/gd32105c-eval/board/SConscript2
-rw-r--r--bsp/gd32/gd32105r-start/board/SConscript2
-rw-r--r--bsp/gd32/gd32107c-eval/board/SConscript2
-rw-r--r--bsp/gd32/gd32205r-start/board/SConscript2
-rw-r--r--bsp/gd32/gd32303e-eval/board/SConscript2
-rw-r--r--bsp/gd32/gd32305r-start/board/SConscript2
-rw-r--r--bsp/gd32/gd32407v-start/board/SConscript2
-rw-r--r--bsp/gd32/gd32450i-eval/board/SConscript2
-rw-r--r--bsp/gd32/gd32450z-eval/board/SConscript2
-rw-r--r--bsp/gd32105c-eval/Libraries/SConscript2
-rw-r--r--bsp/gd32107c-eval/Libraries/SConscript2
-rw-r--r--bsp/gd32303e-eval/Libraries/SConscript2
-rw-r--r--bsp/gd32350r-eval/Libraries/SConscript2
-rw-r--r--bsp/gd32450z-eval/Libraries/SConscript2
-rw-r--r--bsp/hc32f460/Libraries/SConscript2
-rw-r--r--bsp/hc32l136/Libraries/SConscript2
-rw-r--r--bsp/hc32l196/Libraries/SConscript2
-rw-r--r--bsp/hk32/hk32f030c8-mini/board/SConscript2
-rw-r--r--bsp/imx6sx/cortex-a9/cpu/SConscript2
-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
-rw-r--r--bsp/lm3s8962/Libraries/SConscript2
-rw-r--r--bsp/lm3s9b9x/Libraries/SConscript2
-rw-r--r--bsp/lm4f232/Libraries/SConscript4
-rw-r--r--bsp/lpc176x/CMSIS/SConscript2
-rw-r--r--bsp/lpc178x/CMSIS/SConscript2
-rw-r--r--bsp/lpc408x/Libraries/Device/SConscript2
-rw-r--r--bsp/lpc43xx/Libraries/Device/SConscript4
-rw-r--r--bsp/lpc43xx/M0/SConstruct2
-rw-r--r--bsp/lpc43xx/M4/SConstruct2
-rw-r--r--bsp/lpc5410x/Libraries/Device/SConscript2
-rw-r--r--bsp/lpc5410x/Libraries/lpc_chip/SConscript2
-rw-r--r--bsp/lpc54114-lite/Libraries/devices/LPC54114/SConscript2
-rw-r--r--bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/SConscript2
-rw-r--r--bsp/lpc55sxx/Libraries/LPC55S6X/SConscript4
-rw-r--r--bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript2
-rw-r--r--bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript2
-rw-r--r--bsp/lpc824/Libraries/SConscript2
-rw-r--r--bsp/m16c62p/drivers/SConscript2
-rw-r--r--bsp/maxim/MAX32660_EVSYS/board/SConscript2
-rw-r--r--bsp/microchip/samc21/bsp/SConscript2
-rw-r--r--bsp/microchip/same54/bsp/SConscript2
-rw-r--r--bsp/microchip/same70/bsp/SConscript2
-rw-r--r--bsp/microchip/saml10/bsp/SConscript2
-rw-r--r--bsp/mm32l07x/Libraries/SConscript2
-rwxr-xr-xbsp/n32g452xx/n32g452xx-mini-system/board/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m031/Device/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m031/StdDriver/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m2354/Device/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m2354/StdDriver/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m480/Device/SConscript2
-rw-r--r--bsp/nuvoton/libraries/m480/StdDriver/SConscript2
-rw-r--r--bsp/nuvoton/libraries/n9h30/Driver/SConscript2
-rw-r--r--bsp/nuvoton/libraries/nuc980/Driver/SConscript2
-rw-r--r--bsp/qemu-vexpress-gemini/cpu/SConscript2
-rw-r--r--bsp/renesas/libraries/bsp-template/SConscript2
-rw-r--r--bsp/renesas/libraries/bsp-template/board/ports/SConscript2
-rw-r--r--bsp/renesas/libraries/bsp-template/ra/SConscript2
-rw-r--r--bsp/renesas/libraries/bsp-template/ra_cfg/SConscript2
-rw-r--r--bsp/renesas/libraries/bsp-template/ra_gen/SConscript2
-rw-r--r--bsp/renesas/ra6m4-cpk/SConscript2
-rw-r--r--bsp/renesas/ra6m4-cpk/board/ports/SConscript2
-rw-r--r--bsp/renesas/ra6m4-cpk/ra/SConscript2
-rw-r--r--bsp/renesas/ra6m4-cpk/ra_cfg/SConscript2
-rw-r--r--bsp/renesas/ra6m4-cpk/ra_gen/SConscript2
-rw-r--r--bsp/renesas/ra6m4-iot/SConscript2
-rw-r--r--bsp/renesas/ra6m4-iot/board/ports/SConscript2
-rw-r--r--bsp/renesas/ra6m4-iot/ra/SConscript2
-rw-r--r--bsp/renesas/ra6m4-iot/ra_cfg/SConscript2
-rw-r--r--bsp/renesas/ra6m4-iot/ra_gen/SConscript2
-rw-r--r--bsp/samd21/sam_d2x_asflib/SConscript4
-rw-r--r--bsp/smartfusion2/CMSIS/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f0xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f10x/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f2xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f3xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f4xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32f7xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32h7xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32l1xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32l4xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32l5xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32mp1xx/board/SConscript2
-rw-r--r--bsp/stm32/libraries/templates/stm32wbxx/board/SConscript2
-rw-r--r--bsp/stm32/stm32f072-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f091-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-atk-nano/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-atk-warshipv3/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-blue-pill/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-dofly-M3S/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-dofly-lyc8/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-fire-arbitrary/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-gizwits-gokitv21/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-hw100k-ibox/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-onenet-nbiot/board/SConscript2
-rw-r--r--bsp/stm32/stm32f103-yf-ufun/board/SConscript2
-rw-r--r--bsp/stm32/stm32f107-uc-eval/board/SConscript2
-rw-r--r--bsp/stm32/stm32f207-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f302-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f401-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f405-smdz-breadfruit/board/SConscript2
-rw-r--r--bsp/stm32/stm32f407-armfly-v5/board/SConscript2
-rw-r--r--bsp/stm32/stm32f407-atk-explorer/board/SConscript2
-rw-r--r--bsp/stm32/stm32f407-robomaster-c/board/SConscript2
-rw-r--r--bsp/stm32/stm32f407-st-discovery/board/SConscript2
-rw-r--r--bsp/stm32/stm32f410-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f411-atk-nano/board/SConscript2
-rw-r--r--bsp/stm32/stm32f411-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f411-weact-MiniF4/board/SConscript2
-rw-r--r--bsp/stm32/stm32f412-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f413-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f427-robomaster-a/board/SConscript2
-rw-r--r--bsp/stm32/stm32f429-armfly-v6/board/SConscript2
-rw-r--r--bsp/stm32/stm32f429-atk-apollo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f429-fire-challenger/board/SConscript2
-rw-r--r--bsp/stm32/stm32f429-st-disco/board/SConscript2
-rw-r--r--bsp/stm32/stm32f446-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f469-st-disco/board/SConscript2
-rw-r--r--bsp/stm32/stm32f746-st-disco/board/SConscript2
-rw-r--r--bsp/stm32/stm32f746-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f767-atk-apollo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript2
-rw-r--r--bsp/stm32/stm32f767-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32f769-st-disco/board/SConscript2
-rw-r--r--bsp/stm32/stm32g070-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32g071-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32g431-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32g474-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32h743-armfly-v7/board/SConscript2
-rw-r--r--bsp/stm32/stm32h743-atk-apollo/board/SConscript2
-rw-r--r--bsp/stm32/stm32h743-openmv-h7plus/board/SConscript2
-rw-r--r--bsp/stm32/stm32h743-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32h747-st-discovery/board/SConscript2
-rw-r--r--bsp/stm32/stm32h750-armfly-h7-tool/board/SConscript2
-rw-r--r--bsp/stm32/stm32h750-artpi/board/SConscript2
-rw-r--r--bsp/stm32/stm32h750-artpi/board/port/wlan_wiced_lib/SConscript2
-rw-r--r--bsp/stm32/stm32l010-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l053-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l412-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l431-BearPi/board/SConscript2
-rw-r--r--bsp/stm32/stm32l432-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l433-ali-startkit/board/SConscript2
-rw-r--r--bsp/stm32/stm32l433-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l452-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/board/SConscript2
-rw-r--r--bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript2
-rw-r--r--bsp/stm32/stm32l475-st-discovery/board/SConscript2
-rw-r--r--bsp/stm32/stm32l476-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l496-ali-developer/board/SConscript2
-rw-r--r--bsp/stm32/stm32l496-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l4r5-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32l4r9-st-eval/board/SConscript2
-rw-r--r--bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript2
-rw-r--r--bsp/stm32/stm32l552-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32mp157a-st-discovery/board/SConscript2
-rw-r--r--bsp/stm32/stm32mp157a-st-ev1/board/SConscript2
-rw-r--r--bsp/stm32/stm32u575-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32wb55-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32wl55-st-nucleo/board/SConscript2
-rw-r--r--bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript2
-rw-r--r--bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript2
-rw-r--r--bsp/swm320/libraries/SConscript2
-rw-r--r--bsp/tae32f5300/Libraries/SConscript2
-rw-r--r--bsp/tm4c123bsp/board/SConscript2
-rw-r--r--bsp/tm4c129x/libraries/SConscript2
-rw-r--r--bsp/upd70f3454/drivers/SConscript2
-rw-r--r--bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript2
-rw-r--r--bsp/wch/arm/ch32f103c8-core/board/SConscript2
-rw-r--r--bsp/xplorer4330/Libraries/Device/SConscript4
-rw-r--r--bsp/yichip/yc3121-pos/Libraries/SConscript2
208 files changed, 216 insertions, 216 deletions
diff --git a/bsp/CME_M7/CMSIS/SConscript b/bsp/CME_M7/CMSIS/SConscript
index 5cbf1f952e..ee315fad3a 100644
--- a/bsp/CME_M7/CMSIS/SConscript
+++ b/bsp/CME_M7/CMSIS/SConscript
@@ -11,7 +11,7 @@ CME_M7/system_cmem7.c
""")
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['CME_M7/startup/gcc/startup_CME_M7.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CME_M7/startup/arm/startup_cmem7.s']
diff --git a/bsp/Vango/v85xx/Libraries/SConscript b/bsp/Vango/v85xx/Libraries/SConscript
index 18e3071c92..1842f9190f 100644
--- a/bsp/Vango/v85xx/Libraries/SConscript
+++ b/bsp/Vango/v85xx/Libraries/SConscript
@@ -13,7 +13,7 @@ src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_cortex.c']
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_LoadNVR.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/Vango/V85xx/Source/Keil5/startup_target.S']
diff --git a/bsp/Vango/v85xxp/Libraries/SConscript b/bsp/Vango/v85xxp/Libraries/SConscript
index 1a3adf9287..fdca0648c6 100644
--- a/bsp/Vango/v85xxp/Libraries/SConscript
+++ b/bsp/Vango/v85xxp/Libraries/SConscript
@@ -13,7 +13,7 @@ src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_cortex.c']
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_LoadNVR.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S']
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/Vango/V85xxP/Source/Keil5/startup_target.S']
diff --git a/bsp/acm32/acm32f0x0-nucleo/libraries/SConscript b/bsp/acm32/acm32f0x0-nucleo/libraries/SConscript
index 5ba7ff8012..d5c9c3d1c6 100644
--- a/bsp/acm32/acm32f0x0-nucleo/libraries/SConscript
+++ b/bsp/acm32/acm32f0x0-nucleo/libraries/SConscript
@@ -25,7 +25,7 @@ HAL_Driver/Src/HAL_CRC.c
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
libs = []
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['Device/Startup_ACM32F0x0_gcc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Device/Startup_ACM32F0x0.s']
diff --git a/bsp/acm32/acm32f4xx-nucleo/libraries/SConscript b/bsp/acm32/acm32f4xx-nucleo/libraries/SConscript
index d8d13055af..ed549a8348 100644
--- a/bsp/acm32/acm32f4xx-nucleo/libraries/SConscript
+++ b/bsp/acm32/acm32f4xx-nucleo/libraries/SConscript
@@ -18,7 +18,7 @@ HAL_Driver/Src/HAL_EXTI.c
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
libs = ['System_Accelerate', 'HAL_EFlash_EX']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['Device/Startup_ACM32F4_gcc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['Device/Startup_ACM32F4.s']
diff --git a/bsp/airm2m/air105/board/SConscript b/bsp/airm2m/air105/board/SConscript
index b9745c4e6c..ae777e304f 100644
--- a/bsp/airm2m/air105/board/SConscript
+++ b/bsp/airm2m/air105/board/SConscript
@@ -24,7 +24,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/HAL_Driver/Startup/gcc/startup_gcc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/HAL_Driver/Startup/arm/startup_gcc.s']
diff --git a/bsp/allwinner_tina/libcpu/SConscript b/bsp/allwinner_tina/libcpu/SConscript
index aa13c2b179..159e7889af 100644
--- a/bsp/allwinner_tina/libcpu/SConscript
+++ b/bsp/allwinner_tina/libcpu/SConscript
@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
src = Glob('*.c')
CPPPATH = [cwd]
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += Glob('*_gcc.S')
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
diff --git a/bsp/amebaz/libraries/smartconfig/SConscript b/bsp/amebaz/libraries/smartconfig/SConscript
index d5d29878b2..1682e4724b 100644
--- a/bsp/amebaz/libraries/smartconfig/SConscript
+++ b/bsp/amebaz/libraries/smartconfig/SConscript
@@ -7,7 +7,7 @@ path = [cwd + '/inc']
libs = ['']
libpath = [cwd + '/libs']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
libs += ['libsmartconfig_armcm4_gcc']
elif rtconfig.CROSS_TOOL == 'iar':
libs += ['libsmartconfig_armcm4_iar']
diff --git a/bsp/apm32/apm32f103xe-minibroard/board/SConscript b/bsp/apm32/apm32f103xe-minibroard/board/SConscript
index eb181d7948..68b886f3d9 100644
--- a/bsp/apm32/apm32f103xe-minibroard/board/SConscript
+++ b/bsp/apm32/apm32f103xe-minibroard/board/SConscript
@@ -21,7 +21,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']:
if rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/iar/startup_apm32f10x_hd.s']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/gcc/startup_apm32f10x_hd.s']
# You can select chips from the list above
diff --git a/bsp/apollo2/libraries/startup/SConscript b/bsp/apollo2/libraries/startup/SConscript
index 1deac49d11..9750e8b73c 100644
--- a/bsp/apollo2/libraries/startup/SConscript
+++ b/bsp/apollo2/libraries/startup/SConscript
@@ -10,7 +10,7 @@ src = Split("""
""")
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['gcc/' + 'startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['arm/' + 'startup_keil.s']
diff --git a/bsp/at32/at32f403a-start/board/SConscript b/bsp/at32/at32f403a-start/board/SConscript
index a5970038c8..5cd2570bbe 100644
--- a/bsp/at32/at32f403a-start/board/SConscript
+++ b/bsp/at32/at32f403a-start/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
diff --git a/bsp/at32/at32f407-start/board/SConscript b/bsp/at32/at32f407-start/board/SConscript
index 66967ab0eb..71b75a45a3 100644
--- a/bsp/at32/at32f407-start/board/SConscript
+++ b/bsp/at32/at32f407-start/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
diff --git a/bsp/at32/at32f435-start/board/SConscript b/bsp/at32/at32f435-start/board/SConscript
index 8bdc208807..679953b121 100644
--- a/bsp/at32/at32f435-start/board/SConscript
+++ b/bsp/at32/at32f435-start/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
diff --git a/bsp/at32/at32f437-start/board/SConscript b/bsp/at32/at32f437-start/board/SConscript
index dd39194f5f..02323abbd6 100644
--- a/bsp/at32/at32f437-start/board/SConscript
+++ b/bsp/at32/at32f437-start/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
diff --git a/bsp/at91/at91sam9260/platform/SConscript b/bsp/at91/at91sam9260/platform/SConscript
index f984f7d773..7a345490a4 100644
--- a/bsp/at91/at91sam9260/platform/SConscript
+++ b/bsp/at91/at91sam9260/platform/SConscript
@@ -9,7 +9,7 @@ CPPPATH = [cwd]
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src = Glob('*.c') + Glob('*_rvds.S')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
if rtconfig.PLATFORM == 'iar':
diff --git a/bsp/at91/at91sam9g45/platform/SConscript b/bsp/at91/at91sam9g45/platform/SConscript
index f984f7d773..7a345490a4 100644
--- a/bsp/at91/at91sam9g45/platform/SConscript
+++ b/bsp/at91/at91sam9g45/platform/SConscript
@@ -9,7 +9,7 @@ CPPPATH = [cwd]
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src = Glob('*.c') + Glob('*_rvds.S')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
if rtconfig.PLATFORM == 'iar':
diff --git a/bsp/bluetrum/libcpu/cpu/SConscript b/bsp/bluetrum/libcpu/cpu/SConscript
index 61f2b51e12..814ab35cc3 100644
--- a/bsp/bluetrum/libcpu/cpu/SConscript
+++ b/bsp/bluetrum/libcpu/cpu/SConscript
@@ -11,7 +11,7 @@ CPPPATH = [cwd]
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('*_rvds.S')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += Glob('*_init.S')
src += Glob('*_gcc.S')
diff --git a/bsp/efm32/Libraries/SConscript b/bsp/efm32/Libraries/SConscript
index a45486a3e0..521fc66758 100644
--- a/bsp/efm32/Libraries/SConscript
+++ b/bsp/efm32/Libraries/SConscript
@@ -4,7 +4,7 @@ from building import *
# get current directory
cwd = GetCurrentDir()
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
compiler = 'GCC'
# The set of source files associated with this SConscript file.
diff --git a/bsp/efm32/SConscript b/bsp/efm32/SConscript
index 55adf12d6b..b1254300ca 100644
--- a/bsp/efm32/SConscript
+++ b/bsp/efm32/SConscript
@@ -3,7 +3,7 @@ Import('RTT_ROOT')
from building import *
src_bsp = ['application.c', 'startup.c', 'board.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src_bsp.append('start_gcc.S')
src_drv1 = ['drv_emu.c', 'drv_dma.c', 'drv_rtc.c', 'drv_adc.c', 'drv_acmp.c', 'drv_usart.c', 'drv_leuart.c', 'drv_iic.c', 'drv_timer.c']
src_drv2 = ['drv_sdcard.c', 'drv_ethernet.c']
diff --git a/bsp/essemi/es32f0654/libraries/SConscript b/bsp/essemi/es32f0654/libraries/SConscript
index fc865183a7..e44cd4799b 100644
--- a/bsp/essemi/es32f0654/libraries/SConscript
+++ b/bsp/essemi/es32f0654/libraries/SConscript
@@ -11,7 +11,7 @@ src = []
src += Glob('ES32F065x_ALD_StdPeriph_Driver/Source/*.c')
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/gcc/startup_es32f065x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/keil/startup_es32f065x.s']
diff --git a/bsp/essemi/es32f369x/libraries/SConscript b/bsp/essemi/es32f369x/libraries/SConscript
index 31284a848d..cc1137a013 100644
--- a/bsp/essemi/es32f369x/libraries/SConscript
+++ b/bsp/essemi/es32f369x/libraries/SConscript
@@ -11,7 +11,7 @@ src = []
src += Glob('ES32F36xx_ALD_StdPeriph_Driver/Source/*.c')
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/gcc/startup_es32f36xx.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/keil/startup_es32f36xx.s']
diff --git a/bsp/fm33lc026/board/SConscript b/bsp/fm33lc026/board/SConscript
index 099adce14d..6d5f420999 100644
--- a/bsp/fm33lc026/board/SConscript
+++ b/bsp/fm33lc026/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s']
diff --git a/bsp/frdm-k64f/device/SConscript b/bsp/frdm-k64f/device/SConscript
index 957b670b0e..6b0192030b 100644
--- a/bsp/frdm-k64f/device/SConscript
+++ b/bsp/frdm-k64f/device/SConscript
@@ -11,7 +11,7 @@ src = Glob('MK64F12/*.c')
src += ['system_MK64F12.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['TOOLCHAIN_GCC_ARM/startup_MK64F12.S']
src = src + ['TOOLCHAIN_GCC_ARM/startup.c']
path += [cwd + 'TOOLCHAIN_GCC_ARM']
diff --git a/bsp/ft32/ft32f072xb-starter/board/SConscript b/bsp/ft32/ft32f072xb-starter/board/SConscript
index 6366633b29..204916b108 100644
--- a/bsp/ft32/ft32f072xb-starter/board/SConscript
+++ b/bsp/ft32/ft32f072xb-starter/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/gcc/startup_ft32f072xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/arm/startup_ft32f072xb.s']
diff --git a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript
index 6c7e1add38..04533a3a77 100644
--- a/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript
+++ b/bsp/fujitsu/mb9x/mb9bf500r/CMSIS/SConscript
@@ -5,7 +5,7 @@ from building import *
src = Glob('*.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['start_gcc.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['start_rvds.S']
diff --git a/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript
index 7abee89519..a2f153d0f3 100644
--- a/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript
+++ b/bsp/fujitsu/mb9x/mb9bf506r/libraries/SConscript
@@ -7,7 +7,7 @@ src = Glob('*.c')
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
diff --git a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript
index 4e888d2a7c..7af796f38a 100644
--- a/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript
+++ b/bsp/fujitsu/mb9x/mb9bf568r/CMSIS/SConscript
@@ -11,7 +11,7 @@ CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport']
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['DeviceSupport/arm/startup_mb9bf56xr.s']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['DeviceSupport/gcc/startup_mb9bf56xr.S']
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
diff --git a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript
index d40b425c58..20f7ce210a 100644
--- a/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript
+++ b/bsp/fujitsu/mb9x/mb9bf618s/CMSIS/SConscript
@@ -8,7 +8,7 @@ src = Glob('DeviceSupport/fujitsu/mb9bf61x/*.c')
CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
diff --git a/bsp/gd32/gd32103c-eval/board/SConscript b/bsp/gd32/gd32103c-eval/board/SConscript
index 45487fdb9e..54e06454b7 100644
--- a/bsp/gd32/gd32103c-eval/board/SConscript
+++ b/bsp/gd32/gd32103c-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_hd.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s']
diff --git a/bsp/gd32/gd32105c-eval/board/SConscript b/bsp/gd32/gd32105c-eval/board/SConscript
index ad9aaef370..39be26bc05 100644
--- a/bsp/gd32/gd32105c-eval/board/SConscript
+++ b/bsp/gd32/gd32105c-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
diff --git a/bsp/gd32/gd32105r-start/board/SConscript b/bsp/gd32/gd32105r-start/board/SConscript
index ad9aaef370..39be26bc05 100644
--- a/bsp/gd32/gd32105r-start/board/SConscript
+++ b/bsp/gd32/gd32105r-start/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
diff --git a/bsp/gd32/gd32107c-eval/board/SConscript b/bsp/gd32/gd32107c-eval/board/SConscript
index ad9aaef370..39be26bc05 100644
--- a/bsp/gd32/gd32107c-eval/board/SConscript
+++ b/bsp/gd32/gd32107c-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
diff --git a/bsp/gd32/gd32205r-start/board/SConscript b/bsp/gd32/gd32205r-start/board/SConscript
index 87645eb78a..3bd0ee59a8 100644
--- a/bsp/gd32/gd32205r-start/board/SConscript
+++ b/bsp/gd32/gd32205r-start/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/GCC/startup_gd32f20x_cl.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s']
diff --git a/bsp/gd32/gd32303e-eval/board/SConscript b/bsp/gd32/gd32303e-eval/board/SConscript
index d023a96a2f..a93216df45 100644
--- a/bsp/gd32/gd32303e-eval/board/SConscript
+++ b/bsp/gd32/gd32303e-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
diff --git a/bsp/gd32/gd32305r-start/board/SConscript b/bsp/gd32/gd32305r-start/board/SConscript
index 73501b86f4..9b475a9838 100644
--- a/bsp/gd32/gd32305r-start/board/SConscript
+++ b/bsp/gd32/gd32305r-start/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_cl.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s']
diff --git a/bsp/gd32/gd32407v-start/board/SConscript b/bsp/gd32/gd32407v-start/board/SConscript
index f386c03996..0930d7eb9c 100644
--- a/bsp/gd32/gd32407v-start/board/SConscript
+++ b/bsp/gd32/gd32407v-start/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
diff --git a/bsp/gd32/gd32450i-eval/board/SConscript b/bsp/gd32/gd32450i-eval/board/SConscript
index b1ae6aa30e..6c8121b586 100644
--- a/bsp/gd32/gd32450i-eval/board/SConscript
+++ b/bsp/gd32/gd32450i-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
diff --git a/bsp/gd32/gd32450z-eval/board/SConscript b/bsp/gd32/gd32450z-eval/board/SConscript
index b1ae6aa30e..6c8121b586 100644
--- a/bsp/gd32/gd32450z-eval/board/SConscript
+++ b/bsp/gd32/gd32450z-eval/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
diff --git a/bsp/gd32105c-eval/Libraries/SConscript b/bsp/gd32105c-eval/Libraries/SConscript
index 2c49ad231f..f387300a3f 100644
--- a/bsp/gd32105c-eval/Libraries/SConscript
+++ b/bsp/gd32105c-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F10x_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
diff --git a/bsp/gd32107c-eval/Libraries/SConscript b/bsp/gd32107c-eval/Libraries/SConscript
index 2c49ad231f..f387300a3f 100644
--- a/bsp/gd32107c-eval/Libraries/SConscript
+++ b/bsp/gd32107c-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F10x_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
diff --git a/bsp/gd32303e-eval/Libraries/SConscript b/bsp/gd32303e-eval/Libraries/SConscript
index c1ad056207..7acfcb5d77 100644
--- a/bsp/gd32303e-eval/Libraries/SConscript
+++ b/bsp/gd32303e-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F30x_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
diff --git a/bsp/gd32350r-eval/Libraries/SConscript b/bsp/gd32350r-eval/Libraries/SConscript
index eb25cf1e7a..e2f97da936 100644
--- a/bsp/gd32350r-eval/Libraries/SConscript
+++ b/bsp/gd32350r-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F3x0_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/system_gd32f3x0.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/ARM/startup_gd32f3x0.s']
diff --git a/bsp/gd32450z-eval/Libraries/SConscript b/bsp/gd32450z-eval/Libraries/SConscript
index 42e112815a..98a49626a3 100644
--- a/bsp/gd32450z-eval/Libraries/SConscript
+++ b/bsp/gd32450z-eval/Libraries/SConscript
@@ -10,7 +10,7 @@ src = Glob('GD32F4xx_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
diff --git a/bsp/hc32f460/Libraries/SConscript b/bsp/hc32f460/Libraries/SConscript
index 2172212e3e..87b87a0fe3 100644
--- a/bsp/hc32f460/Libraries/SConscript
+++ b/bsp/hc32f460/Libraries/SConscript
@@ -28,7 +28,7 @@ if GetDepend(['RT_USING_SERIAL']):
src += ['HC32F460_StdPeriph_Driver/src/hc32f460_usart.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/GCC/startup_hc32f460.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/ARM/startup_hc32f460.s']
diff --git a/bsp/hc32l136/Libraries/SConscript b/bsp/hc32l136/Libraries/SConscript
index d5a8e25e97..97f96c22d9 100644
--- a/bsp/hc32l136/Libraries/SConscript
+++ b/bsp/hc32l136/Libraries/SConscript
@@ -29,7 +29,7 @@ if GetDepend(['RT_USING_WDT']):
src += ['HC32L136_StdPeriph_Driver/src/wdt.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/GCC/startup_hc32l136.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/ARM/startup_hc32l136.s']
diff --git a/bsp/hc32l196/Libraries/SConscript b/bsp/hc32l196/Libraries/SConscript
index e89dc609be..ac60d10ce8 100644
--- a/bsp/hc32l196/Libraries/SConscript
+++ b/bsp/hc32l196/Libraries/SConscript
@@ -21,7 +21,7 @@ if GetDepend(['RT_USING_SERIAL']):
src += ['HC32L196_StdPeriph_Driver/src/hc32l196_uart.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/GCC/startup_hc32l19x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/ARM/startup_hc32l19x.s']
diff --git a/bsp/hk32/hk32f030c8-mini/board/SConscript b/bsp/hk32/hk32f030c8-mini/board/SConscript
index 62c5d1532d..d0dd1836b7 100644
--- a/bsp/hk32/hk32f030c8-mini/board/SConscript
+++ b/bsp/hk32/hk32f030c8-mini/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/msp']
startup_path_prefix = SDK_LIB
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/system_hk32f0xx.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/gcc/startup_hk32f030x4x6x8.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/ARM/startup_hk32f030x4x6x8.s']
diff --git a/bsp/imx6sx/cortex-a9/cpu/SConscript b/bsp/imx6sx/cortex-a9/cpu/SConscript
index d845dc486a..749ff47e1b 100644
--- a/bsp/imx6sx/cortex-a9/cpu/SConscript
+++ b/bsp/imx6sx/cortex-a9/cpu/SConscript
@@ -7,7 +7,7 @@ CPPPATH = [cwd]
if rtconfig.PLATFORM == 'iar':
src += Glob('*_iar.S')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src += Glob('*_gcc.S')
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('*_rvds.S')
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 = []
diff --git a/bsp/lm3s8962/Libraries/SConscript b/bsp/lm3s8962/Libraries/SConscript
index 100cf72b4a..e279d05130 100644
--- a/bsp/lm3s8962/Libraries/SConscript
+++ b/bsp/lm3s8962/Libraries/SConscript
@@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
SrcRemove(src, 'fpu.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/gcc/start_gcc.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S']
diff --git a/bsp/lm3s9b9x/Libraries/SConscript b/bsp/lm3s9b9x/Libraries/SConscript
index f55bd84efb..f4fd7f50c3 100644
--- a/bsp/lm3s9b9x/Libraries/SConscript
+++ b/bsp/lm3s9b9x/Libraries/SConscript
@@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
SrcRemove(src, 'fpu.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/gcc/start_gcc.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S']
diff --git a/bsp/lm4f232/Libraries/SConscript b/bsp/lm4f232/Libraries/SConscript
index ea5d8102a7..65db55f77c 100644
--- a/bsp/lm4f232/Libraries/SConscript
+++ b/bsp/lm4f232/Libraries/SConscript
@@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
SrcRemove(src, 'fpu.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/gcc/start_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S']
@@ -21,7 +21,7 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPPATH = [cwd]
CPPDEFINES = [rtconfig.PART_TYPE]
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
CPPDEFINES += ['gcc'];
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
diff --git a/bsp/lpc176x/CMSIS/SConscript b/bsp/lpc176x/CMSIS/SConscript
index 2908e197a3..06a2fa04b9 100644
--- a/bsp/lpc176x/CMSIS/SConscript
+++ b/bsp/lpc176x/CMSIS/SConscript
@@ -7,7 +7,7 @@ cwd = GetCurrentDir()
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
diff --git a/bsp/lpc178x/CMSIS/SConscript b/bsp/lpc178x/CMSIS/SConscript
index 9d12b5ade8..69866e8185 100644
--- a/bsp/lpc178x/CMSIS/SConscript
+++ b/bsp/lpc178x/CMSIS/SConscript
@@ -8,7 +8,7 @@ src = ['CM3/CoreSupport/core_cm3.c', 'CM3/DeviceSupport/NXP/LPC177x_8x/system_LP
CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
diff --git a/bsp/lpc408x/Libraries/Device/SConscript b/bsp/lpc408x/Libraries/Device/SConscript
index f2e567cce7..8ae85deb6a 100644
--- a/bsp/lpc408x/Libraries/Device/SConscript
+++ b/bsp/lpc408x/Libraries/Device/SConscript
@@ -11,7 +11,7 @@ CPPPATH = [cwd + '/NXP/LPC407x_8x_177x_8x/Include', cwd + '/../CMSIS/Include']
CPPDEFINES = ['CORE_M4']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s']
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']
diff --git a/bsp/lpc43xx/M0/SConstruct b/bsp/lpc43xx/M0/SConstruct
index 25291318dd..7e7f77dd88 100644
--- a/bsp/lpc43xx/M0/SConstruct
+++ b/bsp/lpc43xx/M0/SConstruct
@@ -26,7 +26,7 @@ Export('rtconfig')
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
import glob
# Remove the .o for M0 left on the drivers dir.
for i in glob.glob(GetCurrentDir() + '/../drivers/*.o'):
diff --git a/bsp/lpc43xx/M4/SConstruct b/bsp/lpc43xx/M4/SConstruct
index b83f0114f1..4365cff784 100644
--- a/bsp/lpc43xx/M4/SConstruct
+++ b/bsp/lpc43xx/M4/SConstruct
@@ -26,7 +26,7 @@ Export('rtconfig')
# prepare building environment
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
print('build M0 code first')
if sys.platform.startswith('linux'):
import glob
diff --git a/bsp/lpc5410x/Libraries/Device/SConscript b/bsp/lpc5410x/Libraries/Device/SConscript
index 56fd075178..ae9805c907 100644
--- a/bsp/lpc5410x/Libraries/Device/SConscript
+++ b/bsp/lpc5410x/Libraries/Device/SConscript
@@ -12,7 +12,7 @@ CPPDEFINES = ['CORE_M4']
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/gcc_startup_lpc5410x.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/keil_startup_lpc5410x.s']
diff --git a/bsp/lpc5410x/Libraries/lpc_chip/SConscript b/bsp/lpc5410x/Libraries/lpc_chip/SConscript
index 6b9cd35fd5..a86b71b6c7 100644
--- a/bsp/lpc5410x/Libraries/lpc_chip/SConscript
+++ b/bsp/lpc5410x/Libraries/lpc_chip/SConscript
@@ -61,7 +61,7 @@ chip_5410x/wwdt_5410x.c
#lpc_chip\chip_5410x\power_lib\lpcxpresso
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
LIBS = ['libpower']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/lpc54114-lite/Libraries/devices/LPC54114/SConscript b/bsp/lpc54114-lite/Libraries/devices/LPC54114/SConscript
index c12c562320..964eb63027 100644
--- a/bsp/lpc54114-lite/Libraries/devices/LPC54114/SConscript
+++ b/bsp/lpc54114-lite/Libraries/devices/LPC54114/SConscript
@@ -13,7 +13,7 @@ CPPDEFINES = []
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
objs = objs + SConscript(os.path.join('utilities', 'SConscript'))
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
objs = objs + SConscript(os.path.join('gcc', 'SConscript'))
CPPDEFINES += ['__USE_CMSIS']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/SConscript b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/SConscript
index 3b59a9726c..74df4f5c3b 100644
--- a/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/SConscript
+++ b/bsp/lpc54608-LPCXpresso/SDK_2.2_LPCXpresso54608/devices/LPC54608/SConscript
@@ -13,7 +13,7 @@ CPPDEFINES = []
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
objs = objs + SConscript(os.path.join('utilities', 'SConscript'))
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
objs = objs + SConscript(os.path.join('mcuxpresso', 'SConscript'))
CPPDEFINES += ['__USE_CMSIS']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/lpc55sxx/Libraries/LPC55S6X/SConscript b/bsp/lpc55sxx/Libraries/LPC55S6X/SConscript
index 140e3af64f..59b34b8039 100644
--- a/bsp/lpc55sxx/Libraries/LPC55S6X/SConscript
+++ b/bsp/lpc55sxx/Libraries/LPC55S6X/SConscript
@@ -7,7 +7,7 @@ src = Split('''
LPC55S6X/system_LPC55S69_cm33_core0.c
''')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['LPC55S6X/gcc/startup_LPC55S69_cm33_core0.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['LPC55S6X/arm/startup_LPC55S69_cm33_core0.s']
@@ -58,7 +58,7 @@ src += ['middleware/sdmmc/src/fsl_sdmmc_common.c']
src += ['middleware/sdmmc/port/sdif/rt_thread/fsl_sdmmc_event.c']
src += ['middleware/sdmmc/port/sdif/rt_thread/fsl_sdmmc_host.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['LPC55S6X/gcc/libpower_hardabi.a']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['LPC55S6X/arm/keil_lib_power_cm33_core0.lib']
diff --git a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript
index 256e8a5a0c..26c10c855f 100644
--- a/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/applications/SConscript
+++ b/bsp/lpc55sxx/Libraries/template/lpc55s6xxxx/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/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript
index 41ccd00018..2588714bbe 100644
--- a/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript
+++ b/bsp/lpc55sxx/lpc55s69_nxp_evk/applications/SConscript
@@ -6,7 +6,7 @@ src = Glob('main.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/lpc824/Libraries/SConscript b/bsp/lpc824/Libraries/SConscript
index 31c3ce5a01..13a0c5cdc4 100644
--- a/bsp/lpc824/Libraries/SConscript
+++ b/bsp/lpc824/Libraries/SConscript
@@ -11,7 +11,7 @@ src += Glob('common/board/*.c')
src += Glob('common/chip/*.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
print("not gcc startup file")
exit(0)
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/m16c62p/drivers/SConscript b/bsp/m16c62p/drivers/SConscript
index 65e7884cbd..0d9bb792c0 100644
--- a/bsp/m16c62p/drivers/SConscript
+++ b/bsp/m16c62p/drivers/SConscript
@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
src_c = Glob('*.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S']
elif rtconfig.CROSS_TOOL == 'iar':
src_asm = ['start_iar.asm', 'vectors_iar.asm', 'interrupts_iar.asm']
diff --git a/bsp/maxim/MAX32660_EVSYS/board/SConscript b/bsp/maxim/MAX32660_EVSYS/board/SConscript
index 88b9fd6563..f099d2fcac 100644
--- a/bsp/maxim/MAX32660_EVSYS/board/SConscript
+++ b/bsp/maxim/MAX32660_EVSYS/board/SConscript
@@ -15,7 +15,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/GCC/startup_max32660.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/ARM/startup_max32660.s']
diff --git a/bsp/microchip/samc21/bsp/SConscript b/bsp/microchip/samc21/bsp/SConscript
index c1e872bb18..10bc9ad0c1 100644
--- a/bsp/microchip/samc21/bsp/SConscript
+++ b/bsp/microchip/samc21/bsp/SConscript
@@ -31,7 +31,7 @@ src += [cwd + '/atmel_start.c']
src += [cwd + '/driver_init.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/samc21/gcc/system_samc21.c']
src += [cwd + '/samc21/gcc/gcc/startup_samc21.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/microchip/same54/bsp/SConscript b/bsp/microchip/same54/bsp/SConscript
index 64dd753729..e2e8067592 100644
--- a/bsp/microchip/same54/bsp/SConscript
+++ b/bsp/microchip/same54/bsp/SConscript
@@ -35,7 +35,7 @@ src += [cwd + '/driver_init.c']
src += [cwd + '/ethernet_phy_main.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/gcc/system_same54.c']
src += [cwd + '/gcc/gcc/startup_same54.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/microchip/same70/bsp/SConscript b/bsp/microchip/same70/bsp/SConscript
index f65a9b9b37..dc8d9d46e3 100644
--- a/bsp/microchip/same70/bsp/SConscript
+++ b/bsp/microchip/same70/bsp/SConscript
@@ -29,7 +29,7 @@ src += [cwd + '/driver_init.c']
src += [cwd + '/ethernet_phy_main.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/same70b/gcc/system_same70q21b.c']
src += [cwd + '/same70b/gcc/gcc/startup_same70q21b.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/microchip/saml10/bsp/SConscript b/bsp/microchip/saml10/bsp/SConscript
index 1879b3e156..33ebccce07 100644
--- a/bsp/microchip/saml10/bsp/SConscript
+++ b/bsp/microchip/saml10/bsp/SConscript
@@ -28,7 +28,7 @@ src += [cwd + '/atmel_start.c']
src += [cwd + '/driver_init.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/gcc/system_saml10e16a.c']
src += [cwd + '/gcc/gcc/startup_saml10e16a.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/mm32l07x/Libraries/SConscript b/bsp/mm32l07x/Libraries/SConscript
index 9720355244..586f3f45f6 100644
--- a/bsp/mm32l07x/Libraries/SConscript
+++ b/bsp/mm32l07x/Libraries/SConscript
@@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L0xx/Include', cwd + '/MM32L0xx/Sou
src += Glob('MM32L0xx/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
diff --git a/bsp/n32g452xx/n32g452xx-mini-system/board/SConscript b/bsp/n32g452xx/n32g452xx-mini-system/board/SConscript
index 5a7daeddaa..0f4d045002 100755
--- a/bsp/n32g452xx/n32g452xx-mini-system/board/SConscript
+++ b/bsp/n32g452xx/n32g452xx-mini-system/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/msp']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/N32_Std_Driver/CMSIS/device/startup/startup_n32g45x_gcc.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/N32_Std_Driver/CMSIS/device/startup/startup_n32g45x.s']
diff --git a/bsp/nuvoton/libraries/m031/Device/SConscript b/bsp/nuvoton/libraries/m031/Device/SConscript
index c6fdd57987..e1fa180868 100644
--- a/bsp/nuvoton/libraries/m031/Device/SConscript
+++ b/bsp/nuvoton/libraries/m031/Device/SConscript
@@ -11,7 +11,7 @@ Nuvoton/M031/Source/system_M031Series.c
""")
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M031/Source/ARM/startup_M031Series.s']
diff --git a/bsp/nuvoton/libraries/m031/StdDriver/SConscript b/bsp/nuvoton/libraries/m031/StdDriver/SConscript
index c24f15f472..b01b6766d9 100644
--- a/bsp/nuvoton/libraries/m031/StdDriver/SConscript
+++ b/bsp/nuvoton/libraries/m031/StdDriver/SConscript
@@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
libs += ['libstddriver_keil']
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
libs += ['libstddriver_keil4']
- elif rtconfig.PLATFORM == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'):
+ elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'):
libs += ['libstddriver_gcc']
elif os.path.isfile('./lib/libstddriver_iar.a'):
libs += ['libstddriver_iar']
diff --git a/bsp/nuvoton/libraries/m2354/Device/SConscript b/bsp/nuvoton/libraries/m2354/Device/SConscript
index a823d0a380..930e35b055 100644
--- a/bsp/nuvoton/libraries/m2354/Device/SConscript
+++ b/bsp/nuvoton/libraries/m2354/Device/SConscript
@@ -11,7 +11,7 @@ Nuvoton/M2354/Source/system_M2354.c
""")
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M2354/Source/ARM/startup_M2354.s']
diff --git a/bsp/nuvoton/libraries/m2354/StdDriver/SConscript b/bsp/nuvoton/libraries/m2354/StdDriver/SConscript
index c24f15f472..b01b6766d9 100644
--- a/bsp/nuvoton/libraries/m2354/StdDriver/SConscript
+++ b/bsp/nuvoton/libraries/m2354/StdDriver/SConscript
@@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
libs += ['libstddriver_keil']
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
libs += ['libstddriver_keil4']
- elif rtconfig.PLATFORM == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'):
+ elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'):
libs += ['libstddriver_gcc']
elif os.path.isfile('./lib/libstddriver_iar.a'):
libs += ['libstddriver_iar']
diff --git a/bsp/nuvoton/libraries/m480/Device/SConscript b/bsp/nuvoton/libraries/m480/Device/SConscript
index 42f37b3a87..dd276f9219 100644
--- a/bsp/nuvoton/libraries/m480/Device/SConscript
+++ b/bsp/nuvoton/libraries/m480/Device/SConscript
@@ -11,7 +11,7 @@ Nuvoton/M480/Source/system_M480.c
""")
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M480/Source/ARM/startup_M480.s']
diff --git a/bsp/nuvoton/libraries/m480/StdDriver/SConscript b/bsp/nuvoton/libraries/m480/StdDriver/SConscript
index c24f15f472..b01b6766d9 100644
--- a/bsp/nuvoton/libraries/m480/StdDriver/SConscript
+++ b/bsp/nuvoton/libraries/m480/StdDriver/SConscript
@@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
libs += ['libstddriver_keil']
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
libs += ['libstddriver_keil4']
- elif rtconfig.PLATFORM == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'):
+ elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./lib/libstddriver_gcc.a'):
libs += ['libstddriver_gcc']
elif os.path.isfile('./lib/libstddriver_iar.a'):
libs += ['libstddriver_iar']
diff --git a/bsp/nuvoton/libraries/n9h30/Driver/SConscript b/bsp/nuvoton/libraries/n9h30/Driver/SConscript
index f0af26837e..9b4fef5f2d 100644
--- a/bsp/nuvoton/libraries/n9h30/Driver/SConscript
+++ b/bsp/nuvoton/libraries/n9h30/Driver/SConscript
@@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
libs += ['libstddriver_keil4']
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
libs += ['libstddriver_keil']
- elif rtconfig.PLATFORM == 'gcc' and os.path.isfile('./Library/libstddriver_gcc.a'):
+ elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'):
libs += ['libstddriver_gcc']
if not libs:
diff --git a/bsp/nuvoton/libraries/nuc980/Driver/SConscript b/bsp/nuvoton/libraries/nuc980/Driver/SConscript
index f0af26837e..9b4fef5f2d 100644
--- a/bsp/nuvoton/libraries/nuc980/Driver/SConscript
+++ b/bsp/nuvoton/libraries/nuc980/Driver/SConscript
@@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
libs += ['libstddriver_keil4']
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
libs += ['libstddriver_keil']
- elif rtconfig.PLATFORM == 'gcc' and os.path.isfile('./Library/libstddriver_gcc.a'):
+ elif rtconfig.PLATFORM in ['gcc'] and os.path.isfile('./Library/libstddriver_gcc.a'):
libs += ['libstddriver_gcc']
if not libs:
diff --git a/bsp/qemu-vexpress-gemini/cpu/SConscript b/bsp/qemu-vexpress-gemini/cpu/SConscript
index d845dc486a..749ff47e1b 100644
--- a/bsp/qemu-vexpress-gemini/cpu/SConscript
+++ b/bsp/qemu-vexpress-gemini/cpu/SConscript
@@ -7,7 +7,7 @@ CPPPATH = [cwd]
if rtconfig.PLATFORM == 'iar':
src += Glob('*_iar.S')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src += Glob('*_gcc.S')
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('*_rvds.S')
diff --git a/bsp/renesas/libraries/bsp-template/SConscript b/bsp/renesas/libraries/bsp-template/SConscript
index 8c8b1c92c8..0ba7c23d3f 100644
--- a/bsp/renesas/libraries/bsp-template/SConscript
+++ b/bsp/renesas/libraries/bsp-template/SConscript
@@ -12,7 +12,7 @@ list = os.listdir(cwd)
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
CPPPATH = [cwd]
src = Glob('./src/*.c')
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/libraries/bsp-template/board/ports/SConscript b/bsp/renesas/libraries/bsp-template/board/ports/SConscript
index 41d6147b10..6df0a4f30f 100644
--- a/bsp/renesas/libraries/bsp-template/board/ports/SConscript
+++ b/bsp/renesas/libraries/bsp-template/board/ports/SConscript
@@ -12,7 +12,7 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
-if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
+if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CFLAGS += ' --c99'
diff --git a/bsp/renesas/libraries/bsp-template/ra/SConscript b/bsp/renesas/libraries/bsp-template/ra/SConscript
index fd53aae32f..93dd838d9e 100644
--- a/bsp/renesas/libraries/bsp-template/ra/SConscript
+++ b/bsp/renesas/libraries/bsp-template/ra/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
diff --git a/bsp/renesas/libraries/bsp-template/ra_cfg/SConscript b/bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
index b059da45f9..6cfaf3d933 100644
--- a/bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
+++ b/bsp/renesas/libraries/bsp-template/ra_cfg/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c')
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/libraries/bsp-template/ra_gen/SConscript b/bsp/renesas/libraries/bsp-template/ra_gen/SConscript
index 40ab0bdf61..b745cb60ac 100644
--- a/bsp/renesas/libraries/bsp-template/ra_gen/SConscript
+++ b/bsp/renesas/libraries/bsp-template/ra_gen/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c')
CPPPATH = [cwd, ]
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-cpk/SConscript b/bsp/renesas/ra6m4-cpk/SConscript
index 8c8b1c92c8..0ba7c23d3f 100644
--- a/bsp/renesas/ra6m4-cpk/SConscript
+++ b/bsp/renesas/ra6m4-cpk/SConscript
@@ -12,7 +12,7 @@ list = os.listdir(cwd)
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
CPPPATH = [cwd]
src = Glob('./src/*.c')
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-cpk/board/ports/SConscript b/bsp/renesas/ra6m4-cpk/board/ports/SConscript
index 41d6147b10..6df0a4f30f 100644
--- a/bsp/renesas/ra6m4-cpk/board/ports/SConscript
+++ b/bsp/renesas/ra6m4-cpk/board/ports/SConscript
@@ -12,7 +12,7 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
-if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
+if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CFLAGS += ' --c99'
diff --git a/bsp/renesas/ra6m4-cpk/ra/SConscript b/bsp/renesas/ra6m4-cpk/ra/SConscript
index fd53aae32f..93dd838d9e 100644
--- a/bsp/renesas/ra6m4-cpk/ra/SConscript
+++ b/bsp/renesas/ra6m4-cpk/ra/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
diff --git a/bsp/renesas/ra6m4-cpk/ra_cfg/SConscript b/bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
index 21f29eb460..93f3278355 100644
--- a/bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
+++ b/bsp/renesas/ra6m4-cpk/ra_cfg/SConscript
@@ -11,7 +11,7 @@ if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc':
+elif rtconfig.PLATFORM in ['gcc']:
src = Glob('*.c')
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-cpk/ra_gen/SConscript b/bsp/renesas/ra6m4-cpk/ra_gen/SConscript
index 5fb4a860df..c7e961c75e 100644
--- a/bsp/renesas/ra6m4-cpk/ra_gen/SConscript
+++ b/bsp/renesas/ra6m4-cpk/ra_gen/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc' :
+elif rtconfig.PLATFORM in ['gcc'] :
src = Glob('*.c')
CPPPATH = [cwd, ]
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-iot/SConscript b/bsp/renesas/ra6m4-iot/SConscript
index 56916d12c6..370c0b0280 100644
--- a/bsp/renesas/ra6m4-iot/SConscript
+++ b/bsp/renesas/ra6m4-iot/SConscript
@@ -12,7 +12,7 @@ list = os.listdir(cwd)
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc' :
+elif rtconfig.PLATFORM in ['gcc'] :
CPPPATH = [cwd]
src = Glob('./src/*.c')
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-iot/board/ports/SConscript b/bsp/renesas/ra6m4-iot/board/ports/SConscript
index 41d6147b10..6df0a4f30f 100644
--- a/bsp/renesas/ra6m4-iot/board/ports/SConscript
+++ b/bsp/renesas/ra6m4-iot/board/ports/SConscript
@@ -12,7 +12,7 @@ if GetDepend(['BSP_USING_RW007']):
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
-if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
+if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CFLAGS += ' --c99'
diff --git a/bsp/renesas/ra6m4-iot/ra/SConscript b/bsp/renesas/ra6m4-iot/ra/SConscript
index 6083836358..7c50369d5a 100644
--- a/bsp/renesas/ra6m4-iot/ra/SConscript
+++ b/bsp/renesas/ra6m4-iot/ra/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc' :
+elif rtconfig.PLATFORM in ['gcc'] :
src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c']
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
diff --git a/bsp/renesas/ra6m4-iot/ra_cfg/SConscript b/bsp/renesas/ra6m4-iot/ra_cfg/SConscript
index 3f03930232..1386e09ed2 100644
--- a/bsp/renesas/ra6m4-iot/ra_cfg/SConscript
+++ b/bsp/renesas/ra6m4-iot/ra_cfg/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc' :
+elif rtconfig.PLATFORM in ['gcc'] :
src = Glob('*.c')
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/renesas/ra6m4-iot/ra_gen/SConscript b/bsp/renesas/ra6m4-iot/ra_gen/SConscript
index 5fb4a860df..c7e961c75e 100644
--- a/bsp/renesas/ra6m4-iot/ra_gen/SConscript
+++ b/bsp/renesas/ra6m4-iot/ra_gen/SConscript
@@ -10,7 +10,7 @@ CPPPATH = []
if rtconfig.PLATFORM == 'iar':
print("\nThe current project does not support iar build\n")
Return('group')
-elif rtconfig.PLATFORM == 'gcc' :
+elif rtconfig.PLATFORM in ['gcc'] :
src = Glob('*.c')
CPPPATH = [cwd, ]
elif rtconfig.PLATFORM == 'armclang':
diff --git a/bsp/samd21/sam_d2x_asflib/SConscript b/bsp/samd21/sam_d2x_asflib/SConscript
index 079178a9b2..ac81dff1a9 100644
--- a/bsp/samd21/sam_d2x_asflib/SConscript
+++ b/bsp/samd21/sam_d2x_asflib/SConscript
@@ -31,7 +31,7 @@ if rtconfig.DEVICE_SERIES == 'SAMD20':
path += [cwd + '/sam0/', cwd + '/sam0/utils/cmsis/samd20/include/']
path += [cwd + '/sam0/utils/cmsis/samd20/source/']
src += Glob('./sam0/utils/cmsis/samd20/source/*.c')
- if rtconfig.PLATFORM == 'gcc':
+ if rtconfig.PLATFORM in ['gcc']:
src += Glob('./sam0/utils/cmsis/samd20/source/gcc/*.s')
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('./sam0/utils/cmsis/samd20/source/arm/*.s')
@@ -40,7 +40,7 @@ elif rtconfig.DEVICE_SERIES == 'SAMD21':
path += [cwd + '/sam0/utils/cmsis/samd21/include/']
path += [cwd + '/sam0/utils/cmsis/samd21/source/']
src += Glob('./sam0/utils/cmsis/samd21/source/*.c')
- if rtconfig.PLATFORM == 'gcc':
+ if rtconfig.PLATFORM in ['gcc']:
src += Glob('./sam0/utils/cmsis/samd21/source/gcc/*.s')
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('./sam0/utils/cmsis/samd21/source/arm/*.s')
diff --git a/bsp/smartfusion2/CMSIS/SConscript b/bsp/smartfusion2/CMSIS/SConscript
index 157d672a0b..0d75bbaf8a 100644
--- a/bsp/smartfusion2/CMSIS/SConscript
+++ b/bsp/smartfusion2/CMSIS/SConscript
@@ -4,7 +4,7 @@ import rtconfig
cwd = GetCurrentDir()
src = Glob('*.c')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup_gcc/startup_m2sxxx.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
diff --git a/bsp/stm32/libraries/templates/stm32f0xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
index de50dc8411..50fcde0e20 100644
--- a/bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f0xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f091xc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/arm/startup_stm32f091xc.s']
diff --git a/bsp/stm32/libraries/templates/stm32f10x/board/SConscript b/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
index e3f1843360..6447a4f5f1 100644
--- a/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f10x/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
diff --git a/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript
index 4ee71bf9dc..0e53faa663 100644
--- a/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f2xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc/startup_stm32f207xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/arm/startup_stm32f207xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript
index cbbf9b91de..ca933f3454 100644
--- a/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f3xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/gcc/startup_stm32f302x8.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/arm/startup_stm32f302x8.s']
diff --git a/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
index fd34090efc..d478107655 100644
--- a/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f4xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript b/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
index c543f16503..a4779a0031 100644
--- a/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32f7xx/board/SConscript
@@ -14,7 +14,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32h7xx/board/SConscript b/bsp/stm32/libraries/templates/stm32h7xx/board/SConscript
index ab03805d74..13c724edf1 100644
--- a/bsp/stm32/libraries/templates/stm32h7xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32h7xx/board/SConscript
@@ -14,7 +14,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript
index f014eadec6..61c7bee0dc 100644
--- a/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32l1xx/board/SConscript
@@ -21,7 +21,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/gcc/startup_stm32L151xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L1xx_HAL/CMSIS/Device/ST/STM32L1xx/Source/Templates/arm/startup_stm32L151xb.s']
diff --git a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
index d042d99c95..e1554e6a03 100644
--- a/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32l4xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript b/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript
index 46b55262c1..dc08f2c36a 100644
--- a/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32l5xx/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/gcc/startup_stm32l552xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/arm/startup_stm32l552xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32mp1xx/board/SConscript b/bsp/stm32/libraries/templates/stm32mp1xx/board/SConscript
index 0e748d6d56..01d19e3442 100644
--- a/bsp/stm32/libraries/templates/stm32mp1xx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32mp1xx/board/SConscript
@@ -33,7 +33,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/gcc/startup_stm32mp15xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/arm/startup_stm32mp15xx.s']
diff --git a/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript b/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript
index 69fc966ade..65341cea42 100644
--- a/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript
+++ b/bsp/stm32/libraries/templates/stm32wbxx/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/arm/startup_stm32wb55xx_cm4.s']
diff --git a/bsp/stm32/stm32f072-st-nucleo/board/SConscript b/bsp/stm32/stm32f072-st-nucleo/board/SConscript
index 0943a47d16..5ce0f34884 100644
--- a/bsp/stm32/stm32f072-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f072-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f072xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/arm/startup_stm32f072xb.s']
diff --git a/bsp/stm32/stm32f091-st-nucleo/board/SConscript b/bsp/stm32/stm32f091-st-nucleo/board/SConscript
index dc2ee41f5e..d97259d6b2 100644
--- a/bsp/stm32/stm32f091-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f091-st-nucleo/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/gcc/startup_stm32f091xc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F0xx_HAL/CMSIS/Device/ST/STM32F0xx/Source/Templates/arm/startup_stm32f091xc.s']
diff --git a/bsp/stm32/stm32f103-atk-nano/board/SConscript b/bsp/stm32/stm32f103-atk-nano/board/SConscript
index b9247cacf5..64ddc724b1 100644
--- a/bsp/stm32/stm32f103-atk-nano/board/SConscript
+++ b/bsp/stm32/stm32f103-atk-nano/board/SConscript
@@ -21,7 +21,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
diff --git a/bsp/stm32/stm32f103-atk-warshipv3/board/SConscript b/bsp/stm32/stm32f103-atk-warshipv3/board/SConscript
index 573fcf7101..2fb44c4624 100644
--- a/bsp/stm32/stm32f103-atk-warshipv3/board/SConscript
+++ b/bsp/stm32/stm32f103-atk-warshipv3/board/SConscript
@@ -24,7 +24,7 @@ path += [cwd + '/ports/include']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f103-blue-pill/board/SConscript b/bsp/stm32/stm32f103-blue-pill/board/SConscript
index e3f1843360..6447a4f5f1 100644
--- a/bsp/stm32/stm32f103-blue-pill/board/SConscript
+++ b/bsp/stm32/stm32f103-blue-pill/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
diff --git a/bsp/stm32/stm32f103-dofly-M3S/board/SConscript b/bsp/stm32/stm32f103-dofly-M3S/board/SConscript
index dcfb75afb2..98023a1479 100644
--- a/bsp/stm32/stm32f103-dofly-M3S/board/SConscript
+++ b/bsp/stm32/stm32f103-dofly-M3S/board/SConscript
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f103-dofly-lyc8/board/SConscript b/bsp/stm32/stm32f103-dofly-lyc8/board/SConscript
index e3f1843360..6447a4f5f1 100644
--- a/bsp/stm32/stm32f103-dofly-lyc8/board/SConscript
+++ b/bsp/stm32/stm32f103-dofly-lyc8/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
diff --git a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
index 42f51083a0..d20f88b2dd 100644
--- a/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
+++ b/bsp/stm32/stm32f103-fire-arbitrary/board/SConscript
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f103-gizwits-gokitv21/board/SConscript b/bsp/stm32/stm32f103-gizwits-gokitv21/board/SConscript
index e3f1843360..6447a4f5f1 100644
--- a/bsp/stm32/stm32f103-gizwits-gokitv21/board/SConscript
+++ b/bsp/stm32/stm32f103-gizwits-gokitv21/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xb.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xb.s']
diff --git a/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript b/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript
index 12d5420d44..8a600659fa 100644
--- a/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript
+++ b/bsp/stm32/stm32f103-hw100k-ibox/board/SConscript
@@ -25,7 +25,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript b/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript
index df4c27c291..680947b480 100644
--- a/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript
+++ b/bsp/stm32/stm32f103-onenet-nbiot/board/SConscript
@@ -20,7 +20,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f103-yf-ufun/board/SConscript b/bsp/stm32/stm32f103-yf-ufun/board/SConscript
index 6bf641022e..f22d467938 100644
--- a/bsp/stm32/stm32f103-yf-ufun/board/SConscript
+++ b/bsp/stm32/stm32f103-yf-ufun/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f103xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f103xe.s']
diff --git a/bsp/stm32/stm32f107-uc-eval/board/SConscript b/bsp/stm32/stm32f107-uc-eval/board/SConscript
index b2eb3d2681..0e43f85265 100644
--- a/bsp/stm32/stm32f107-uc-eval/board/SConscript
+++ b/bsp/stm32/stm32f107-uc-eval/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/gcc/startup_stm32f107xc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F1xx_HAL/CMSIS/Device/ST/STM32F1xx/Source/Templates/arm/startup_stm32f107xc.s']
diff --git a/bsp/stm32/stm32f207-st-nucleo/board/SConscript b/bsp/stm32/stm32f207-st-nucleo/board/SConscript
index 6e2bd14e56..2f5eb162ca 100644
--- a/bsp/stm32/stm32f207-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f207-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Core/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/gcc/startup_stm32f207xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F2xx_HAL/CMSIS/Device/ST/STM32F2xx/Source/Templates/arm/startup_stm32f207xx.s']
diff --git a/bsp/stm32/stm32f302-st-nucleo/board/SConscript b/bsp/stm32/stm32f302-st-nucleo/board/SConscript
index cbbf9b91de..ca933f3454 100644
--- a/bsp/stm32/stm32f302-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f302-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/gcc/startup_stm32f302x8.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F3xx_HAL/CMSIS/Device/ST/STM32F3xx/Source/Templates/arm/startup_stm32f302x8.s']
diff --git a/bsp/stm32/stm32f401-st-nucleo/board/SConscript b/bsp/stm32/stm32f401-st-nucleo/board/SConscript
index b618109be6..723afd6874 100644
--- a/bsp/stm32/stm32f401-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f401-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f401xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f401xe.s']
diff --git a/bsp/stm32/stm32f405-smdz-breadfruit/board/SConscript b/bsp/stm32/stm32f405-smdz-breadfruit/board/SConscript
index 8cf2e2973e..b9585d1eac 100644
--- a/bsp/stm32/stm32f405-smdz-breadfruit/board/SConscript
+++ b/bsp/stm32/stm32f405-smdz-breadfruit/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f405xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f405xx.s']
diff --git a/bsp/stm32/stm32f407-armfly-v5/board/SConscript b/bsp/stm32/stm32f407-armfly-v5/board/SConscript
index 561234a47a..d7800961a2 100644
--- a/bsp/stm32/stm32f407-armfly-v5/board/SConscript
+++ b/bsp/stm32/stm32f407-armfly-v5/board/SConscript
@@ -24,7 +24,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
diff --git a/bsp/stm32/stm32f407-atk-explorer/board/SConscript b/bsp/stm32/stm32f407-atk-explorer/board/SConscript
index 03bf0e6802..1b8bed849c 100644
--- a/bsp/stm32/stm32f407-atk-explorer/board/SConscript
+++ b/bsp/stm32/stm32f407-atk-explorer/board/SConscript
@@ -38,7 +38,7 @@ if GetDepend(['BSP_USING_TOUCH']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
diff --git a/bsp/stm32/stm32f407-robomaster-c/board/SConscript b/bsp/stm32/stm32f407-robomaster-c/board/SConscript
index fd34090efc..d478107655 100644
--- a/bsp/stm32/stm32f407-robomaster-c/board/SConscript
+++ b/bsp/stm32/stm32f407-robomaster-c/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
diff --git a/bsp/stm32/stm32f407-st-discovery/board/SConscript b/bsp/stm32/stm32f407-st-discovery/board/SConscript
index 8fd552cdad..0ee01f2b54 100644
--- a/bsp/stm32/stm32f407-st-discovery/board/SConscript
+++ b/bsp/stm32/stm32f407-st-discovery/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f407xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f407xx.s']
diff --git a/bsp/stm32/stm32f410-st-nucleo/board/SConscript b/bsp/stm32/stm32f410-st-nucleo/board/SConscript
index 5eb2eff4bc..44f118605c 100644
--- a/bsp/stm32/stm32f410-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f410-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f410rx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f410rx.s']
diff --git a/bsp/stm32/stm32f411-atk-nano/board/SConscript b/bsp/stm32/stm32f411-atk-nano/board/SConscript
index 3669458f0d..4b44a0dae4 100644
--- a/bsp/stm32/stm32f411-atk-nano/board/SConscript
+++ b/bsp/stm32/stm32f411-atk-nano/board/SConscript
@@ -21,7 +21,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f411xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f411xe.s']
diff --git a/bsp/stm32/stm32f411-st-nucleo/board/SConscript b/bsp/stm32/stm32f411-st-nucleo/board/SConscript
index d79c31fd8d..92041cdef1 100644
--- a/bsp/stm32/stm32f411-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f411-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f411xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f411xe.s']
diff --git a/bsp/stm32/stm32f411-weact-MiniF4/board/SConscript b/bsp/stm32/stm32f411-weact-MiniF4/board/SConscript
index b9c207959e..8864f34b50 100644
--- a/bsp/stm32/stm32f411-weact-MiniF4/board/SConscript
+++ b/bsp/stm32/stm32f411-weact-MiniF4/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f411xe.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f411xe.s']
diff --git a/bsp/stm32/stm32f412-st-nucleo/board/SConscript b/bsp/stm32/stm32f412-st-nucleo/board/SConscript
index 75a677d35a..8f2c1a39cc 100644
--- a/bsp/stm32/stm32f412-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f412-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f412zx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f412zx.s']
diff --git a/bsp/stm32/stm32f413-st-nucleo/board/SConscript b/bsp/stm32/stm32f413-st-nucleo/board/SConscript
index 5c964e020e..3703f61373 100644
--- a/bsp/stm32/stm32f413-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f413-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f413xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f413xx.s']
diff --git a/bsp/stm32/stm32f427-robomaster-a/board/SConscript b/bsp/stm32/stm32f427-robomaster-a/board/SConscript
index 7443021c5e..1236fc9746 100644
--- a/bsp/stm32/stm32f427-robomaster-a/board/SConscript
+++ b/bsp/stm32/stm32f427-robomaster-a/board/SConscript
@@ -21,7 +21,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f427xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f427xx.s']
diff --git a/bsp/stm32/stm32f429-armfly-v6/board/SConscript b/bsp/stm32/stm32f429-armfly-v6/board/SConscript
index 7ccc2fb166..7b50920a19 100644
--- a/bsp/stm32/stm32f429-armfly-v6/board/SConscript
+++ b/bsp/stm32/stm32f429-armfly-v6/board/SConscript
@@ -30,7 +30,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
diff --git a/bsp/stm32/stm32f429-atk-apollo/board/SConscript b/bsp/stm32/stm32f429-atk-apollo/board/SConscript
index 67f7b85535..c1c2be37fe 100644
--- a/bsp/stm32/stm32f429-atk-apollo/board/SConscript
+++ b/bsp/stm32/stm32f429-atk-apollo/board/SConscript
@@ -37,7 +37,7 @@ if GetDepend(['BSP_USING_AUDIO']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
diff --git a/bsp/stm32/stm32f429-fire-challenger/board/SConscript b/bsp/stm32/stm32f429-fire-challenger/board/SConscript
index cac1d90e57..ada28d7c1e 100644
--- a/bsp/stm32/stm32f429-fire-challenger/board/SConscript
+++ b/bsp/stm32/stm32f429-fire-challenger/board/SConscript
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
diff --git a/bsp/stm32/stm32f429-st-disco/board/SConscript b/bsp/stm32/stm32f429-st-disco/board/SConscript
index a6bf311a2b..f4baeb16c9 100644
--- a/bsp/stm32/stm32f429-st-disco/board/SConscript
+++ b/bsp/stm32/stm32f429-st-disco/board/SConscript
@@ -36,7 +36,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f429xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f429xx.s']
diff --git a/bsp/stm32/stm32f446-st-nucleo/board/SConscript b/bsp/stm32/stm32f446-st-nucleo/board/SConscript
index ce689b5e68..8c19775a2e 100644
--- a/bsp/stm32/stm32f446-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f446-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f446xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f446xx.s']
diff --git a/bsp/stm32/stm32f469-st-disco/board/SConscript b/bsp/stm32/stm32f469-st-disco/board/SConscript
index 03683a73e1..3b48a56d73 100644
--- a/bsp/stm32/stm32f469-st-disco/board/SConscript
+++ b/bsp/stm32/stm32f469-st-disco/board/SConscript
@@ -30,7 +30,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/gcc/startup_stm32f469xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F4xx_HAL/CMSIS/Device/ST/STM32F4xx/Source/Templates/arm/startup_stm32f469xx.s']
diff --git a/bsp/stm32/stm32f746-st-disco/board/SConscript b/bsp/stm32/stm32f746-st-disco/board/SConscript
index f917aa4c8b..e940a2ad37 100644
--- a/bsp/stm32/stm32f746-st-disco/board/SConscript
+++ b/bsp/stm32/stm32f746-st-disco/board/SConscript
@@ -24,7 +24,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f746xx.s']
diff --git a/bsp/stm32/stm32f746-st-nucleo/board/SConscript b/bsp/stm32/stm32f746-st-nucleo/board/SConscript
index 64027e4651..e232e885c6 100644
--- a/bsp/stm32/stm32f746-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f746-st-nucleo/board/SConscript
@@ -19,7 +19,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f746xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f746xx.s']
diff --git a/bsp/stm32/stm32f767-atk-apollo/board/SConscript b/bsp/stm32/stm32f767-atk-apollo/board/SConscript
index 6260edad14..4b648d8972 100644
--- a/bsp/stm32/stm32f767-atk-apollo/board/SConscript
+++ b/bsp/stm32/stm32f767-atk-apollo/board/SConscript
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
diff --git a/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript b/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript
index 6260edad14..4b648d8972 100644
--- a/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript
+++ b/bsp/stm32/stm32f767-fire-challenger-v1/board/SConscript
@@ -27,7 +27,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
diff --git a/bsp/stm32/stm32f767-st-nucleo/board/SConscript b/bsp/stm32/stm32f767-st-nucleo/board/SConscript
index affb7c880b..2d88ec6733 100644
--- a/bsp/stm32/stm32f767-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32f767-st-nucleo/board/SConscript
@@ -19,7 +19,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
diff --git a/bsp/stm32/stm32f769-st-disco/board/SConscript b/bsp/stm32/stm32f769-st-disco/board/SConscript
index 416150abae..ad30194645 100644
--- a/bsp/stm32/stm32f769-st-disco/board/SConscript
+++ b/bsp/stm32/stm32f769-st-disco/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/gcc/startup_stm32f767xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32F7xx_HAL/CMSIS/Device/ST/STM32F7xx/Source/Templates/arm/startup_stm32f767xx.s']
diff --git a/bsp/stm32/stm32g070-st-nucleo/board/SConscript b/bsp/stm32/stm32g070-st-nucleo/board/SConscript
index acbd7e22f9..e8295f989c 100644
--- a/bsp/stm32/stm32g070-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32g070-st-nucleo/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32G0xx_HAL/CMSIS/Device/ST/STM32G0xx/Source/Templates/gcc/startup_stm32g070xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32G0xx_HAL/CMSIS/Device/ST/STM32G0xx/Source/Templates/arm/startup_stm32g070xx.s']
diff --git a/bsp/stm32/stm32g071-st-nucleo/board/SConscript b/bsp/stm32/stm32g071-st-nucleo/board/SConscript
index cbf0d13e66..ffeb9fb5a1 100644
--- a/bsp/stm32/stm32g071-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32g071-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32G0xx_HAL/CMSIS/Device/ST/STM32G0xx/Source/Templates/gcc/startup_stm32g071xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32G0xx_HAL/CMSIS/Device/ST/STM32G0xx/Source/Templates/arm/startup_stm32g071xx.s']
diff --git a/bsp/stm32/stm32g431-st-nucleo/board/SConscript b/bsp/stm32/stm32g431-st-nucleo/board/SConscript
index bd65916cdb..9ea8d79f58 100644
--- a/bsp/stm32/stm32g431-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32g431-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32G4xx_HAL/CMSIS/Device/ST/STM32G4xx/Source/Templates/gcc/startup_stm32g431xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32G4xx_HAL/CMSIS/Device/ST/STM32G4xx/Source/Templates/arm/startup_stm32g431xx.s']
diff --git a/bsp/stm32/stm32g474-st-nucleo/board/SConscript b/bsp/stm32/stm32g474-st-nucleo/board/SConscript
index 95ed629191..8e779f0e93 100644
--- a/bsp/stm32/stm32g474-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32g474-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32G4xx_HAL/CMSIS/Device/ST/STM32G4xx/Source/Templates/gcc/startup_stm32g474xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32G4xx_HAL/CMSIS/Device/ST/STM32G4xx/Source/Templates/arm/startup_stm32g474xx.s']
diff --git a/bsp/stm32/stm32h743-armfly-v7/board/SConscript b/bsp/stm32/stm32h743-armfly-v7/board/SConscript
index ab03805d74..13c724edf1 100644
--- a/bsp/stm32/stm32h743-armfly-v7/board/SConscript
+++ b/bsp/stm32/stm32h743-armfly-v7/board/SConscript
@@ -14,7 +14,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
diff --git a/bsp/stm32/stm32h743-atk-apollo/board/SConscript b/bsp/stm32/stm32h743-atk-apollo/board/SConscript
index 5a278d4f84..d011929fcd 100644
--- a/bsp/stm32/stm32h743-atk-apollo/board/SConscript
+++ b/bsp/stm32/stm32h743-atk-apollo/board/SConscript
@@ -28,7 +28,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
diff --git a/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript b/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript
index 5269d23d87..b60f3a32f9 100644
--- a/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript
+++ b/bsp/stm32/stm32h743-openmv-h7plus/board/SConscript
@@ -26,7 +26,7 @@ if GetDepend(['BSP_USING_OV5640']):
if GetDepend(['BSP_USING_DCMI']):
src += ['ports/drv_dcmi.c']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
diff --git a/bsp/stm32/stm32h743-st-nucleo/board/SConscript b/bsp/stm32/stm32h743-st-nucleo/board/SConscript
index ab03805d74..13c724edf1 100644
--- a/bsp/stm32/stm32h743-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32h743-st-nucleo/board/SConscript
@@ -14,7 +14,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h743xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h743xx.s']
diff --git a/bsp/stm32/stm32h747-st-discovery/board/SConscript b/bsp/stm32/stm32h747-st-discovery/board/SConscript
index fa379359d2..8d3a51a0b8 100644
--- a/bsp/stm32/stm32h747-st-discovery/board/SConscript
+++ b/bsp/stm32/stm32h747-st-discovery/board/SConscript
@@ -14,7 +14,7 @@ path += [cwd + '/CubeMX_Config/CM7/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h747xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h747xx.s']
diff --git a/bsp/stm32/stm32h750-armfly-h7-tool/board/SConscript b/bsp/stm32/stm32h750-armfly-h7-tool/board/SConscript
index 6b21d2e788..61f65bba02 100644
--- a/bsp/stm32/stm32h750-armfly-h7-tool/board/SConscript
+++ b/bsp/stm32/stm32h750-armfly-h7-tool/board/SConscript
@@ -16,7 +16,7 @@ if GetDepend('BSP_USING_SPI_LCD'):
path = [cwd]
path += [cwd + '/CubeMX_Config/Inc']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/../../libraries/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
diff --git a/bsp/stm32/stm32h750-artpi/board/SConscript b/bsp/stm32/stm32h750-artpi/board/SConscript
index baea8291cc..66bc6359a7 100644
--- a/bsp/stm32/stm32h750-artpi/board/SConscript
+++ b/bsp/stm32/stm32h750-artpi/board/SConscript
@@ -47,7 +47,7 @@ path += [cwd + '/port']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/gcc/startup_stm32h750xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32H7xx_HAL/CMSIS/Device/ST/STM32H7xx/Source/Templates/arm/startup_stm32h750xx.s']
diff --git a/bsp/stm32/stm32h750-artpi/board/port/wlan_wiced_lib/SConscript b/bsp/stm32/stm32h750-artpi/board/port/wlan_wiced_lib/SConscript
index 54538df77b..4dfd6a5c33 100644
--- a/bsp/stm32/stm32h750-artpi/board/port/wlan_wiced_lib/SConscript
+++ b/bsp/stm32/stm32h750-artpi/board/port/wlan_wiced_lib/SConscript
@@ -8,7 +8,7 @@ LIBPATH = []
src = []
LIBPATH = [cwd]
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
LIBS += ['wifi_6212_armcm7_2.1.2_gcc']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
LIBS += ['libwifi_6212_armcm7_2.1.2_armcc']
diff --git a/bsp/stm32/stm32l010-st-nucleo/board/SConscript b/bsp/stm32/stm32l010-st-nucleo/board/SConscript
index dd7a705f89..67149358a9 100644
--- a/bsp/stm32/stm32l010-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l010-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L0xx_HAL/CMSIS/Device/ST/STM32L0xx/Source/Templates/gcc/startup_stm32l053xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L0xx_HAL/CMSIS/Device/ST/STM32L0xx/Source/Templates/arm/startup_stm32l053xx.s']
diff --git a/bsp/stm32/stm32l053-st-nucleo/board/SConscript b/bsp/stm32/stm32l053-st-nucleo/board/SConscript
index dd7a705f89..67149358a9 100644
--- a/bsp/stm32/stm32l053-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l053-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L0xx_HAL/CMSIS/Device/ST/STM32L0xx/Source/Templates/gcc/startup_stm32l053xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L0xx_HAL/CMSIS/Device/ST/STM32L0xx/Source/Templates/arm/startup_stm32l053xx.s']
diff --git a/bsp/stm32/stm32l412-st-nucleo/board/SConscript b/bsp/stm32/stm32l412-st-nucleo/board/SConscript
index b64be60ee3..5dadc39b42 100644
--- a/bsp/stm32/stm32l412-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l412-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l412xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l412xx.s']
diff --git a/bsp/stm32/stm32l431-BearPi/board/SConscript b/bsp/stm32/stm32l431-BearPi/board/SConscript
index fd0771718d..2f0bcd4de2 100644
--- a/bsp/stm32/stm32l431-BearPi/board/SConscript
+++ b/bsp/stm32/stm32l431-BearPi/board/SConscript
@@ -20,7 +20,7 @@ path += [cwd + '/CubeMX_Config/Inc']
path += [cwd + '/ports/lcd']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l431xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l431xx.s']
diff --git a/bsp/stm32/stm32l432-st-nucleo/board/SConscript b/bsp/stm32/stm32l432-st-nucleo/board/SConscript
index 2718c02f3e..83a54e055e 100644
--- a/bsp/stm32/stm32l432-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l432-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l432xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l432xx.s']
diff --git a/bsp/stm32/stm32l433-ali-startkit/board/SConscript b/bsp/stm32/stm32l433-ali-startkit/board/SConscript
index 92859a3b7c..7561b89cbb 100644
--- a/bsp/stm32/stm32l433-ali-startkit/board/SConscript
+++ b/bsp/stm32/stm32l433-ali-startkit/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Core/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l433xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l433xx.s']
diff --git a/bsp/stm32/stm32l433-st-nucleo/board/SConscript b/bsp/stm32/stm32l433-st-nucleo/board/SConscript
index a027978bdd..4014e1863c 100644
--- a/bsp/stm32/stm32l433-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l433-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l433xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l433xx.s']
diff --git a/bsp/stm32/stm32l452-st-nucleo/board/SConscript b/bsp/stm32/stm32l452-st-nucleo/board/SConscript
index d35327b32f..527a5d0c55 100644
--- a/bsp/stm32/stm32l452-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l452-st-nucleo/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l452xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l452xx.s']
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/SConscript
index 085130c434..854e4ee146 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/SConscript
+++ b/bsp/stm32/stm32l475-atk-pandora/board/SConscript
@@ -42,7 +42,7 @@ if GetDepend(['BSP_USING_AUDIO']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s']
diff --git a/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript b/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
index 3bb10e094d..3e6b2995f2 100644
--- a/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
+++ b/bsp/stm32/stm32l475-atk-pandora/board/ports/fal/SConscript
@@ -10,7 +10,7 @@ src += Glob('*.c')
CPPPATH = [cwd]
LOCAL_CFLAGS = ''
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
LOCAL_CFLAGS += ' -std=c99'
elif rtconfig.PLATFORM == 'armcc':
LOCAL_CFLAGS += ' --c99'
diff --git a/bsp/stm32/stm32l475-st-discovery/board/SConscript b/bsp/stm32/stm32l475-st-discovery/board/SConscript
index 1f828dfff4..fff6274835 100644
--- a/bsp/stm32/stm32l475-st-discovery/board/SConscript
+++ b/bsp/stm32/stm32l475-st-discovery/board/SConscript
@@ -23,7 +23,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l475xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l475xx.s']
diff --git a/bsp/stm32/stm32l476-st-nucleo/board/SConscript b/bsp/stm32/stm32l476-st-nucleo/board/SConscript
index 8739a795f8..d48a421b32 100644
--- a/bsp/stm32/stm32l476-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l476-st-nucleo/board/SConscript
@@ -24,7 +24,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l476xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l476xx.s']
diff --git a/bsp/stm32/stm32l496-ali-developer/board/SConscript b/bsp/stm32/stm32l496-ali-developer/board/SConscript
index fafa1c179a..9d97bcc920 100644
--- a/bsp/stm32/stm32l496-ali-developer/board/SConscript
+++ b/bsp/stm32/stm32l496-ali-developer/board/SConscript
@@ -24,7 +24,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l496xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l496xx.s']
diff --git a/bsp/stm32/stm32l496-st-nucleo/board/SConscript b/bsp/stm32/stm32l496-st-nucleo/board/SConscript
index b805d48a54..cef1390bb6 100644
--- a/bsp/stm32/stm32l496-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l496-st-nucleo/board/SConscript
@@ -40,7 +40,7 @@ if GetDepend(['BSP_USING_AUDIO']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l496xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l496xx.s']
diff --git a/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript b/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript
index f5db70f0cc..e117729328 100644
--- a/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l4r5-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l4r5xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l4r5xx.s']
diff --git a/bsp/stm32/stm32l4r9-st-eval/board/SConscript b/bsp/stm32/stm32l4r9-st-eval/board/SConscript
index c5ca6699b4..dcfe02de57 100644
--- a/bsp/stm32/stm32l4r9-st-eval/board/SConscript
+++ b/bsp/stm32/stm32l4r9-st-eval/board/SConscript
@@ -28,7 +28,7 @@ path += [cwd + '/ports/include']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l4r9xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l4r9xx.s']
diff --git a/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript b/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript
index d8b37e8f8e..4a5fdaf0ef 100644
--- a/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript
+++ b/bsp/stm32/stm32l4r9-st-sensortile-box/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/CubeMX_Config/Core/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/gcc/startup_stm32l4r9xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L4xx_HAL/CMSIS/Device/ST/STM32L4xx/Source/Templates/arm/startup_stm32l4r9xx.s']
diff --git a/bsp/stm32/stm32l552-st-nucleo/board/SConscript b/bsp/stm32/stm32l552-st-nucleo/board/SConscript
index 46b55262c1..dc08f2c36a 100644
--- a/bsp/stm32/stm32l552-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32l552-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/gcc/startup_stm32l552xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32L5xx_HAL/CMSIS/Device/ST/STM32L5xx/Source/Templates/arm/startup_stm32l552xx.s']
diff --git a/bsp/stm32/stm32mp157a-st-discovery/board/SConscript b/bsp/stm32/stm32mp157a-st-discovery/board/SConscript
index 813b2b0734..3460f3e0e9 100644
--- a/bsp/stm32/stm32mp157a-st-discovery/board/SConscript
+++ b/bsp/stm32/stm32mp157a-st-discovery/board/SConscript
@@ -86,7 +86,7 @@ if GetDepend(['BSP_USING_OPENAMP']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/gcc/startup_stm32mp15xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/arm/startup_stm32mp15xx.s']
diff --git a/bsp/stm32/stm32mp157a-st-ev1/board/SConscript b/bsp/stm32/stm32mp157a-st-ev1/board/SConscript
index 26c2379e22..1262d5a546 100644
--- a/bsp/stm32/stm32mp157a-st-ev1/board/SConscript
+++ b/bsp/stm32/stm32mp157a-st-ev1/board/SConscript
@@ -110,7 +110,7 @@ if GetDepend(['BSP_USING_GBE']):
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/gcc/startup_stm32mp15xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32MPxx_HAL/CMSIS/Device/ST/STM32MP1xx/Source/Templates/arm/startup_stm32mp15xx.s']
diff --git a/bsp/stm32/stm32u575-st-nucleo/board/SConscript b/bsp/stm32/stm32u575-st-nucleo/board/SConscript
index 16466feb96..5404cea9fb 100644
--- a/bsp/stm32/stm32u575-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32u575-st-nucleo/board/SConscript
@@ -17,7 +17,7 @@ path += [cwd + '/CubeMX_Config/Inc']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32U5xx_HAL/CMSIS/Device/ST/STM32U5xx/Source/Templates/gcc/startup_stm32u575xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32U5xx_HAL/CMSIS/Device/ST/STM32U5xx/Source/Templates/arm/startup_stm32u575xx.s']
diff --git a/bsp/stm32/stm32wb55-st-nucleo/board/SConscript b/bsp/stm32/stm32wb55-st-nucleo/board/SConscript
index 69fc966ade..65341cea42 100644
--- a/bsp/stm32/stm32wb55-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32wb55-st-nucleo/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/gcc/startup_stm32wb55xx_cm4.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32WBxx_HAL/CMSIS/Device/ST/STM32WBxx/Source/Templates/arm/startup_stm32wb55xx_cm4.s']
diff --git a/bsp/stm32/stm32wl55-st-nucleo/board/SConscript b/bsp/stm32/stm32wl55-st-nucleo/board/SConscript
index 3766c87592..689b227bdf 100644
--- a/bsp/stm32/stm32wl55-st-nucleo/board/SConscript
+++ b/bsp/stm32/stm32wl55-st-nucleo/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/gcc/startup_stm32wle5xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/arm/startup_stm32wle5xx.s']
diff --git a/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript b/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript
index 3766c87592..689b227bdf 100644
--- a/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript
+++ b/bsp/stm32/stm32wle5-yizhilian-lm401/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/gcc/startup_stm32wle5xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/arm/startup_stm32wle5xx.s']
diff --git a/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript b/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript
index 3766c87592..689b227bdf 100644
--- a/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript
+++ b/bsp/stm32/stm32wle5-yizhilian-lm402/board/SConscript
@@ -18,7 +18,7 @@ path += [cwd + '/ports']
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/gcc/startup_stm32wle5xx.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/STM32WLxx_HAL/CMSIS/Device/ST/STM32WLxx/Source/Templates/arm/startup_stm32wle5xx.s']
diff --git a/bsp/swm320/libraries/SConscript b/bsp/swm320/libraries/SConscript
index cad5ffa0e4..a60cc7680b 100644
--- a/bsp/swm320/libraries/SConscript
+++ b/bsp/swm320/libraries/SConscript
@@ -6,7 +6,7 @@ CPPPATH = [cwd + '/CMSIS/CoreSupport', cwd + '/CMSIS/DeviceSupport', cwd + '/SWM
src += Glob('SWM320_StdPeriph_Driver/*.c')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['CMSIS/DeviceSupport/startup/gcc/startup_SWM320.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CMSIS/DeviceSupport/startup/arm/startup_SWM320.s']
diff --git a/bsp/tae32f5300/Libraries/SConscript b/bsp/tae32f5300/Libraries/SConscript
index 2bd9462f57..e2625632cb 100644
--- a/bsp/tae32f5300/Libraries/SConscript
+++ b/bsp/tae32f5300/Libraries/SConscript
@@ -39,7 +39,7 @@ if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM'] or GetDepend(['
src += ['TAE32F53xx_StdPeriph_Driver/src/tae32f53xx_ll_tmr.c']
#add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/GCC/startup_ARMCM3.S']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/Tai_action/TAE32F53xx/Source/startup_tae32f53xx.c']
diff --git a/bsp/tm4c123bsp/board/SConscript b/bsp/tm4c123bsp/board/SConscript
index 2b02292d18..3534fedb29 100644
--- a/bsp/tm4c123bsp/board/SConscript
+++ b/bsp/tm4c123bsp/board/SConscript
@@ -17,7 +17,7 @@ path = [cwd]
startup_path_prefix = SDK_LIB
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/TivaWare_C_series/tm4c123_driverlib/startup/gcc/startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/TivaWare_C_series/tm4c123_driverlib/startup/arm/startup_rvmdk.S']
diff --git a/bsp/tm4c129x/libraries/SConscript b/bsp/tm4c129x/libraries/SConscript
index 1229898cd9..4e93a00bf0 100644
--- a/bsp/tm4c129x/libraries/SConscript
+++ b/bsp/tm4c129x/libraries/SConscript
@@ -9,7 +9,7 @@ SrcRemove(src, 'onewire.c')
CFLAGS = ''
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/startup_gcc.c']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/startup_rvmdk.S']
diff --git a/bsp/upd70f3454/drivers/SConscript b/bsp/upd70f3454/drivers/SConscript
index f8c82bd611..da560dc6fb 100644
--- a/bsp/upd70f3454/drivers/SConscript
+++ b/bsp/upd70f3454/drivers/SConscript
@@ -5,7 +5,7 @@ cwd = GetCurrentDir()
src_c = Glob('*.c')
# add for startup script
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S']
elif rtconfig.CROSS_TOOL == 'iar':
src_asm = ['cstartup.asm']
diff --git a/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript b/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript
index 4dd8bd50a0..b3da75ec13 100644
--- a/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript
+++ b/bsp/wch/arm/Libraries/CH32F20x_StdPeriph_Driver/SConscript
@@ -36,7 +36,7 @@ path = [
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CMSIS/WCH/CH32F20x/Source/ARM/startup_ch32f20x.s']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['CMSIS/WCH/CH32F20x/Source/GCC/startup_ch32f20x.S']
group = DefineGroup('ch32f20x_lib', src, depend = [''], CPPPATH = path)
diff --git a/bsp/wch/arm/ch32f103c8-core/board/SConscript b/bsp/wch/arm/ch32f103c8-core/board/SConscript
index 3f608ecc4a..ff664fbcfa 100644
--- a/bsp/wch/arm/ch32f103c8-core/board/SConscript
+++ b/bsp/wch/arm/ch32f103c8-core/board/SConscript
@@ -17,7 +17,7 @@ startup_path_prefix = SDK_LIB
if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/CH32F10x_StdPeriph_Driver/CMSIS/WCH/CH32F10x/Source/ARM/startup_ch32f10x.s']
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += [startup_path_prefix + '/CH32F10x_StdPeriph_Driver/CMSIS/WCH/CH32F10x/Source/GCC/startup_ch32f10x.S']
diff --git a/bsp/xplorer4330/Libraries/Device/SConscript b/bsp/xplorer4330/Libraries/Device/SConscript
index fed180fd71..da99bf9cc8 100644
--- a/bsp/xplorer4330/Libraries/Device/SConscript
+++ b/bsp/xplorer4330/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']
diff --git a/bsp/yichip/yc3121-pos/Libraries/SConscript b/bsp/yichip/yc3121-pos/Libraries/SConscript
index e46f92324c..327fc2c314 100644
--- a/bsp/yichip/yc3121-pos/Libraries/SConscript
+++ b/bsp/yichip/yc3121-pos/Libraries/SConscript
@@ -6,7 +6,7 @@ CPPPATH = [cwd + '/sdk', cwd + '/core', cwd]
src += Glob('core/*.c')
-if rtconfig.PLATFORM == 'gcc':
+if rtconfig.PLATFORM in ['gcc']:
src += ['startup/flash_start_gcc.s']
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/startup.s', 'startup/flash_start.s']