diff --git a/bsp/CME_M7/CMSIS/SConscript b/bsp/CME_M7/CMSIS/SConscript index 5cbf1f952e9ddfb472d8d359dcb2a62f235cc35a..ee315fad3af71e1e07c27b0821498f48f2343efd 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 18e3071c92adf1ab2d4a148192e337eac7a5df88..1842f9190f5e0063e661f66e8b65b5c04eb1b8d3 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 1a3adf928707e694a418302128e1f4159df83e3e..fdca0648c6ec8e5c6e51810f5afd9a126819a103 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 5ba7ff80123823a8fbe350eb300078a8118246b0..d5c9c3d1c6e7ed26adb74c3ee536e35d604aa645 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 d8d13055afecdcda9ff7fd19886c5c2b68867e22..ed549a834873c57b728bbdb2428b330e7e703063 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 b9745c4e6c6228843bc5e6c0c3d2c91e400dca2f..ae777e304f87395b4dc62f65fa55cd1bf2e75dca 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 aa13c2b179b07a7650c863332d5349bd7b253dd5..159e7889af07a37ff9bde4ca7680033d012e5460 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 d5d29878b28c4607f311967b533c4f373d2b6db2..1682e4724bf7d3b9da325af1309744064832e11d 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 eb181d7948eb9ec0dd742b50349078d46386ad9f..68b886f3d9ace648e7edf251f0e7eb553ea265af 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 1deac49d1151158568c844db397dc9257b119161..9750e8b73cb57726053c67fbb035a38479e7450c 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 a5970038c87f8aee9655b3eef90fc274dd6b3a19..5cd2570bbef1fddd5813b0c5fade77aaf03041e6 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 66967ab0eb68da8128ddc68b7fd3b48815e2f66b..71b75a45a3a538a7533573a1d12bd04628c00277 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 8bdc2088076d65e1658d06a3509655fa510d5064..679953b121cb743aff51a4e6b25c9a1d1d0b8e71 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 dd39194f5f6109cf30a6b522610a873c9c349e71..02323abbd65d01a0a0f1beb06477753217e35895 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 f984f7d7739722aa4c76a19da8b179efe48c1671..7a345490a43d72cc054f2ec845f52dd2179407d8 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 f984f7d7739722aa4c76a19da8b179efe48c1671..7a345490a43d72cc054f2ec845f52dd2179407d8 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 61f2b51e12530c60771217b664e9ba89155a57d2..814ab35cc365952b0924a7f9484fd7be0f52cbd3 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 a45486a3e0b728b667d3e90de4ef261a2a36e128..521fc66758803c86b0f910678619209971e62146 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 55adf12d6ba54f9d3d2a9c85c0bfca54519c1e3b..b1254300ca29fb0b22a2d587f7b26c8afad49d13 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 fc865183a7184942da075678e803dd6e102df6e9..e44cd4799b84a7f4b3b22e304a63957dd0a9aadd 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 31284a848d14bdf1c005f157cf4e749657675108..cc1137a0131979f60ce33979c5212005bf0cc2a3 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 099adce14d7d60d1eccd3119c0115d2eb45d23ba..6d5f4209997d5f9060239688490a3ce612fe9fa6 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 957b670b0ee40ab67b7b8c4b8a06cfbc0f1d3eb0..6b0192030b06487451a380058fb21f3b1e34f3b0 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 6366633b296d6513bb30adbc6240e1baba5cd235..204916b10826a778c5f5719b03006d88165cea5c 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 6c7e1add38f54c43ea3e9319f944654ef2966cae..04533a3a77618fb24d4729eee8cc1b579315f52d 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 7abee8951955917e7da6625a59cab77040974011..a2f153d0f3b754c2d4fd324d4aeb86108e317700 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 4e888d2a7c4cfe9731844c249c912d969de1a4d8..7af796f38a330b3a3580d02226b090e140d45589 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 d40b425c58c485d4d66faa9fed782efa5ad7f992..20f7ce210a3405185f24fbf765e063453b84ef54 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 45487fdb9e1127101c06387e48e187906eb7c098..54e06454b74f91f8c21912668b79c21555f5c13f 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 ad9aaef370a43358cf24bbfa76d141ede03a3b5d..39be26bc05c114eb87264edb551b19b0a8ad9cab 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 ad9aaef370a43358cf24bbfa76d141ede03a3b5d..39be26bc05c114eb87264edb551b19b0a8ad9cab 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 ad9aaef370a43358cf24bbfa76d141ede03a3b5d..39be26bc05c114eb87264edb551b19b0a8ad9cab 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 87645eb78af2f0e706bd12d70255eb5291d13312..3bd0ee59a8471bd5627da6c293d31fc21d28404b 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 d023a96a2ff22790783fb3d9ca8523b1fcf7bd8a..a93216df457acf5c873d4d79c157f18d667fddf7 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 73501b86f47dd3aa1af64bb8ee7dd88f62aee2b9..9b475a9838ef8aff5dbe0698330e25d18b7f526f 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 f386c03996510ed0ed0bbf570cbfb59e04a70b61..0930d7eb9c1114d430fc86dbd96982a913755ea0 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 b1ae6aa30e754712d650100989907abec0e2e035..6c8121b586fe107f2cbeb09f760f80a594a9c766 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 b1ae6aa30e754712d650100989907abec0e2e035..6c8121b586fe107f2cbeb09f760f80a594a9c766 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 2c49ad231f5d90ffdbf8d90358fe797221d8fc25..f387300a3fc2ddfde9d484693da00ce0e938d8f3 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 2c49ad231f5d90ffdbf8d90358fe797221d8fc25..f387300a3fc2ddfde9d484693da00ce0e938d8f3 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 c1ad05620713aaac706b8dc9255ade4cc80f524b..7acfcb5d779ebe9819a5cb29146f0b8396e99f5d 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 eb25cf1e7abc43bb98eea4913861c7b5a027ea97..e2f97da93693a56432c7fbd55fb29663f5762942 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 42e112815a84979ac09ac1debe12865df7c6dfd4..98a49626a344ea666a04052baa217764555ba54e 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 2172212e3e62e0adb76ba3d10c14ce6e51088090..87b87a0fe3f02aa8120af08ae40783d07aa03401 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 d5a8e25e97d8898c9091860db97a1831044fb3a9..97f96c22d9e96c5e8b17a128d955ace51c5859db 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 e89dc609be702c528bb281401689421590741bee..ac60d10ce8ecaedfb6b72c8a6bcdc01561d3e126 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 62c5d1532d416c9b2959324fd4f477b784c2107c..d0dd1836b7b51583af3c585c8cf24118ccd7aed3 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 d845dc486a8741151161a8122787f5034e42da06..749ff47e1beb2667f9a827d37fe828df98772682 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 69e3f9b88e0f5b91d44147d26efb19ff706f99e0..ee6c5b72300b03acdbb57d6226678b44d8ab5269 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 e28febe813a9b875314bfa950e7efcbb8f6520c7..e39658fae2337101b6b322b725e8a312ec8f620a 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 b7f79e1fc9bb2ed5f67783dd81190f81ab6d4a71..211adc3c83e2ddf28f5f20e65d447f8df6ded071 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 38124f8f7e47fbf5b8cbbc60ba6bec0c36a63405..4c62bc22f28236ea4008577efa4b9196f11bd3ae 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 100cf72b4a08994048936cd3596482acc754ac93..e279d051300f4a5acd1fba6e91234768ae88859c 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 f55bd84efb6468295d274677519ada0fd5587b9c..f4fd7f50c33d670c6c2a6d5f16793118d8c7ad6e 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 ea5d8102a7e63742c4889ddf9fd7ca317fa932ee..65db55f77c92bd9982f31ed08d7f53382ed98480 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 2908e197a3c12c2eb09f1bf8e5c99868952ea8ce..06a2fa04b950f51bcdb35c9131bbec8be20f23f0 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 9d12b5ade816338ad9d4efa6ca7ee336c3fc0459..69866e81853d76c522387482473e8ecfba2f1684 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 f2e567cce711663072449d4f817d29371aa655d7..8ae85deb6ad2cdb639bc90f209ccb58d6963f466 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 fed180fd71f8301d4adca6da7c88c1af24c34790..da99bf9cc879d55edeb1012ebb54815be578010f 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 25291318ddf85e6b91561e47bcdd7de16a021369..7e7f77dd88c1dfc671c852281d5c70a4534892f1 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 b83f0114f1058aa98e4e3b280fe9cf79829d1b75..4365cff78467ff396c6caa1b9d9e63c0f3f4fb8b 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 56fd0751780aa2e55674890de3c69114ff20f118..ae9805c9077c0697eb3e50ba9d0388e5360153b5 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 6b9cd35fd5274393af37b20c67237303f51c7735..a86b71b6c78eba59f636696fbc40dc25240eb9df 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 c12c5623205ccc40f4e1dc146326b20ae90d308f..964eb63027c2826a76e60172920caa45ec2314ca 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 3b59a9726c4bd3863e515ee990e9510a0c0f5356..74df4f5c3b97717c3e66140ad2f786117676d882 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 140e3af64f994f9c5fe0982f62fddd90c5220fb2..59b34b8039ea2e79d379bf52d967fcfef374df2d 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 256e8a5a0c3a8a3ea05b99505956234328dbb4e9..26c10c855ff2efef09bb0cdb70f2eda8c71132c9 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 41ccd00018a3138820190e2b83ab7f56e9638bb9..2588714bbe16b0e7790e5b867d7100c38ab7dde0 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 31c3ce5a01d50f6abaa903ed5aab8b0bab9a8796..13a0c5cdc4bac6dfc4a1d1b64b477e97ac8256ea 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 65e7884cbd7676706450e77b623faa8180262281..0d9bb792c032dbe0c7c11d1e49f812d972c77a01 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 88b9fd6563ddaf7094332ca9b44bb94ee3ec143c..f099d2fcacbfef4b747cfd21231cb767f05ac50a 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 c1e872bb18aa87be9bbac0878f59975badab9eca..10bc9ad0c12f93fc67cee090c402380ba2603d97 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 64dd7537292828ac46167f703fbcbd01b2f9e15d..e2e806759247d162f6404369133fd607412cbb1e 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 f65a9b9b37687d7b873f18ddabd47daede7a97b6..dc8d9d46e3e212af1c9af2f9d516d50c254f72fe 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 1879b3e156e2072c7e27caf1d1abdb4317cb7359..33ebccce070ffe0589941127c85836b6699d5fcd 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 97203552444460a65d462c61ecfe36af09ac7afe..586f3f45f6ae4e51fc4983db599c85d5ed4f3ade 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 5a7daeddaa82e947fd4c99fb55eaff510972a2dd..0f4d045002e7a61b95d8da402fe17a2cb1b3c520 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 c6fdd579877c450609456d877749d33c003a64c4..e1fa18086854e07712de4a7e147696824d428094 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 c24f15f47258079b1a09fcaaf320e948161eaa4a..b01b6766d9961a1e571a841b7e3e26b86d13d99c 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 a823d0a380736d8bc5bf367c5edf5f952bae447b..930e35b055276cc31de221d7f06c1ec3f3c1de2e 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 c24f15f47258079b1a09fcaaf320e948161eaa4a..b01b6766d9961a1e571a841b7e3e26b86d13d99c 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 42f37b3a8705f762d1453e125f86a7b89e2e8f41..dd276f9219ed4fc423bde56689582703247307dc 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 c24f15f47258079b1a09fcaaf320e948161eaa4a..b01b6766d9961a1e571a841b7e3e26b86d13d99c 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 f0af26837ea746b80c2d282801d20898aa674af8..9b4fef5f2db9dc06dde298689426fdc64b33ad32 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 f0af26837ea746b80c2d282801d20898aa674af8..9b4fef5f2db9dc06dde298689426fdc64b33ad32 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 d845dc486a8741151161a8122787f5034e42da06..749ff47e1beb2667f9a827d37fe828df98772682 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 8c8b1c92c866bd5c8e6557ed01e112393bcec661..0ba7c23d3f8de11634fd6468edb415cea207274b 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 41d6147b100f9e59d260f4254ac0accbcf741278..6df0a4f30f80d1618d61737d818a6401ac5663b3 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 fd53aae32f63e885b006e796de46b71928cb91a0..93dd838d9e46c34ede11d3b447b903067709acf2 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 b059da45f9f8e841753fc753231e108fcf43b55b..6cfaf3d93344da1a5919e90c35fb0591198d48de 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 40ab0bdf6127ade42d9cbada82dac57e1894ecff..b745cb60ac92b57fdd50123bcc457621a5e85c5e 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 8c8b1c92c866bd5c8e6557ed01e112393bcec661..0ba7c23d3f8de11634fd6468edb415cea207274b 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 41d6147b100f9e59d260f4254ac0accbcf741278..6df0a4f30f80d1618d61737d818a6401ac5663b3 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 fd53aae32f63e885b006e796de46b71928cb91a0..93dd838d9e46c34ede11d3b447b903067709acf2 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 21f29eb460a29bf6e6c5793f55ad278ec64dbbf0..93f327835575496a2e3f35cac4dedb1300ae325c 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 5fb4a860df2be8696efbc407de8df92d2e87b4b6..c7e961c75e5ddf28410400374a5f5f1dd5dcb151 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 56916d12c65ce205f860698c36f2c235fcef0bd0..370c0b0280a4f7b62a1978a06470c403c53c1466 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 41d6147b100f9e59d260f4254ac0accbcf741278..6df0a4f30f80d1618d61737d818a6401ac5663b3 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 60838363585d48661bee88ab26322466d39ed6fc..7c50369d5a845689753cc35510182bb208e4c960 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 3f03930232cc83e5283360b68a77e0bb3f227812..1386e09ed206c922a4dfa16f10e845096c572895 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 5fb4a860df2be8696efbc407de8df92d2e87b4b6..c7e961c75e5ddf28410400374a5f5f1dd5dcb151 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 079178a9b22d6f50ad46333bed2271bdb75d489a..ac81dff1a96871d9538e71a9891007630248fb2f 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 157d672a0b5c7a74a34671465a9477d8f5b90cd2..0d75bbaf8ab31fa9d9998d3acd3482d670ec18a9 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 de50dc8411267f753cfa3cda1746b6571ab92f06..50fcde0e20bb19a1895322daca3c05845e40ea42 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 e3f18433605e04f2943cc699a176ac57e49bf63b..6447a4f5f17313d506fcf2a623eb31e5c1d360b3 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 4ee71bf9dc18c34c6a755b2bd9c877fddebb0729..0e53faa66343783ea92fea07b3216e3d2155fd80 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 cbbf9b91deee465546e96ca1efcb976a1fe41caf..ca933f3454b7f64d845963f66dddf80b25c27172 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 fd34090efc55bad0c9ef2380ee51e834385514b6..d4781076553840f169357aa587185c5a48c6b76c 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 c543f16503e2df2e66adbdd257a56f0fdf4992b1..a4779a0031ed009fd48a2b202aec21606ec12a3d 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 ab03805d74e2ca3e6df72b3c490de8237a903617..13c724edf18a14bd4a1228fc602dd5a7f1893dbd 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 f014eadec63762b11c38b40adda767b7dd72fcf1..61c7bee0dc4f199fa32d25b9007fa7169f0817df 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 d042d99c955d6e49135fee62ffc74b6d12dd8bdd..e1554e6a0397d9c7f699f7a42ca6cd27b96fcb47 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 46b55262c153064674fa3b5143330eea26ff760a..dc08f2c36a460a4367cc5a0648f724fc001b152d 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 0e748d6d565e2057f8620ca7154b408833158852..01d19e3442dcec099d98599603a7f80fd0afd738 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 69fc966ade6fc7b0961ebb1edbf60a7564e45b0a..65341cea427c136808b67d025e798b6806e3b1a7 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 0943a47d162f950315291deb348266046f562664..5ce0f34884dc0525dbacab5768c35b4f4ffba2b9 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 dc2ee41f5e2fc9b19ac368f5b4a14e67fce52283..d97259d6b2b9bd70f6496d628e15e43dd25668a0 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 b9247cacf52c4e873b9229eae704d62fb2b64af4..64ddc724b17736ebf9fec54556e89fb11d7a7dd2 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 573fcf71012902d1cdc8b8af51586155ff535c29..2fb44c4624ef91327a213fb78088f18a531f9494 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 e3f18433605e04f2943cc699a176ac57e49bf63b..6447a4f5f17313d506fcf2a623eb31e5c1d360b3 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 dcfb75afb2b09489d3d9e9ae2baf5b93beb38639..98023a1479e303afb00ab6710abbc42a7c1f476a 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 e3f18433605e04f2943cc699a176ac57e49bf63b..6447a4f5f17313d506fcf2a623eb31e5c1d360b3 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 42f51083a0e6359f1d86eb372d77efc40cdd7103..d20f88b2dd68a8ba59ef5d10776f889a31a01ae0 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 e3f18433605e04f2943cc699a176ac57e49bf63b..6447a4f5f17313d506fcf2a623eb31e5c1d360b3 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 12d5420d44e82813b1605ac0642ead8122d39d6b..8a600659fa22e913dd0aa69248872ef65c5509de 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 df4c27c29103c28744413d76c2b5d5bfded4f8e0..680947b48009c27aff5f8fefc39fff80002d4200 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 6bf641022e6bb9e228e8f8d3cc290dd06c083baf..f22d4679388bf17bca4c9fdd22e6dabac446c35a 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 b2eb3d2681b1f1a87cb4c77228aaade282df6f77..0e43f852659e09612f27fc4f157002c0a7c91135 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 6e2bd14e56d40ce450e035167cb6ba39b31e7c03..2f5eb162caccb705e7cbc3f19acf398d6f8ba72d 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 cbbf9b91deee465546e96ca1efcb976a1fe41caf..ca933f3454b7f64d845963f66dddf80b25c27172 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 b618109be6410ac9b6bc5ad2da8fb9ea29749e2f..723afd68747f5a2bf09da3bd75203f3004f33ad9 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 8cf2e2973ef2940731662f031c0b6cfb7a138e2e..b9585d1eacf0c7ef8ccc7b0ce59a517ab54fadd9 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 561234a47a1b104ca20113a2c49a48868d936b93..d7800961a2fe3442f4528ffc1e893dd8f26a210b 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 03bf0e6802fbdde77c76512aead52b7301e53ad2..1b8bed849cdefd25b73951975a70edb63d8b87fd 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 fd34090efc55bad0c9ef2380ee51e834385514b6..d4781076553840f169357aa587185c5a48c6b76c 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 8fd552cdadcbf33e6811de8ca174889171d53851..0ee01f2b54522ceb6e7d844735163dbb286a88ba 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 5eb2eff4bcbca72f32f73cfd8a08248474483475..44f118605ccfb6f473d62549a6dbd78dc3605b48 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 3669458f0deef9c8334a98a8f440696bdd9a360b..4b44a0dae4be14f44804e32b91282d19afe32830 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 d79c31fd8d47d9d7279543fe5471653f8a91ab21..92041cdef1aa21fb5848eedb1ee29da785084746 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 b9c207959e1722a39ccd0654aa8f70a1f7931e2f..8864f34b503c1004b5c04c0d300617852737945d 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 75a677d35aa8950311bf0e5b7b0f904d07279538..8f2c1a39cce70b6e66f330129728b2a80e962dfc 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 5c964e020e7303fd4a3342b8c467bcd13254eb55..3703f613739af2f958f185af5d2c5fdc859af34d 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 7443021c5e9ea926370944a92a15a44e89731ef7..1236fc974643bf96a1bb4b4793342024edf28fc7 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 7ccc2fb166a86523a671a675618d7f7243170df8..7b50920a19eb2f03939df5168de92446fee24729 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 67f7b8553512c53a6e327733dc86e79af83b53be..c1c2be37fe8f09fcc2c3007fd8128d5886be7598 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 cac1d90e576e55a491bd366670cbd7e2be3b4345..ada28d7c1ec2d2d8d1a1cafadec920623b5bd79c 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 a6bf311a2bc902a733f433b4004971fbe40fee61..f4baeb16c9f244f27bcea67c5610408ee7b4fe70 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 ce689b5e68bfbbf9c96c974038b414a37510db16..8c19775a2ea730fed1294377fc2abb027d8c599c 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 03683a73e123edfeb31bfd6a19bffdaa1db79856..3b48a56d73b142c7398e8fcfd2aa5f724a83439a 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 f917aa4c8b050501817ac9271c1d7087cd49a1ec..e940a2ad37d332c815203a8ef1180b72bdedb0fe 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 64027e465186fa4d7457369140465a781c042222..e232e885c62b23e562c7f79f6bf4229585b8613a 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 6260edad14675a8bf8ad0a24ebd33217642cd173..4b648d897236fb007cc5a5cfff4a8ddc0a9bb044 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 6260edad14675a8bf8ad0a24ebd33217642cd173..4b648d897236fb007cc5a5cfff4a8ddc0a9bb044 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 affb7c880ba9a525076566feaede86eacbc5f54a..2d88ec6733139fa347ea8e9ccfa9121853d1a26d 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 416150abae1c72c81bb4977ba8a474910fe2a11e..ad3019464547e58a45e18d729e79657bd2ee8aa6 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 acbd7e22f9ef1ec0425c6c19f4d4022dc02f77a9..e8295f989c17f77f5e233cb6d10e132ddaf877e0 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 cbf0d13e662ded939ac92dc17ed362d12df8db1c..ffeb9fb5a12a67e822248ccdc30ad8af1361414c 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 bd65916cdb7a0ffb5ec42d039198c1c278e53064..9ea8d79f5816dbc6e79b1e22b2d550bd72df6952 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 95ed6291918a61705960fdcfa151c8a83f062ffe..8e779f0e933ad3d49df5c7c31d4a24154231b842 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 ab03805d74e2ca3e6df72b3c490de8237a903617..13c724edf18a14bd4a1228fc602dd5a7f1893dbd 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 5a278d4f8497790ac491a3c67a40a0ce6164748d..d011929fcd241142f2004bea5dd8e48004b395ba 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 5269d23d87f0bb9375e86819f085c65242623a9e..b60f3a32f9d6e042bff2830ecb10e2f99362f021 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 ab03805d74e2ca3e6df72b3c490de8237a903617..13c724edf18a14bd4a1228fc602dd5a7f1893dbd 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 fa379359d2b3cd2f92ba0004ed732a3fd6f1ef5a..8d3a51a0b8644f1320cf299e25b63ee270ee4fd6 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 6b21d2e788acb1c2fbac0e3099c63f82e534ad89..61f65bba02cd6f931636698662d99639d7602a48 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 baea8291cc382d34c2e3823e0318fe38a9942de9..66bc6359a7aacd9db45772a582d521229155f515 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 54538df77bef4b26ebb797e64158e9dfcf52637c..4dfd6a5c335d72c34fb5e294d5d9446391064ea6 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 dd7a705f89007193ff79ed9d2e90af694aa69c27..67149358a9fb3f361a30148dfd7c3a7334f7daf0 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 dd7a705f89007193ff79ed9d2e90af694aa69c27..67149358a9fb3f361a30148dfd7c3a7334f7daf0 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 b64be60ee3ceefcd96f3a564378bfe63ef6f054d..5dadc39b4229bd01f50b3ae3141c8072733361ed 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 fd0771718d6164a9f2edbf20f9c3acdd8e072792..2f0bcd4de2756e8f32ca1f6fc3473aa5cf725082 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 2718c02f3e77c9c6d12a5f7fa42ea2d2c6df6f19..83a54e055e28c6d3dc31936c370e2859b4c3715d 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 92859a3b7cea098b92ca255695757cfe1088594b..7561b89cbb92fa1e3785da168f96631643c29214 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 a027978bddabe8d7308e95f7ab287404b7b4a0ac..4014e1863c622111cc06f7adebb4714917491308 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 d35327b32f3e9f7012eeb3ff6aac749c1624064b..527a5d0c55bd102a546b3b304da1263e0f424d35 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 085130c434d63c2412058cc31c667a6074099b97..854e4ee146c0c3c6e631f2c43e21177cfc173e95 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 3bb10e094d7adcd448f65a2b910a798d2f0796cf..3e6b2995f277474c3305c8dbd35e75543257d44d 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 1f828dfff48f1b04a5807e4d15b831a1d29a0cc3..fff62748354fddb493248920011eff0e15fa7567 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 8739a795f82d83a83a24af0d9179614ebf0fca40..d48a421b329385ae343b2741a5a6839bd0c4506f 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 fafa1c179ac17d9894b802b97e1694b144fcdba2..9d97bcc920de08e085d9d0746f60c673d08ae916 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 b805d48a5452c9ff57451b9b0d7090d82f920711..cef1390bb6314cfbf0ae06cfb4a87fc197e3d98d 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 f5db70f0cc5ce1343bc8f06834d090ffd669338b..e11772932876fec751baf45d7a0303c2a888f9b9 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 c5ca6699b46ba973b883b14a272f8f4fb42c087c..dcfe02de57f436ba85d3f7c413ec2824176b7bcb 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 d8b37e8f8ec11bc2bf163ea7a14e5fa27983100c..4a5fdaf0efbe83206c80d7de7ace0126262fcecb 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 46b55262c153064674fa3b5143330eea26ff760a..dc08f2c36a460a4367cc5a0648f724fc001b152d 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 813b2b07347b3da7af5891e7d7ab8f23c6f95c7b..3460f3e0e9a823edd3d88852828d995c3894eaa8 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 26c2379e22f121aaff4b054d7be10259e610dff0..1262d5a5465f8073f06a44ecb55d1fbe197b7117 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 16466feb961271f5b5ef663b2f8b3c6780eeafd8..5404cea9fbf665e42cb3a598c59c5a098298a628 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 69fc966ade6fc7b0961ebb1edbf60a7564e45b0a..65341cea427c136808b67d025e798b6806e3b1a7 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 3766c87592e1165a8b49c5f9d5267d81c1298a6b..689b227bdffaf6d5abbf3b0b9906173150d2e05c 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 3766c87592e1165a8b49c5f9d5267d81c1298a6b..689b227bdffaf6d5abbf3b0b9906173150d2e05c 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 3766c87592e1165a8b49c5f9d5267d81c1298a6b..689b227bdffaf6d5abbf3b0b9906173150d2e05c 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 cad5ffa0e4b7b007838360e183fa926a3fa89bf6..a60cc7680b9259922261fcd1802818047c0c9278 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 2bd9462f57676412515eb07934260edec7526db0..e2625632cb9aa6b486ac8b1fa404788753e63c36 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 2b02292d1843a85b0f8e25640b78e5fda0db1606..3534fedb292fa5326212c9f879fc8661fa4309d1 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 1229898cd9276498a5f1237af87d2d4c842e7c44..4e93a00bf0250bbbd7d08b4e24b837b7e48d7ecb 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 f8c82bd611a41f825c5462d6d6df378f87224a19..da560dc6fb5e30f82d51a96c4a55eaef8810b9bd 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 4dd8bd50a0a7d59d15fb5b9f25de7a6cb0472273..b3da75ec131a314f88492b029413ad16c3422991 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 3f608ecc4a1cfd4b37b6bf86b599473d6d771fea..ff664fbcfa36567ba50decb0dc11392acd69e2ec 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 fed180fd71f8301d4adca6da7c88c1af24c34790..da99bf9cc879d55edeb1012ebb54815be578010f 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 e46f92324c3ae4d91bab100d312b96b7be7a81f8..327fc2c31480bb95136d5cc9088e917095108950 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'] diff --git a/components/drivers/spi/SConscript b/components/drivers/spi/SConscript index b409f1196ce2429ac588243de5ed937b7b9da1fd..8fe82b73e409a9c3d99a11699ecae11b102e2050 100644 --- a/components/drivers/spi/SConscript +++ b/components/drivers/spi/SConscript @@ -29,7 +29,7 @@ if GetDepend('RT_USING_SFUD'): if GetDepend('RT_SFUD_USING_SFDP'): src_device += ['sfud/src/sfud_sfdp.c'] - if rtconfig.PLATFORM == 'gcc': + if rtconfig.PLATFORM in ['gcc']: LOCAL_CFLAGS += ' -std=c99' elif rtconfig.PLATFORM == 'armcc': LOCAL_CFLAGS += ' --c99' diff --git a/components/libc/compilers/newlib/SConscript b/components/libc/compilers/newlib/SConscript index b1d4a53eb1a06fae17126ecd985ddc3251730cac..ab2d3517e2e9ab823eb19ebf5ce1eccb3a8f8852 100644 --- a/components/libc/compilers/newlib/SConscript +++ b/components/libc/compilers/newlib/SConscript @@ -9,7 +9,7 @@ group = [] LIBS = [] CPPPATH = [cwd] -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: LIBS += ['c', 'm'] # link libc and libm src += Glob('*.c') diff --git a/components/libc/cplusplus/SConscript b/components/libc/cplusplus/SConscript index 325a27f65f33f5a997e470f4a63e61ee5ad5b196..82983fa6674f92f29837d65596b4cc1958cc0634 100644 --- a/components/libc/cplusplus/SConscript +++ b/components/libc/cplusplus/SConscript @@ -14,7 +14,7 @@ CPPPATH = [cwd] if rtconfig.PLATFORM == 'armclang' and GetDepend('RT_USING_CPLUSPLUS11'): src += Glob('cpp11/armclang/*.cpp') + Glob('cpp11/armclang/*.c') CPPPATH += [cwd + '/cpp11/armclang'] -elif rtconfig.PLATFORM == 'gcc' and GetDepend('RT_USING_CPLUSPLUS11'): +elif rtconfig.PLATFORM in ['gcc'] and GetDepend('RT_USING_CPLUSPLUS11'): src += Glob('cpp11/gcc/*.cpp') + Glob('cpp11/gcc/*.c') CPPPATH += [cwd + '/cpp11/gcc'] diff --git a/components/libc/posix/libdl/SConscript b/components/libc/posix/libdl/SConscript index 7c5f9b80852ee7e128a170a81e96dd896d15edee..146253909f23ea094b1ad89608be44b7c7ed0656 100644 --- a/components/libc/posix/libdl/SConscript +++ b/components/libc/posix/libdl/SConscript @@ -6,7 +6,7 @@ cwd = GetCurrentDir() group = [] CPPPATH = [cwd] -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: group = DefineGroup('POSIX', src, depend = ['RT_USING_MODULE'], CPPPATH = CPPPATH) Return('group') diff --git a/libcpu/arm/AT91SAM7S/SConscript b/libcpu/arm/AT91SAM7S/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/AT91SAM7S/SConscript +++ b/libcpu/arm/AT91SAM7S/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/libcpu/arm/AT91SAM7X/SConscript b/libcpu/arm/AT91SAM7X/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/AT91SAM7X/SConscript +++ b/libcpu/arm/AT91SAM7X/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/libcpu/arm/am335x/SConscript b/libcpu/arm/am335x/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/am335x/SConscript +++ b/libcpu/arm/am335x/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/libcpu/arm/arm926/SConscript b/libcpu/arm/arm926/SConscript index ed6780b1050107ee8cf007b16690ef041eb629b0..4d100197fd67bc6ed2c8143a518877b3c84075b9 100644 --- a/libcpu/arm/arm926/SConscript +++ b/libcpu/arm/arm926/SConscript @@ -13,7 +13,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']: src += Glob('*_rvds.S') ASFLAGS = ' --cpreproc' -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: src += Glob('*_init.S') src += Glob('*_gcc.S') diff --git a/libcpu/arm/armv6/SConscript b/libcpu/arm/armv6/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/armv6/SConscript +++ b/libcpu/arm/armv6/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/libcpu/arm/common/SConscript b/libcpu/arm/common/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/common/SConscript +++ b/libcpu/arm/common/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/libcpu/arm/cortex-a/SConscript b/libcpu/arm/cortex-a/SConscript index e593fb3b2e747d89e56cb63f9ce214ecf65ff37d..531b17aa841c753dfba1dd2c3b1fcb1f4f392868 100644 --- a/libcpu/arm/cortex-a/SConscript +++ b/libcpu/arm/cortex-a/SConscript @@ -26,7 +26,7 @@ if GetDepend('RT_USING_GIC_V3'): 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/libcpu/arm/cortex-m0/SConscript b/libcpu/arm/cortex-m0/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-m0/SConscript +++ b/libcpu/arm/cortex-m0/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/libcpu/arm/cortex-m23/SConscript b/libcpu/arm/cortex-m23/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-m23/SConscript +++ b/libcpu/arm/cortex-m23/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/libcpu/arm/cortex-m3/SConscript b/libcpu/arm/cortex-m3/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-m3/SConscript +++ b/libcpu/arm/cortex-m3/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/libcpu/arm/cortex-m33/SConscript b/libcpu/arm/cortex-m33/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-m33/SConscript +++ b/libcpu/arm/cortex-m33/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/libcpu/arm/cortex-m4/SConscript b/libcpu/arm/cortex-m4/SConscript index 94505d3fb61cc1b944ede5ee13891a63667c86ce..2ebf92ce7a3a1b17bc2aeb3a0d8a55815de6e00c 100644 --- a/libcpu/arm/cortex-m4/SConscript +++ b/libcpu/arm/cortex-m4/SConscript @@ -14,7 +14,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']: if rtconfig.PLATFORM == '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/libcpu/arm/cortex-m7/SConscript b/libcpu/arm/cortex-m7/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-m7/SConscript +++ b/libcpu/arm/cortex-m7/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/libcpu/arm/cortex-r4/SConscript b/libcpu/arm/cortex-r4/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/cortex-r4/SConscript +++ b/libcpu/arm/cortex-r4/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/libcpu/arm/dm36x/SConscript b/libcpu/arm/dm36x/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/dm36x/SConscript +++ b/libcpu/arm/dm36x/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/libcpu/arm/lpc214x/SConscript b/libcpu/arm/lpc214x/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/lpc214x/SConscript +++ b/libcpu/arm/lpc214x/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/libcpu/arm/lpc24xx/SConscript b/libcpu/arm/lpc24xx/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/lpc24xx/SConscript +++ b/libcpu/arm/lpc24xx/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/libcpu/arm/realview-a8-vmm/SConscript b/libcpu/arm/realview-a8-vmm/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/realview-a8-vmm/SConscript +++ b/libcpu/arm/realview-a8-vmm/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/libcpu/arm/s3c24x0/SConscript b/libcpu/arm/s3c24x0/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/s3c24x0/SConscript +++ b/libcpu/arm/s3c24x0/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/libcpu/arm/s3c44b0/SConscript b/libcpu/arm/s3c44b0/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/s3c44b0/SConscript +++ b/libcpu/arm/s3c44b0/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/libcpu/arm/sep4020/SConscript b/libcpu/arm/sep4020/SConscript index 05f46f3c7604ce4d0698dccd63d4551f0dfe7bbd..43fb7647be258e787efa6d8c753e8694ca08c982 100644 --- a/libcpu/arm/sep4020/SConscript +++ b/libcpu/arm/sep4020/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/libcpu/arm/zynqmp-r5/SConscript b/libcpu/arm/zynqmp-r5/SConscript index 61f2b51e12530c60771217b664e9ba89155a57d2..814ab35cc365952b0924a7f9484fd7be0f52cbd3 100644 --- a/libcpu/arm/zynqmp-r5/SConscript +++ b/libcpu/arm/zynqmp-r5/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/libcpu/sparc-v8/bm3803/SConscript b/libcpu/sparc-v8/bm3803/SConscript index 03ce583dc10827cb08041a1889fe40ff27f288db..95df0b4b353de592ea4facd00020736d63c4a7ea 100644 --- a/libcpu/sparc-v8/bm3803/SConscript +++ b/libcpu/sparc-v8/bm3803/SConscript @@ -8,7 +8,7 @@ cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: src += Glob('*_init.S') src += Glob('*_gcc.S') diff --git a/libcpu/sparc-v8/common/SConscript b/libcpu/sparc-v8/common/SConscript index 03ce583dc10827cb08041a1889fe40ff27f288db..95df0b4b353de592ea4facd00020736d63c4a7ea 100644 --- a/libcpu/sparc-v8/common/SConscript +++ b/libcpu/sparc-v8/common/SConscript @@ -8,7 +8,7 @@ cwd = GetCurrentDir() src = Glob('*.c') + Glob('*.cpp') CPPPATH = [cwd] -if rtconfig.PLATFORM == 'gcc': +if rtconfig.PLATFORM in ['gcc']: src += Glob('*_init.S') src += Glob('*_gcc.S')