[gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM (#5802)

* [gcc][armcc][armclang] rtconfig.CROSS_TOOL->rtconfig.PLATFORM
This commit is contained in:
Man, Jianting (Meco) 2022-04-19 21:56:04 -04:00 committed by GitHub
parent 08bebb40ba
commit a0f8d43744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
229 changed files with 416 additions and 416 deletions

View File

@ -11,9 +11,9 @@ CME_M7/system_cmem7.c
""") """)
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['CME_M7/startup/gcc/startup_CME_M7.c'] src += ['CME_M7/startup/gcc/startup_CME_M7.c']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['CME_M7/startup/arm/startup_cmem7.s'] src += ['CME_M7/startup/arm/startup_cmem7.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
print('================ERROR============================') print('================ERROR============================')

View File

@ -13,9 +13,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S'] src += [cwd + '/CMSIS/Vango/V85xx/Source/GCC/startup_target.S']
if rtconfig.CROSS_TOOL == 'keil': 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']
path = [ path = [

View File

@ -13,9 +13,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S'] src += [cwd + '/CMSIS/Vango/V85xxP/Source/GCC/startup_target.S']
if rtconfig.CROSS_TOOL == 'keil': 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']
path = [ path = [

View File

@ -25,9 +25,9 @@ HAL_Driver/Src/HAL_CRC.c
libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src'] libpath = ['.', cwd + '/Device', cwd + '/HAL_Driver/Src']
libs = [] libs = []
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['Device/Startup_ACM32F0x0_gcc.s'] src = src + ['Device/Startup_ACM32F0x0_gcc.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Device/Startup_ACM32F0x0.s'] src = src + ['Device/Startup_ACM32F0x0.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['Device/Startup_ACM32F0x0_iar.s'] src = src + ['Device/Startup_ACM32F0x0_iar.s']

View File

@ -18,9 +18,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['Device/Startup_ACM32F4_gcc.s'] src += ['Device/Startup_ACM32F4_gcc.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['Device/Startup_ACM32F4.s'] src += ['Device/Startup_ACM32F4.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['Device/Startup_ACM32F4_iar.s'] src += ['Device/Startup_ACM32F4_iar.s']

View File

@ -24,9 +24,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/HAL_Driver/Startup/iar/startup_gcc.s'] src += [startup_path_prefix + '/HAL_Driver/Startup/iar/startup_gcc.s']

View File

@ -7,7 +7,7 @@ path = [cwd + '/inc']
libs = [''] libs = ['']
libpath = [cwd + '/libs'] libpath = [cwd + '/libs']
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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']

View File

@ -15,13 +15,13 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/arm/startup_apm32f10x_hd.s'] src += [startup_path_prefix + '/APM32F10x_Library/Device/Geehy/APM32F10x/Source/arm/startup_apm32f10x_hd.s']
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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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

View File

@ -10,9 +10,9 @@ src = Split("""
""") """)
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['gcc/' + 'startup_gcc.c'] src = src + ['gcc/' + 'startup_gcc.c']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['arm/' + 'startup_keil.s'] src = src + ['arm/' + 'startup_keil.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['iar/' + 'startup_iar.c'] src = src + ['iar/' + 'startup_iar.c']

View File

@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']

View File

@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f403a_407.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f403a_407.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s'] src += [startup_path_prefix + '/f403a_407/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']

View File

@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']

View File

@ -17,9 +17,9 @@ path += [cwd + '/inc']
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/gcc/startup_at32f435_437.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/mdk/startup_at32f435_437.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s'] src += [startup_path_prefix + '/f435_437/firmware/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']

View File

@ -6,7 +6,7 @@ cwd = GetCurrentDir()
CPPPATH = [cwd] CPPPATH = [cwd]
# The set of source files associated with this SConscript file. # The set of source files associated with this SConscript file.
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == '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 == 'gcc':

View File

@ -6,7 +6,7 @@ cwd = GetCurrentDir()
CPPPATH = [cwd] CPPPATH = [cwd]
# The set of source files associated with this SConscript file. # The set of source files associated with this SConscript file.
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == '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 == 'gcc':

View File

@ -8,7 +8,7 @@ cwd = GetCurrentDir()
src = Glob('*.c') + Glob('*.cpp') src = Glob('*.c') + Glob('*.cpp')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('*_rvds.S') src += Glob('*_rvds.S')
if rtconfig.PLATFORM == 'gcc': if rtconfig.PLATFORM == 'gcc':

View File

@ -4,7 +4,7 @@ from building import *
# get current directory # get current directory
cwd = GetCurrentDir() cwd = GetCurrentDir()
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/iar/startup_es32f065x.s'] src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/iar/startup_es32f065x.s']

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/iar/startup_es32f36xx.s'] src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/iar/startup_es32f36xx.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s'] src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s']

View File

@ -11,11 +11,11 @@ src = Glob('MK64F12/*.c')
src += ['system_MK64F12.c'] src += ['system_MK64F12.c']
#add for startup script #add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['TOOLCHAIN_ARM_STD/startup_MK64F12.s'] src = src + ['TOOLCHAIN_ARM_STD/startup_MK64F12.s']
# elif rtconfig.CROSS_TOOL == 'iar': # elif rtconfig.CROSS_TOOL == 'iar':

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/iar/startup_ft32f072xb.s'] src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/iar/startup_ft32f072xb.s']

View File

@ -5,9 +5,9 @@ from building import *
src = Glob('*.c') src = Glob('*.c')
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['start_gcc.S'] src = src + ['start_gcc.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['start_rvds.S'] src = src + ['start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['start_iar.S'] src = src + ['start_iar.S']

View File

@ -7,9 +7,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S'] src += ['Device/FUJISTU/MB9BF50x/Source/G++/startup_mb9bf50x.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S'] src += ['Device/FUJISTU/MB9BF50x/Source/ARM/startup_mb9bf50x.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S'] src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']

View File

@ -8,10 +8,10 @@ src = Glob('DeviceSupport/*.c')
CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport'] CPPPATH = [cwd + '/Include', cwd + '/DeviceSupport']
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['DeviceSupport/arm/startup_mb9bf56xr.s'] src += ['DeviceSupport/arm/startup_mb9bf56xr.s']
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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)

View File

@ -8,9 +8,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c'] src += ['DeviceSupport/fujitsu/mb9bf61x/startup/gcc/startup_mb9bf61x.c']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S'] src += ['DeviceSupport/fujitsu/mb9bf61x/startup/arm/startup_mb9bf61x.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S'] src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S']

View File

@ -700,7 +700,7 @@ startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.CROSS_TOOL == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_hd.s'] src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_hd.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] src += [startup_path_prefix + '/GD32F10x_Firmware_Library/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s'] src += [startup_path_prefix + '/GD32F20x_Firmware_Library/CMSIS/GD/GD32F20x/Source/IAR/startup_gd32f20x_cl.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s'] src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s'] src += [startup_path_prefix + '/GD32F30x_Firmware_Library/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_cl.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] src += [startup_path_prefix + '/GD32F4xx_Firmware_Library/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']

View File

@ -10,9 +10,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']

View File

@ -10,9 +10,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s'] src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']

View File

@ -10,9 +10,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s'] src += [cwd + '/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s']

View File

@ -10,9 +10,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S'] src += [cwd + '/CMSIS/GD/GD32F3x0/Source/GCC/startup_gd32f3x0.S']
elif rtconfig.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/IAR/startup_gd32f3x0.s'] src += [cwd + '/CMSIS/GD/GD32F3x0/Source/IAR/startup_gd32f3x0.s']

View File

@ -10,9 +10,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S'] src += [cwd + '/CMSIS/GD/GD32F4xx/Source/GCC/startup_gd32f4xx.S']
elif rtconfig.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s'] src += [cwd + '/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']

View File

@ -10,7 +10,7 @@ src = Glob('GD32E230_standard_peripheral/Source/*.c')
src += [cwd + '/CMSIS/GD/GD32E230/Source/system_gd32e230.c'] src += [cwd + '/CMSIS/GD/GD32E230/Source/system_gd32e230.c']
#add for startup script #add for startup script
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/CMSIS/GD/GD32E230/Source/ARM/startup_gd32e230.s'] src += [cwd + '/CMSIS/GD/GD32E230/Source/ARM/startup_gd32e230.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/CMSIS/GD/GD32E230/Source/IAR/startup_gd32e230.s'] src += [cwd + '/CMSIS/GD/GD32E230/Source/IAR/startup_gd32e230.s']

View File

@ -27,9 +27,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/IAR/startup_hc32f460.s'] src = src + ['CMSIS/Device/HDSC/HC32F460/Source/IAR/startup_hc32f460.s']

View File

@ -51,9 +51,9 @@ if GetDepend(['RT_USING_HWTIMER']) or GetDepend(['RT_USING_PWM'] or GetDepend(['
src += ['HC32F4A0_StdPeriph_Driver/src/hc32f4a0_tmra.c'] src += ['HC32F4A0_StdPeriph_Driver/src/hc32f4a0_tmra.c']
#add for startup script #add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/GCC/startup_hc32f4a0.S'] src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/GCC/startup_hc32f4a0.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/ARM/startup_hc32f4a0.s'] src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/ARM/startup_hc32f4a0.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/IAR/startup_hc32f4a0.s'] src = src + ['CMSIS/Device/HDSC/HC32F4A0/Source/IAR/startup_hc32f4a0.s']

View File

@ -29,9 +29,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/IAR/startup_hc32l136.s'] src = src + ['CMSIS/Device/HDSC/HC32L136/Source/IAR/startup_hc32l136.s']

View File

@ -21,9 +21,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/IAR/startup_hc32l19x.s'] src = src + ['CMSIS/Device/HDSC/HC32L196/Source/IAR/startup_hc32l19x.s']

View File

@ -18,9 +18,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/iar/startup_hk32f030x4x6x8.s'] src += [startup_path_prefix + '/HK32F0xx_StdPeriph_Driver/CMSIS/HK32F0xx/Source/iar/startup_hk32f030x4x6x8.s']

View File

@ -9,7 +9,7 @@ if rtconfig.PLATFORM == 'iar':
src += Glob('*_iar.S') src += Glob('*_iar.S')
elif rtconfig.PLATFORM == 'gcc': elif rtconfig.PLATFORM == 'gcc':
src += Glob('*_gcc.S') src += Glob('*_gcc.S')
elif rtconfig.PLATFORM == 'armcc' or rtconfig.PLATFORM == 'armclang': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += Glob('*_rvds.S') src += Glob('*_rvds.S')
group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH) group = DefineGroup('CPU', src, depend = [''], CPPPATH = CPPPATH)

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -7,7 +7,7 @@ if GetDepend('BSP_USING_HYPERFLASH'):
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
LINKFLAGS = '--keep=*(.boot_hdr.ivt)' LINKFLAGS = '--keep=*(.boot_hdr.ivt)'
LINKFLAGS += '--keep=*(.boot_hdr.boot_data)' LINKFLAGS += '--keep=*(.boot_hdr.boot_data)'
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)' LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -16,7 +16,7 @@ CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', 'FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1', 'DATA_SECTION_IS_CACHEABLE=1'] CPPDEFINES = ['CPU_MIMXRT1062DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', 'FSL_SDK_DRIVER_QUICK_ACCESS_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1', 'DATA_SECTION_IS_CACHEABLE=1']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
CPPDEFINES.append('__FPU_PRESENT=1') CPPDEFINES.append('__FPU_PRESENT=1')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)

View File

@ -7,7 +7,7 @@ if GetDepend('BSP_USING_4MFLASH'):
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
LINKFLAGS = '--keep=*(.boot_hdr.ivt)' LINKFLAGS = '--keep=*(.boot_hdr.ivt)'
LINKFLAGS += '--keep=*(.boot_hdr.boot_data)' LINKFLAGS += '--keep=*(.boot_hdr.boot_data)'
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)' LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -15,7 +15,7 @@ CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1'] CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL=1','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', 'XIP_BOOT_HEADER_DCD_ENABLE=1']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
CPPDEFINES.append('__FPU_PRESENT=1') CPPDEFINES.append('__FPU_PRESENT=1')
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES) group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES=CPPDEFINES)

View File

@ -7,7 +7,7 @@ if GetDepend('BSP_USING_4MFLASH'):
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
LINKFLAGS = '--keep=*(.boot_hdr.ivt)' LINKFLAGS = '--keep=*(.boot_hdr.ivt)'
LINKFLAGS += '--keep=*(.boot_hdr.boot_data)' LINKFLAGS += '--keep=*(.boot_hdr.boot_data)'
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)' LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'

View File

@ -10,9 +10,9 @@ src = Split('''
MIMXRT1052/drivers/fsl_cache.c MIMXRT1052/drivers/fsl_cache.c
''') ''')
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['MIMXRT1052/gcc/startup_MIMXRT1052.S'] src += ['MIMXRT1052/gcc/startup_MIMXRT1052.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1052/arm/startup_MIMXRT1052.s'] src += ['MIMXRT1052/arm/startup_MIMXRT1052.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MIMXRT1052/iar/startup_MIMXRT1052.s'] src += ['MIMXRT1052/iar/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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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)

View File

@ -10,9 +10,9 @@ src = Split('''
MIMXRT1060/drivers/fsl_cache.c MIMXRT1060/drivers/fsl_cache.c
''') ''')
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['MIMXRT1060/gcc/startup_MIMXRT1062.S'] src += ['MIMXRT1060/gcc/startup_MIMXRT1062.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1060/arm/startup_MIMXRT1062.s'] src += ['MIMXRT1060/arm/startup_MIMXRT1062.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MIMXRT1060/iar/startup_MIMXRT1062.s'] src += ['MIMXRT1060/iar/startup_MIMXRT1062.s']
@ -99,7 +99,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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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)

View File

@ -10,9 +10,9 @@ MIMXRT1064/drivers/fsl_clock.c
MIMXRT1064/drivers/fsl_cache.c MIMXRT1064/drivers/fsl_cache.c
''') ''')
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['MIMXRT1064/gcc/startup_MIMXRT1064.S'] src += ['MIMXRT1064/gcc/startup_MIMXRT1064.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MIMXRT1064/arm/startup_MIMXRT1064.s'] src += ['MIMXRT1064/arm/startup_MIMXRT1064.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MIMXRT1064/iar/startup_MIMXRT1064.s'] src += ['MIMXRT1064/iar/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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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)

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -13,7 +13,7 @@ MCUX_Config/pin_mux.c
CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports'] CPPPATH = [cwd,cwd + '/MCUX_Config',cwd + '/ports']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'STD=C99', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', '__CC_ARM', 'NDEBUG', '__FPU_PRESENT=1'] CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'STD=C99', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1', '__CC_ARM', 'NDEBUG', '__FPU_PRESENT=1']
else: else:
CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'STD=C99', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1'] CPPDEFINES = ['CPU_MIMXRT1064DVL6A', 'STD=C99', 'SKIP_SYSCLK_INIT', 'EVK_MCIMXRM', 'FSL_SDK_ENABLE_DRIVER_CACHE_CONTROL','XIP_EXTERNAL_FLASH=1', 'XIP_BOOT_HEADER_ENABLE=1']

View File

@ -7,7 +7,7 @@ if GetDepend('BSP_USING_4MFLASH'):
src = Glob('*.c') src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
LINKFLAGS = '--keep=*(.boot_hdr.ivt)' LINKFLAGS = '--keep=*(.boot_hdr.ivt)'
LINKFLAGS += '--keep=*(.boot_hdr.boot_data)' LINKFLAGS += '--keep=*(.boot_hdr.boot_data)'
LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)' LINKFLAGS += '--keep=*(.boot_hdr.dcd_data)'

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['startup/gcc/start_gcc.S'] src += ['startup/gcc/start_gcc.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S'] src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['startup/iar/start_iar.S'] src += ['startup/iar/start_iar.S']

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['startup/gcc/start_gcc.S'] src += ['startup/gcc/start_gcc.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S'] src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['startup/iar/start_iar.S'] src += ['startup/iar/start_iar.S']

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['startup/gcc/start_gcc.c'] src += ['startup/gcc/start_gcc.c']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/arm/start_rvds.S'] src += ['startup/arm/start_rvds.S']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['startup/iar/start_iar.S'] src += ['startup/iar/start_iar.S']
@ -21,7 +21,7 @@ elif rtconfig.CROSS_TOOL == 'iar':
CPPPATH = [cwd] CPPPATH = [cwd]
CPPDEFINES = [rtconfig.PART_TYPE] CPPDEFINES = [rtconfig.PART_TYPE]
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES += ['gcc']; CPPDEFINES += ['gcc'];
group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) group = DefineGroup('Libraries', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

View File

@ -7,9 +7,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s'] src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/gcc/startup_LPC17xx.s']
elif rtconfig.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/iar/startup_LPC17xx.s'] src += ['CM3/DeviceSupport/NXP/LPC17xx/startup/iar/startup_LPC17xx.s']

View File

@ -8,9 +8,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s'] src += ['CM3/DeviceSupport/NXP/LPC177x_8x/startup/iar/startup_LPC177x_8x.s']

View File

@ -11,9 +11,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/IAR/startup_LPC407x_8x_177x_8x.s'] src += ['NXP/LPC407x_8x_177x_8x/Source/Templates/IAR/startup_LPC407x_8x_177x_8x.s']

View File

@ -12,16 +12,16 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s'] src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx.s']
elif rtconfig.CROSS_TOOL == 'keil': 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s'] src += ['NXP/LPC43xx/Source/Templates/GCC/startup_LPC43xx_M0.s']
elif rtconfig.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s'] src += ['NXP/LPC43xx/Source/Templates/IAR/startup_LPC43xx_M0.s']

View File

@ -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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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'):

View File

@ -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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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

View File

@ -12,9 +12,9 @@ CPPDEFINES = ['CORE_M4']
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['startup/gcc_startup_lpc5410x.c'] src += ['startup/gcc_startup_lpc5410x.c']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['startup/keil_startup_lpc5410x.s'] src += ['startup/keil_startup_lpc5410x.s']
group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES) group = DefineGroup('CMSIS', src, depend = [''], CPPPATH = CPPPATH, CPPDEFINES = CPPDEFINES)

View File

@ -61,10 +61,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso'] LIBPATH = [cwd + '/chip_5410x/power_lib/lpcxpresso']
LIBS = ['libpower'] LIBS = ['libpower']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
LIBPATH = [cwd + '/chip_5410x/power_lib/keil'] LIBPATH = [cwd + '/chip_5410x/power_lib/keil']
LIBS = ['lib_power'] LIBS = ['lib_power']

View File

@ -13,10 +13,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
objs = objs + SConscript(os.path.join('arm', 'SConscript')) objs = objs + SConscript(os.path.join('arm', 'SConscript'))
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
objs = objs + SConscript(os.path.join('iar', 'SConscript')) objs = objs + SConscript(os.path.join('iar', 'SConscript'))

View File

@ -13,10 +13,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
objs = objs + SConscript(os.path.join('arm', 'SConscript')) objs = objs + SConscript(os.path.join('arm', 'SConscript'))
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
objs = objs + SConscript(os.path.join('iar', 'SConscript')) objs = objs + SConscript(os.path.join('iar', 'SConscript'))

View File

@ -7,9 +7,9 @@ src = Split('''
LPC55S6X/system_LPC55S69_cm33_core0.c LPC55S6X/system_LPC55S69_cm33_core0.c
''') ''')
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['LPC55S6X/gcc/startup_LPC55S69_cm33_core0.S'] src += ['LPC55S6X/gcc/startup_LPC55S69_cm33_core0.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['LPC55S6X/arm/startup_LPC55S69_cm33_core0.s'] src += ['LPC55S6X/arm/startup_LPC55S69_cm33_core0.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['LPC55S6X/iar/startup_LPC55S69_cm33_core0.s'] src += ['LPC55S6X/iar/startup_LPC55S69_cm33_core0.s']
@ -58,9 +58,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['LPC55S6X/gcc/libpower_hardabi.a'] src += ['LPC55S6X/gcc/libpower_hardabi.a']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['LPC55S6X/arm/keil_lib_power_cm33_core0.lib'] src += ['LPC55S6X/arm/keil_lib_power_cm33_core0.lib']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['LPC55S6X/iar/iar_lib_power_cm33_core0.a'] src += ['LPC55S6X/iar/iar_lib_power_cm33_core0.a']

View File

@ -6,7 +6,7 @@ src = Glob('*.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -6,7 +6,7 @@ src = Glob('main.c')
CPPPATH = [cwd] CPPPATH = [cwd]
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
CPPDEFINES = ['__START=entry'] CPPDEFINES = ['__START=entry']
else: else:
CPPDEFINES = [] CPPDEFINES = []

View File

@ -11,10 +11,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
print("not gcc startup file") print("not gcc startup file")
exit(0) exit(0)
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/common/startup/keil_startup_lpc82x.s'] src += [cwd + '/common/startup/keil_startup_lpc82x.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += [cwd + '/common/startup/iar_startup_lpc82x.s'] src += [cwd + '/common/startup/iar_startup_lpc82x.s']

View File

@ -5,7 +5,7 @@ cwd = GetCurrentDir()
src_c = Glob('*.c') src_c = Glob('*.c')
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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']

View File

@ -15,9 +15,9 @@ path = [cwd]
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
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']

View File

@ -31,10 +31,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/samc21/armcc/arm_addon/armcc/' + 'system_samc21.c'] src += [cwd + '/samc21/armcc/arm_addon/armcc/' + 'system_samc21.c']
src += [cwd + '/samc21/armcc/arm_addon/armcc/arm/' + 'startup_samc21.s'] src += [cwd + '/samc21/armcc/arm_addon/armcc/arm/' + 'startup_samc21.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':

View File

@ -35,10 +35,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/armcc/arm_addon/armcc/' + 'system_same54.c'] src += [cwd + '/armcc/arm_addon/armcc/' + 'system_same54.c']
src += [cwd + '/armcc/arm_addon/armcc/arm/' + 'startup_same54.s'] src += [cwd + '/armcc/arm_addon/armcc/arm/' + 'startup_same54.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':

View File

@ -29,10 +29,10 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += [cwd + '/same70b/armcc/Source/' + 'system_same70q21b.c'] src += [cwd + '/same70b/armcc/Source/' + 'system_same70q21b.c']
src += [cwd + '/same70b/armcc/Source/ARM/' + 'startup_SAME70.s'] src += [cwd + '/same70b/armcc/Source/ARM/' + 'startup_SAME70.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':

View File

@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F103/Include', cwd + '/MM32F10
src += Glob('MM32F103/HAL_lib/src/*.c') src += Glob('MM32F103/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER'] CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MM32F103/Source/KEIL_StartAsm/startup_MM32F103.s'] src += ['MM32F103/Source/KEIL_StartAsm/startup_MM32F103.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32F103/Source/IAR_StartAsm/startup_MM32F103.s'] src += ['MM32F103/Source/IAR_StartAsm/startup_MM32F103.s']

View File

@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include', cwd + '/MM32F3
src += Glob('MM32F327x/HAL_lib/src/*.c') src += Glob('MM32F327x/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER'] CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MM32F327x/Source/KEIL_StartAsm/startup_mm32f327x_keil.s'] src += ['MM32F327x/Source/KEIL_StartAsm/startup_mm32f327x_keil.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32F327x/Source/IAR_StartAsm/startup_mm32f327x_iar.s'] src += ['MM32F327x/Source/IAR_StartAsm/startup_mm32f327x_iar.s']

View File

@ -7,9 +7,9 @@ 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.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s'] src += ['MM32L0xx/Source/GCC_StartAsm/startup_MM32L0xx.s']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s'] src += ['MM32L0xx/Source/KEIL_StartAsm/startup_MM32L0xx.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32L0xx/Source/IAR_StartAsm/startup_MM32L0xx.s'] src += ['MM32L0xx/Source/IAR_StartAsm/startup_MM32L0xx.s']

View File

@ -7,7 +7,7 @@ CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32L3xx/Include', cwd + '/MM32L3x
src += Glob('MM32L3xx/HAL_lib/src/*.c') src += Glob('MM32L3xx/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER'] CPPDEFINES = ['USE_STDPERIPH_DRIVER']
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s'] src += ['MM32L3xx/Source/KEIL_StartAsm/startup_MM32L3xx.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s'] src += ['MM32L3xx/Source/IAR_StartAsm/startup_MM32L3xx.s']

View File

@ -17,9 +17,9 @@ path += [cwd + '/msp']
startup_path_prefix = SDK_LIB startup_path_prefix = SDK_LIB
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == '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.CROSS_TOOL == 'keil': 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']
CPPDEFINES = ['N32G45X'] CPPDEFINES = ['N32G45X']

View File

@ -11,9 +11,9 @@ Nuvoton/M031/Source/system_M031Series.c
""") """)
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S'] src = src + ['Nuvoton/M031/Source/GCC/startup_M031Series.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M031/Source/ARM/startup_M031Series.s'] src = src + ['Nuvoton/M031/Source/ARM/startup_M031Series.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['Nuvoton/M031/Source/IAR/startup_M031Series.s'] src = src + ['Nuvoton/M031/Source/IAR/startup_M031Series.s']

View File

@ -9,12 +9,12 @@ cpppath = [cwd + '/inc']
libpath = [cwd + '/lib'] libpath = [cwd + '/lib']
if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'):
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.CROSS_TOOL == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'): elif rtconfig.PLATFORM == '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']

View File

@ -11,9 +11,9 @@ Nuvoton/M2354/Source/system_M2354.c
""") """)
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S'] src = src + ['Nuvoton/M2354/Source/GCC/startup_M2354.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M2354/Source/ARM/startup_M2354.s'] src = src + ['Nuvoton/M2354/Source/ARM/startup_M2354.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['Nuvoton/M2354/Source/IAR/startup_M2354.s'] src = src + ['Nuvoton/M2354/Source/IAR/startup_M2354.s']

View File

@ -9,12 +9,12 @@ cpppath = [cwd + '/inc']
libpath = [cwd + '/lib'] libpath = [cwd + '/lib']
if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'):
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.CROSS_TOOL == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'): elif rtconfig.PLATFORM == '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']

View File

@ -11,9 +11,9 @@ Nuvoton/M480/Source/system_M480.c
""") """)
# add for startup script # add for startup script
if rtconfig.CROSS_TOOL == 'gcc': if rtconfig.PLATFORM == 'gcc':
src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S'] src = src + ['Nuvoton/M480/Source/GCC/startup_M480.S']
elif rtconfig.CROSS_TOOL == 'keil': elif rtconfig.PLATFORM in ['armcc', 'armclang']:
src = src + ['Nuvoton/M480/Source/ARM/startup_M480.s'] src = src + ['Nuvoton/M480/Source/ARM/startup_M480.s']
elif rtconfig.CROSS_TOOL == 'iar': elif rtconfig.CROSS_TOOL == 'iar':
src = src + ['Nuvoton/M480/Source/IAR/startup_M480.s'] src = src + ['Nuvoton/M480/Source/IAR/startup_M480.s']

View File

@ -9,12 +9,12 @@ cpppath = [cwd + '/inc']
libpath = [cwd + '/lib'] libpath = [cwd + '/lib']
if not GetDepend('BSP_USE_STDDRIVER_SOURCE'): if not GetDepend('BSP_USE_STDDRIVER_SOURCE'):
if rtconfig.CROSS_TOOL == 'keil': if rtconfig.PLATFORM in ['armcc', 'armclang']:
if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'): if GetOption('target') == 'mdk5' and os.path.isfile('./lib/libstddriver_keil.lib'):
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.CROSS_TOOL == 'gcc' and os.path.isfile('./lib/libstddriver_gcc.a'): elif rtconfig.PLATFORM == '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']

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