[Scons] 将GCC判断条件改为列表方式,方便后续增加新的编译工具链
This commit is contained in:
parent
e622ef3aec
commit
50f041f5c2
|
@ -11,7 +11,7 @@ CME_M7/system_cmem7.c
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['CME_M7/startup/gcc/startup_CME_M7.c']
|
src += ['CME_M7/startup/gcc/startup_CME_M7.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['CME_M7/startup/arm/startup_cmem7.s']
|
src += ['CME_M7/startup/arm/startup_cmem7.s']
|
||||||
|
|
|
@ -13,7 +13,7 @@ src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_cortex.c']
|
||||||
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_LoadNVR.c']
|
src += [cwd + '/CMSIS/Vango/V85xx/Source/lib_LoadNVR.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
|
src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/Vango/V85xx/Source/Keil5/startup_target.S']
|
src += [cwd + '/CMSIS/Vango/V85xx/Source/Keil5/startup_target.S']
|
||||||
|
|
|
@ -13,7 +13,7 @@ src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_cortex.c']
|
||||||
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_LoadNVR.c']
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/lib_LoadNVR.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S']
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S']
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/Vango/V85xxP/Source/Keil5/startup_target.S']
|
src += [cwd + '/CMSIS/Vango/V85xxP/Source/Keil5/startup_target.S']
|
||||||
|
|
|
@ -25,7 +25,7 @@ HAL_Driver/Src/HAL_CRC.c
|
||||||
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
|
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
|
||||||
libs = []
|
libs = []
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['Device/Startup_ACM32F0x0_gcc.s']
|
src = src + ['Device/Startup_ACM32F0x0_gcc.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['Device/Startup_ACM32F0x0.s']
|
src = src + ['Device/Startup_ACM32F0x0.s']
|
||||||
|
|
|
@ -18,7 +18,7 @@ HAL_Driver/Src/HAL_EXTI.c
|
||||||
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
|
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
|
||||||
libs = ['System_Accelerate', 'HAL_EFlash_EX']
|
libs = ['System_Accelerate', 'HAL_EFlash_EX']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['Device/Startup_ACM32F4_gcc.s']
|
src += ['Device/Startup_ACM32F4_gcc.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['Device/Startup_ACM32F4.s']
|
src += ['Device/Startup_ACM32F4.s']
|
||||||
|
|
|
@ -24,7 +24,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/HAL_Driver/Startup/gcc/startup_gcc.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/HAL_Driver/Startup/arm/startup_gcc.s']
|
src += [startup_path_prefix + '/HAL_Driver/Startup/arm/startup_gcc.s']
|
||||||
|
|
|
@ -5,7 +5,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
|
|
||||||
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -7,7 +7,7 @@ path = [cwd + '/inc']
|
||||||
libs = ['']
|
libs = ['']
|
||||||
libpath = [cwd + '/libs']
|
libpath = [cwd + '/libs']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
libs += ['libsmartconfig_armcm4_gcc']
|
libs += ['libsmartconfig_armcm4_gcc']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
libs += ['libsmartconfig_armcm4_iar']
|
libs += ['libsmartconfig_armcm4_iar']
|
||||||
|
|
|
@ -21,7 +21,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
if rtconfig.CROSS_TOOL == 'iar':
|
if rtconfig.CROSS_TOOL == 'iar':
|
||||||
src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/iar/startup_apm32f10x_hd.s']
|
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']
|
src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/gcc/startup_apm32f10x_hd.s']
|
||||||
|
|
||||||
# You can select chips from the list above
|
# You can select chips from the list above
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Split("""
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['gcc/' + 'startup_gcc.c']
|
src = src + ['gcc/' + 'startup_gcc.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['arm/' + 'startup_keil.s']
|
src = src + ['arm/' + 'startup_keil.s']
|
||||||
|
|
|
@ -17,7 +17,7 @@ path += [cwd + '/inc']
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
|
||||||
|
|
|
@ -17,7 +17,7 @@ path += [cwd + '/inc']
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
|
||||||
|
|
|
@ -17,7 +17,7 @@ path += [cwd + '/inc']
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
|
||||||
|
|
|
@ -17,7 +17,7 @@ path += [cwd + '/inc']
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
|
||||||
|
|
|
@ -9,7 +9,7 @@ CPPPATH = [cwd]
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = Glob('*.c') + Glob('*_rvds.S')
|
src = Glob('*.c') + Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
|
|
|
@ -9,7 +9,7 @@ CPPPATH = [cwd]
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = Glob('*.c') + Glob('*_rvds.S')
|
src = Glob('*.c') + Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
src = Glob('*.c') + Glob('*_gcc.S') + Glob('*_init.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
|
|
|
@ -11,7 +11,7 @@ CPPPATH = [cwd]
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_init.S')
|
src += Glob('*_init.S')
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ from building import *
|
||||||
# get current directory
|
# get current directory
|
||||||
cwd = GetCurrentDir()
|
cwd = GetCurrentDir()
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
compiler = 'GCC'
|
compiler = 'GCC'
|
||||||
|
|
||||||
# The set of source files associated with this SConscript file.
|
# The set of source files associated with this SConscript file.
|
||||||
|
|
|
@ -3,7 +3,7 @@ Import('RTT_ROOT')
|
||||||
from building import *
|
from building import *
|
||||||
|
|
||||||
src_bsp = ['application.c', 'startup.c', 'board.c']
|
src_bsp = ['application.c', 'startup.c', 'board.c']
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src_bsp.append('start_gcc.S')
|
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_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']
|
src_drv2 = ['drv_sdcard.c', 'drv_ethernet.c']
|
||||||
|
|
|
@ -11,7 +11,7 @@ src = []
|
||||||
src += Glob('ES32F065x_ALD_StdPeriph_Driver/Source/*.c')
|
src += Glob('ES32F065x_ALD_StdPeriph_Driver/Source/*.c')
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/gcc/startup_es32f065x.s']
|
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/gcc/startup_es32f065x.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/keil/startup_es32f065x.s']
|
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/keil/startup_es32f065x.s']
|
||||||
|
|
|
@ -11,7 +11,7 @@ src = []
|
||||||
src += Glob('ES32F36xx_ALD_StdPeriph_Driver/Source/*.c')
|
src += Glob('ES32F36xx_ALD_StdPeriph_Driver/Source/*.c')
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/gcc/startup_es32f36xx.S']
|
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/gcc/startup_es32f36xx.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/keil/startup_es32f36xx.s']
|
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/keil/startup_es32f36xx.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/gcc/startup_fm33lc0xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s']
|
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/ARM/startup_fm33lc0xx.s']
|
||||||
|
|
|
@ -11,7 +11,7 @@ src = Glob('MK64F12/*.c')
|
||||||
src += ['system_MK64F12.c']
|
src += ['system_MK64F12.c']
|
||||||
|
|
||||||
#add for startup script
|
#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_MK64F12.S']
|
||||||
src = src + ['TOOLCHAIN_GCC_ARM/startup.c']
|
src = src + ['TOOLCHAIN_GCC_ARM/startup.c']
|
||||||
path += [cwd + 'TOOLCHAIN_GCC_ARM']
|
path += [cwd + 'TOOLCHAIN_GCC_ARM']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/gcc/startup_ft32f072xb.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/arm/startup_ft32f072xb.s']
|
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/arm/startup_ft32f072xb.s']
|
||||||
|
|
|
@ -5,7 +5,7 @@ from building import *
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['start_gcc.S']
|
src = src + ['start_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['start_rvds.S']
|
src = src + ['start_rvds.S']
|
||||||
|
|
|
@ -7,7 +7,7 @@ src = Glob('*.c')
|
||||||
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
|
src = ['Device/FUJISTU/MB9BF50x/Source/system_mb9bf50x.c']
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
|
||||||
|
|
|
@ -11,7 +11,7 @@ CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport']
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['DeviceSupport/arm/startup_mb9bf56xr.s']
|
src += ['DeviceSupport/arm/startup_mb9bf56xr.s']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['DeviceSupport/gcc/startup_mb9bf56xr.S']
|
src += ['DeviceSupport/gcc/startup_mb9bf56xr.S']
|
||||||
|
|
||||||
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -8,7 +8,7 @@ src = Glob('DeviceSupport/fujitsu/mb9bf61x/*.c')
|
||||||
CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/']
|
CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport/fujitsu/mb9bf61x/']
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_hd.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_hd.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/GCC/startup_gd32f20x_cl.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s']
|
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/ARM/startup_gd32f20x_cl.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
|
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_cl.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s']
|
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_cl.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Glob('GD32F10x_standard_peripheral/Source/*.c')
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Glob('GD32F10x_standard_peripheral/Source/*.c')
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/system_gd32f10x.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/GCC/startup_gd32f10x_cl.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/ARM/startup_gd32f10x_cl.s']
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Glob('GD32F30x_standard_peripheral/Source/*.c')
|
||||||
src += [cwd + '/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c']
|
src += [cwd + '/CMSIS/GD/GD32F30x/Source/system_gd32f30x.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.S']
|
src += [cwd + '/CMSIS/GD/GD32F30x/Source/GCC/startup_gd32f30x_hd.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
|
src += [cwd + '/CMSIS/GD/GD32F30x/Source/ARM/startup_gd32f30x_hd.s']
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Glob('GD32F3x0_standard_peripheral/Source/*.c')
|
||||||
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/system_gd32f3x0.c']
|
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/system_gd32f3x0.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S']
|
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/ARM/startup_gd32f3x0.s']
|
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/ARM/startup_gd32f3x0.s']
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Glob('GD32F4xx_standard_peripheral/Source/*.c')
|
||||||
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c']
|
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/system_gd32f4xx.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S']
|
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/ARM/startup_gd32f4xx.s']
|
||||||
|
|
|
@ -28,7 +28,7 @@ if GetDepend(['RT_USING_SERIAL']):
|
||||||
src += ['HC32F460_StdPeriph_Driver/src/hc32f460_usart.c']
|
src += ['HC32F460_StdPeriph_Driver/src/hc32f460_usart.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/GCC/startup_hc32f460.S']
|
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/GCC/startup_hc32f460.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/ARM/startup_hc32f460.s']
|
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/ARM/startup_hc32f460.s']
|
||||||
|
|
|
@ -29,7 +29,7 @@ if GetDepend(['RT_USING_WDT']):
|
||||||
src += ['HC32L136_StdPeriph_Driver/src/wdt.c']
|
src += ['HC32L136_StdPeriph_Driver/src/wdt.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/GCC/startup_hc32l136.S']
|
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/GCC/startup_hc32l136.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/ARM/startup_hc32l136.s']
|
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/ARM/startup_hc32l136.s']
|
||||||
|
|
|
@ -21,7 +21,7 @@ if GetDepend(['RT_USING_SERIAL']):
|
||||||
src += ['HC32L196_StdPeriph_Driver/src/hc32l196_uart.c']
|
src += ['HC32L196_StdPeriph_Driver/src/hc32l196_uart.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/GCC/startup_hc32l19x.s']
|
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/GCC/startup_hc32l19x.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/ARM/startup_hc32l19x.s']
|
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/ARM/startup_hc32l19x.s']
|
||||||
|
|
|
@ -18,7 +18,7 @@ path += [cwd + '/msp']
|
||||||
startup_path_prefix = SDK_LIB
|
startup_path_prefix = SDK_LIB
|
||||||
|
|
||||||
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/system_hk32f0xx.c']
|
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']
|
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/gcc/startup_hk32f030x4x6x8.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/ARM/startup_hk32f030x4x6x8.s']
|
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/ARM/startup_hk32f030x4x6x8.s']
|
||||||
|
|
|
@ -7,7 +7,7 @@ CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -10,7 +10,7 @@ src = Split('''
|
||||||
MIMXRT1052/drivers/fsl_cache.c
|
MIMXRT1052/drivers/fsl_cache.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['MIMXRT1052/gcc/startup_MIMXRT1052.S']
|
src += ['MIMXRT1052/gcc/startup_MIMXRT1052.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['MIMXRT1052/arm/startup_MIMXRT1052.s']
|
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/fsl_os_abstraction_rtthread.c']
|
||||||
src += ['MIMXRT1052/drivers/generic_list.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')
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
|
||||||
else:
|
else:
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
|
@ -11,7 +11,7 @@ src = Split('''
|
||||||
MIMXRT1060/drivers/fsl_cache.c
|
MIMXRT1060/drivers/fsl_cache.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['MIMXRT1060/gcc/startup_MIMXRT1062.S']
|
src += ['MIMXRT1060/gcc/startup_MIMXRT1062.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['MIMXRT1060/arm/startup_MIMXRT1062.s']
|
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/fsl_os_abstraction_rtthread.c']
|
||||||
# src += ['MIMXRT1060/drivers/generic_list.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')
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
|
||||||
else:
|
else:
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
|
@ -10,7 +10,7 @@ MIMXRT1064/drivers/fsl_clock.c
|
||||||
MIMXRT1064/drivers/fsl_cache.c
|
MIMXRT1064/drivers/fsl_cache.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['MIMXRT1064/gcc/startup_MIMXRT1064.S']
|
src += ['MIMXRT1064/gcc/startup_MIMXRT1064.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['MIMXRT1064/arm/startup_MIMXRT1064.s']
|
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_lpuart_edma.c']
|
||||||
src += ['MIMXRT1064/drivers/fsl_lpspi_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')
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path, ASFLAGS = '$ASFLAGS -D __STARTUP_CLEAR_BSS')
|
||||||
else:
|
else:
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = path)
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.S']
|
src += ['startup/gcc/start_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
|
|
|
@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.S']
|
src += ['startup/gcc/start_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
|
|
|
@ -11,7 +11,7 @@ if rtconfig.PART_TYPE.startswith('PART_LM4F') != True:
|
||||||
SrcRemove(src, 'fpu.c')
|
SrcRemove(src, 'fpu.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc/start_gcc.c']
|
src += ['startup/gcc/start_gcc.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/arm/start_rvds.S']
|
src += ['startup/arm/start_rvds.S']
|
||||||
|
@ -21,7 +21,7 @@ elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.PART_TYPE]
|
CPPDEFINES = [rtconfig.PART_TYPE]
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES += ['gcc'];
|
CPPDEFINES += ['gcc'];
|
||||||
|
|
||||||
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
|
@ -7,7 +7,7 @@ cwd = GetCurrentDir()
|
||||||
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
src = ['CM3/DeviceSupport/NXP/LPC17xx/system_LPC17xx.c']
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
|
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/arm/startup_LPC17xx.s']
|
||||||
|
|
|
@ -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/']
|
CPPPATH = [cwd + '/CM3/CoreSupport', cwd + '/CM3/DeviceSupport/NXP/LPC177x_8x/']
|
||||||
|
|
||||||
# add for startup script
|
# 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']
|
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/gcc/startup_LPC177x_8x.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
|
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/arm/startup_LPC177x_8x.s']
|
||||||
|
|
|
@ -11,7 +11,7 @@ CPPPATH = [cwd + '/NXP/LPC407x_8x_177x_8x/Include', cwd + '/../CMSIS/Include']
|
||||||
CPPDEFINES = ['CORE_M4']
|
CPPDEFINES = ['CORE_M4']
|
||||||
|
|
||||||
# add for startup script
|
# 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']
|
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/GCC/startup_LPC407x_8x_177x_8x.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s']
|
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/ARM/startup_LPC407x_8x_177x_8x.s']
|
||||||
|
|
|
@ -12,14 +12,14 @@ CPPDEFINES = [rtconfig.USE_CORE]
|
||||||
CPPDEFINES += ['USE_SPIFI']
|
CPPDEFINES += ['USE_SPIFI']
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.USE_CORE =='CORE_M4':
|
if rtconfig.USE_CORE =='CORE_M4':
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s']
|
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s']
|
src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s']
|
src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx.s']
|
||||||
else:
|
else:
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s']
|
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s']
|
src += ['NXP/LPC43xx/Source/Templates/ARM/startup_LPC43xx_M0.s']
|
||||||
|
|
|
@ -26,7 +26,7 @@ Export('rtconfig')
|
||||||
# prepare building environment
|
# prepare building environment
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
import glob
|
import glob
|
||||||
# Remove the .o for M0 left on the drivers dir.
|
# Remove the .o for M0 left on the drivers dir.
|
||||||
for i in glob.glob(GetCurrentDir() + '/../drivers/*.o'):
|
for i in glob.glob(GetCurrentDir() + '/../drivers/*.o'):
|
||||||
|
|
|
@ -26,7 +26,7 @@ Export('rtconfig')
|
||||||
# prepare building environment
|
# prepare building environment
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
print('build M0 code first')
|
print('build M0 code first')
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
import glob
|
import glob
|
||||||
|
|
|
@ -12,7 +12,7 @@ CPPDEFINES = ['CORE_M4']
|
||||||
|
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['startup/gcc_startup_lpc5410x.c']
|
src += ['startup/gcc_startup_lpc5410x.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['startup/keil_startup_lpc5410x.s']
|
src += ['startup/keil_startup_lpc5410x.s']
|
||||||
|
|
|
@ -61,7 +61,7 @@ chip_5410x/wwdt_5410x.c
|
||||||
|
|
||||||
#lpc_chip\chip_5410x\power_lib\lpcxpresso
|
#lpc_chip\chip_5410x\power_lib\lpcxpresso
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
|
LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
|
||||||
LIBS = ['libpower']
|
LIBS = ['libpower']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -13,7 +13,7 @@ CPPDEFINES = []
|
||||||
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
|
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
|
||||||
objs = objs + SConscript(os.path.join('utilities', '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'))
|
objs = objs + SConscript(os.path.join('gcc', 'SConscript'))
|
||||||
CPPDEFINES += ['__USE_CMSIS']
|
CPPDEFINES += ['__USE_CMSIS']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -13,7 +13,7 @@ CPPDEFINES = []
|
||||||
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
|
objs = objs + SConscript(os.path.join('drivers', 'SConscript'))
|
||||||
objs = objs + SConscript(os.path.join('utilities', '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'))
|
objs = objs + SConscript(os.path.join('mcuxpresso', 'SConscript'))
|
||||||
CPPDEFINES += ['__USE_CMSIS']
|
CPPDEFINES += ['__USE_CMSIS']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -7,7 +7,7 @@ src = Split('''
|
||||||
LPC55S6X/system_LPC55S69_cm33_core0.c
|
LPC55S6X/system_LPC55S69_cm33_core0.c
|
||||||
''')
|
''')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['LPC55S6X/gcc/startup_LPC55S69_cm33_core0.S']
|
src += ['LPC55S6X/gcc/startup_LPC55S69_cm33_core0.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['LPC55S6X/arm/startup_LPC55S69_cm33_core0.s']
|
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_event.c']
|
||||||
src += ['middleware/sdmmc/port/sdif/rt_thread/fsl_sdmmc_host.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']
|
src += ['LPC55S6X/gcc/libpower_hardabi.a']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['LPC55S6X/arm/keil_lib_power_cm33_core0.lib']
|
src += ['LPC55S6X/arm/keil_lib_power_cm33_core0.lib']
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -6,7 +6,7 @@ src = Glob('main.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPDEFINES = ['__START=entry']
|
CPPDEFINES = ['__START=entry']
|
||||||
else:
|
else:
|
||||||
CPPDEFINES = []
|
CPPDEFINES = []
|
||||||
|
|
|
@ -11,7 +11,7 @@ src += Glob('common/board/*.c')
|
||||||
src += Glob('common/chip/*.c')
|
src += Glob('common/chip/*.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
print("not gcc startup file")
|
print("not gcc startup file")
|
||||||
exit(0)
|
exit(0)
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -5,7 +5,7 @@ cwd = GetCurrentDir()
|
||||||
src_c = Glob('*.c')
|
src_c = Glob('*.c')
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S']
|
src_asm = ['start_gcc.S', 'vectors_gcc.S', 'interrupts_gcc.S']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.CROSS_TOOL == 'iar':
|
||||||
src_asm = ['start_iar.asm', 'vectors_iar.asm', 'interrupts_iar.asm']
|
src_asm = ['start_iar.asm', 'vectors_iar.asm', 'interrupts_iar.asm']
|
||||||
|
|
|
@ -15,7 +15,7 @@ path = [cwd]
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/GCC/startup_max32660.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/ARM/startup_max32660.s']
|
src += [startup_path_prefix + '/MAX32660PeriphDriver/CMSIS/Device/Maxim/MAX32660/Source/ARM/startup_max32660.s']
|
||||||
|
|
|
@ -31,7 +31,7 @@ src += [cwd + '/atmel_start.c']
|
||||||
src += [cwd + '/driver_init.c']
|
src += [cwd + '/driver_init.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/samc21/gcc/system_samc21.c']
|
src += [cwd + '/samc21/gcc/system_samc21.c']
|
||||||
src += [cwd + '/samc21/gcc/gcc/startup_samc21.c']
|
src += [cwd + '/samc21/gcc/gcc/startup_samc21.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -35,7 +35,7 @@ src += [cwd + '/driver_init.c']
|
||||||
src += [cwd + '/ethernet_phy_main.c']
|
src += [cwd + '/ethernet_phy_main.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/gcc/system_same54.c']
|
src += [cwd + '/gcc/system_same54.c']
|
||||||
src += [cwd + '/gcc/gcc/startup_same54.c']
|
src += [cwd + '/gcc/gcc/startup_same54.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -29,7 +29,7 @@ src += [cwd + '/driver_init.c']
|
||||||
src += [cwd + '/ethernet_phy_main.c']
|
src += [cwd + '/ethernet_phy_main.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/same70b/gcc/system_same70q21b.c']
|
src += [cwd + '/same70b/gcc/system_same70q21b.c']
|
||||||
src += [cwd + '/same70b/gcc/gcc/startup_same70q21b.c']
|
src += [cwd + '/same70b/gcc/gcc/startup_same70q21b.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -28,7 +28,7 @@ src += [cwd + '/atmel_start.c']
|
||||||
src += [cwd + '/driver_init.c']
|
src += [cwd + '/driver_init.c']
|
||||||
|
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += [cwd + '/gcc/system_saml10e16a.c']
|
src += [cwd + '/gcc/system_saml10e16a.c']
|
||||||
src += [cwd + '/gcc/gcc/startup_saml10e16a.c']
|
src += [cwd + '/gcc/gcc/startup_saml10e16a.c']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
|
|
|
@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/CORE', cwd + '/MM32L0xx/Include', cwd + '/MM32L0xx/Sou
|
||||||
src += Glob('MM32L0xx/HAL_lib/src/*.c')
|
src += Glob('MM32L0xx/HAL_lib/src/*.c')
|
||||||
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
CPPDEFINES = ['USE_STDPERIPH_DRIVER']
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
|
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
|
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
|
||||||
|
|
|
@ -17,7 +17,7 @@ path += [cwd + '/msp']
|
||||||
|
|
||||||
startup_path_prefix = SDK_LIB
|
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']
|
src += [startup_path_prefix + '/N32_Std_Driver/CMSIS/device/startup/startup_n32g45x_gcc.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += [startup_path_prefix + '/N32_Std_Driver/CMSIS/device/startup/startup_n32g45x.s']
|
src += [startup_path_prefix + '/N32_Std_Driver/CMSIS/device/startup/startup_n32g45x.s']
|
||||||
|
|
|
@ -11,7 +11,7 @@ Nuvoton/M031/Source/system_M031Series.c
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S']
|
src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['Nuvoton/M031/Source/ARM/startup_M031Series.s']
|
src = src + ['Nuvoton/M031/Source/ARM/startup_M031Series.s']
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_keil']
|
libs += ['libstddriver_keil']
|
||||||
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
||||||
libs += ['libstddriver_keil4']
|
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']
|
libs += ['libstddriver_gcc']
|
||||||
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
||||||
libs += ['libstddriver_iar']
|
libs += ['libstddriver_iar']
|
||||||
|
|
|
@ -11,7 +11,7 @@ Nuvoton/M2354/Source/system_M2354.c
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S']
|
src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['Nuvoton/M2354/Source/ARM/startup_M2354.s']
|
src = src + ['Nuvoton/M2354/Source/ARM/startup_M2354.s']
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_keil']
|
libs += ['libstddriver_keil']
|
||||||
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
||||||
libs += ['libstddriver_keil4']
|
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']
|
libs += ['libstddriver_gcc']
|
||||||
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
||||||
libs += ['libstddriver_iar']
|
libs += ['libstddriver_iar']
|
||||||
|
|
|
@ -11,7 +11,7 @@ Nuvoton/M480/Source/system_M480.c
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# add for startup script
|
# add for startup script
|
||||||
if rtconfig.PLATFORM == 'gcc':
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S']
|
src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src = src + ['Nuvoton/M480/Source/ARM/startup_M480.s']
|
src = src + ['Nuvoton/M480/Source/ARM/startup_M480.s']
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_keil']
|
libs += ['libstddriver_keil']
|
||||||
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
elif GetOption('target') == 'mdk4' and os.path.isfile('./lib/libstddriver_keil4.lib'):
|
||||||
libs += ['libstddriver_keil4']
|
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']
|
libs += ['libstddriver_gcc']
|
||||||
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
elif os.path.isfile('./lib/libstddriver_iar.a'):
|
||||||
libs += ['libstddriver_iar']
|
libs += ['libstddriver_iar']
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_keil4']
|
libs += ['libstddriver_keil4']
|
||||||
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
|
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
|
||||||
libs += ['libstddriver_keil']
|
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']
|
libs += ['libstddriver_gcc']
|
||||||
|
|
||||||
if not libs:
|
if not libs:
|
||||||
|
|
|
@ -14,7 +14,7 @@ if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
|
||||||
libs += ['libstddriver_keil4']
|
libs += ['libstddriver_keil4']
|
||||||
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
|
if GetOption('target') == 'mdk5' and os.path.isfile('./Library/libstddriver_keil.lib'):
|
||||||
libs += ['libstddriver_keil']
|
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']
|
libs += ['libstddriver_gcc']
|
||||||
|
|
||||||
if not libs:
|
if not libs:
|
||||||
|
|
|
@ -7,7 +7,7 @@ CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
src += Glob('*_rvds.S')
|
src += Glob('*_rvds.S')
|
||||||
|
|
|
@ -12,7 +12,7 @@ list = os.listdir(cwd)
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
print("\nThe current project does not support iar build\n")
|
print("\nThe current project does not support iar build\n")
|
||||||
Return('group')
|
Return('group')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
src = Glob('./src/*.c')
|
src = Glob('./src/*.c')
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
elif rtconfig.PLATFORM == 'armclang':
|
||||||
|
|
|
@ -12,7 +12,7 @@ if GetDepend(['BSP_USING_RW007']):
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
LOCAL_CFLAGS = ''
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
|
if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
|
||||||
LOCAL_CFLAGS += ' -std=c99'
|
LOCAL_CFLAGS += ' -std=c99'
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CFLAGS += ' --c99'
|
LOCAL_CFLAGS += ' --c99'
|
||||||
|
|
|
@ -10,7 +10,7 @@ CPPPATH = []
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
print("\nThe current project does not support iar build\n")
|
print("\nThe current project does not support iar build\n")
|
||||||
Return('group')
|
Return('group')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob(cwd + '/fsp/src/bsp/mcu/all/*.c')
|
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/system.c']
|
||||||
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
|
src += [cwd + '/fsp/src/bsp/cmsis/Device/RENESAS/Source/startup.c']
|
||||||
|
|
|
@ -10,7 +10,7 @@ CPPPATH = []
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
print("\nThe current project does not support iar build\n")
|
print("\nThe current project does not support iar build\n")
|
||||||
Return('group')
|
Return('group')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
|
CPPPATH = [cwd+'/fsp_cfg', cwd + '/fsp_cfg/bsp']
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
elif rtconfig.PLATFORM == 'armclang':
|
||||||
|
|
|
@ -10,7 +10,7 @@ CPPPATH = []
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
print("\nThe current project does not support iar build\n")
|
print("\nThe current project does not support iar build\n")
|
||||||
Return('group')
|
Return('group')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd, ]
|
CPPPATH = [cwd, ]
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
elif rtconfig.PLATFORM == 'armclang':
|
||||||
|
|
|
@ -12,7 +12,7 @@ list = os.listdir(cwd)
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM == 'iar':
|
||||||
print("\nThe current project does not support iar build\n")
|
print("\nThe current project does not support iar build\n")
|
||||||
Return('group')
|
Return('group')
|
||||||
elif rtconfig.PLATFORM == 'gcc':
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
src = Glob('./src/*.c')
|
src = Glob('./src/*.c')
|
||||||
elif rtconfig.PLATFORM == 'armclang':
|
elif rtconfig.PLATFORM == 'armclang':
|
||||||
|
|
|
@ -12,7 +12,7 @@ if GetDepend(['BSP_USING_RW007']):
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
LOCAL_CFLAGS = ''
|
LOCAL_CFLAGS = ''
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'gcc' or rtconfig.PLATFORM == 'armclang':
|
if rtconfig.PLATFORM in ['gcc'] or rtconfig.PLATFORM == 'armclang':
|
||||||
LOCAL_CFLAGS += ' -std=c99'
|
LOCAL_CFLAGS += ' -std=c99'
|
||||||
elif rtconfig.PLATFORM == 'armcc':
|
elif rtconfig.PLATFORM == 'armcc':
|
||||||
LOCAL_CFLAGS += ' --c99'
|
LOCAL_CFLAGS += ' --c99'
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue