[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链

This commit is contained in:
Meco Man 2022-05-30 18:04:05 -04:00 committed by guo
parent e622ef3aec
commit 50f041f5c2
236 changed files with 244 additions and 244 deletions

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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)

View File

@ -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']

View File

@ -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

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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':

View File

@ -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':

View File

@ -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')

View File

@ -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.

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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)

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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')

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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']

View File

@ -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']

View File

@ -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)

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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'):

View File

@ -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

View File

@ -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']

View File

@ -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']:

View File

@ -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']:

View File

@ -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']:

View File

@ -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']

View File

@ -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 = []

View File

@ -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 = []

View File

@ -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']:

View File

@ -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']

View File

@ -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']

View File

@ -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']:

View File

@ -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']:

View File

@ -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']:

View File

@ -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']:

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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']

View File

@ -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:

View File

@ -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:

View File

@ -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')

View File

@ -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':

View File

@ -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'

View File

@ -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']

View File

@ -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':

View File

@ -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':

View File

@ -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':

View File

@ -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'

Some files were not shown because too many files have changed in this diff Show More