[Scons][iar][iccarm] IAR统一使用iccarm作为判断条件而不是是用IDE的名字来进行判断
因为不确定后续IAR是否会像Keil一样内含有不同的编译工具链 此外,将判断条件改为列表方式,这样更方便后续增加其他可能的IAR编译链
This commit is contained in:
parent
50f041f5c2
commit
83b3aadaa3
|
@ -15,7 +15,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
print('================ERROR============================')
|
print('================ERROR============================')
|
||||||
print('Not support IAR yet!')
|
print('Not support IAR yet!')
|
||||||
print('=================================================')
|
print('=================================================')
|
||||||
|
|
|
@ -16,7 +16,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
||||||
|
|
|
@ -29,7 +29,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['Device/Startup_ACM32F0x0_iar.s']
|
src = src + ['Device/Startup_ACM32F0x0_iar.s']
|
||||||
|
|
||||||
path = [cwd + '/HAL_Driver/Inc',
|
path = [cwd + '/HAL_Driver/Inc',
|
||||||
|
|
|
@ -19,7 +19,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
||||||
|
|
|
@ -22,7 +22,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['Device/Startup_ACM32F4_iar.s']
|
src += ['Device/Startup_ACM32F4_iar.s']
|
||||||
|
|
||||||
path = [cwd + '/HAL_Driver/Inc',
|
path = [cwd + '/HAL_Driver/Inc',
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -28,7 +28,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/HAL_Driver/Startup/iar/startup_gcc.s']
|
src += [startup_path_prefix + '/HAL_Driver/Startup/iar/startup_gcc.s']
|
||||||
|
|
||||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -9,7 +9,7 @@ libpath = [cwd + '/libs']
|
||||||
|
|
||||||
if rtconfig.PLATFORM in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
libs += ['libsmartconfig_armcm4_gcc']
|
libs += ['libsmartconfig_armcm4_gcc']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
libs += ['libsmartconfig_armcm4_iar']
|
libs += ['libsmartconfig_armcm4_iar']
|
||||||
|
|
||||||
group = DefineGroup('Libraries', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
group = DefineGroup('Libraries', src, depend = ['RT_USING_SMARTCONFIG_LIB'], CPPPATH = path, LIBS = libs, LIBPATH = libpath)
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -18,7 +18,7 @@ startup_path_prefix = SDK_LIB
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
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.PLATFORM in ['iccarm']:
|
||||||
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 in ['gcc']:
|
if rtconfig.PLATFORM in ['gcc']:
|
||||||
|
|
|
@ -20,7 +20,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['iar/' + 'startup_iar.c']
|
src = src + ['iar/' + 'startup_iar.c']
|
||||||
|
|
||||||
path = [cwd]
|
path = [cwd]
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F403AVGT7']
|
CPPDEFINES = ['AT32F403AVGT7']
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
|
src += [startup_path_prefix + '/AT32F403A_407_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f403a_407.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F407VGT7']
|
CPPDEFINES = ['AT32F407VGT7']
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f413.s']
|
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f413.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f413.s']
|
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f413.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s']
|
src += [startup_path_prefix + '/AT32F413_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f413.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F413RCT7']
|
CPPDEFINES = ['AT32F413RCT7']
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f415.s']
|
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/gcc/startup_at32f415.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f415.s']
|
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/mdk/startup_at32f415.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s']
|
src += [startup_path_prefix + '/AT32F415_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f415.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F415RCT7']
|
CPPDEFINES = ['AT32F415RCT7']
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F435ZMT7']
|
CPPDEFINES = ['AT32F435ZMT7']
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -21,7 +21,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
|
src += [startup_path_prefix + '/AT32F435_437_Firmware_Library/cmsis/cm4/device_support/startup/iar/startup_at32f435_437.s']
|
||||||
|
|
||||||
CPPDEFINES = ['AT32F437ZMT7']
|
CPPDEFINES = ['AT32F437ZMT7']
|
||||||
|
|
|
@ -12,7 +12,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
if rtconfig.PLATFORM in ['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 in ['iccarm']:
|
||||||
src = Glob('*.c') + Glob('*_iar.S')
|
src = Glob('*.c') + Glob('*_iar.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'cl':
|
if rtconfig.PLATFORM == 'cl':
|
||||||
|
|
|
@ -12,7 +12,7 @@ if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
||||||
if rtconfig.PLATFORM in ['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 in ['iccarm']:
|
||||||
src = Glob('*.c') + Glob('*_iar.S')
|
src = Glob('*.c') + Glob('*_iar.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'cl':
|
if rtconfig.PLATFORM == 'cl':
|
||||||
|
|
|
@ -15,7 +15,7 @@ if rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_init.S')
|
src += Glob('*_init.S')
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
|
|
||||||
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
group = DefineGroup('cpu', src, depend = [''], CPPPATH = CPPPATH)
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -15,7 +15,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/iar/startup_es32f065x.s']
|
src = src + ['CMSIS/Device/EastSoft/ES32F065x/Startup/iar/startup_es32f065x.s']
|
||||||
|
|
||||||
path = [cwd + '/CMSIS/Device/EastSoft/ES32F065x/Include',
|
path = [cwd + '/CMSIS/Device/EastSoft/ES32F065x/Include',
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -15,7 +15,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/iar/startup_es32f36xx.s']
|
src = src + ['CMSIS/Device/EastSoft/ES32F36xx/Startup/iar/startup_es32f36xx.s']
|
||||||
|
|
||||||
path = [cwd + '/CMSIS/Device/EastSoft/ES32F36xx/Include',
|
path = [cwd + '/CMSIS/Device/EastSoft/ES32F36xx/Include',
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map rt-thread.map'])
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s']
|
src += [startup_path_prefix + '/FM/FM33xx/Source/Templates/iar/startup_fm33lc0xx.s']
|
||||||
|
|
||||||
# FM33LC0XX
|
# FM33LC0XX
|
||||||
|
|
|
@ -20,7 +20,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
||||||
|
|
|
@ -17,7 +17,7 @@ if rtconfig.PLATFORM in ['gcc']:
|
||||||
path += [cwd + 'TOOLCHAIN_GCC_ARM']
|
path += [cwd + 'TOOLCHAIN_GCC_ARM']
|
||||||
elif rtconfig.PLATFORM in ['armcc', 'armclang']:
|
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.PLATFORM in ['iccarm']:
|
||||||
|
|
||||||
CPPDEFINES = ['CPU_MK64FN1M0VLL12']
|
CPPDEFINES = ['CPU_MK64FN1M0VLL12']
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/iar/startup_ft32f072xb.s']
|
src += [startup_path_prefix + '/FT32F0xx/CMSIS/FT32F0xx/source/iar/startup_ft32f072xb.s']
|
||||||
|
|
||||||
# FT32F072x8 || FT32F072xB
|
# FT32F072x8 || FT32F072xB
|
||||||
|
|
|
@ -9,7 +9,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['start_iar.S']
|
src = src + ['start_iar.S']
|
||||||
|
|
||||||
CPPPATH = [GetCurrentDir()]
|
CPPPATH = [GetCurrentDir()]
|
||||||
|
|
|
@ -20,7 +20,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -20,7 +20,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -11,7 +11,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
src += ['Device/FUJISTU/MB9BF50x/Source/IAR/startup_mb9bf50x.S']
|
||||||
|
|
||||||
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
CPPPATH = [cwd + '/Device/FUJISTU/MB9BF50x/Include']
|
||||||
|
|
|
@ -21,7 +21,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
env.Replace(LINKCOM = ['$LINK $SOURCES $LINKFLAGS -o $TARGET --map project.map'])
|
||||||
|
|
|
@ -12,7 +12,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S']
|
src += ['DeviceSupport/fujitsu/mb9bf61x/startup/iar/startup_mb9bf61x.S']
|
||||||
|
|
||||||
CPPDEFINES = [rtconfig.FM3_TYPE]
|
CPPDEFINES = [rtconfig.FM3_TYPE]
|
||||||
|
|
|
@ -20,7 +20,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F10X_HD']
|
CPPDEFINES = ['GD32F10X_HD']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F10X_CL']
|
CPPDEFINES = ['GD32F10X_CL']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F10X_CL']
|
CPPDEFINES = ['GD32F10X_CL']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F10X_CL']
|
CPPDEFINES = ['GD32F10X_CL']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F20X_CL']
|
CPPDEFINES = ['GD32F20X_CL']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F30X_HD']
|
CPPDEFINES = ['GD32F30X_HD']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F30X_CL']
|
CPPDEFINES = ['GD32F30X_CL']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F407']
|
CPPDEFINES = ['GD32F407']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F450']
|
CPPDEFINES = ['GD32F450']
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -19,7 +19,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['GD32F450']
|
CPPDEFINES = ['GD32F450']
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']
|
src += [cwd + '/CMSIS/GD/GD32F10x/Source/IAR/startup_gd32f10x_cl.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s']
|
src += [cwd + '/CMSIS/GD/GD32F30x/Source/IAR/startup_gd32f30x_hd.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/IAR/startup_gd32f3x0.s']
|
src += [cwd + '/CMSIS/GD/GD32F3x0/Source/IAR/startup_gd32f3x0.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -14,7 +14,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']
|
src += [cwd + '/CMSIS/GD/GD32F4xx/Source/IAR/startup_gd32f4xx.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -12,7 +12,7 @@ src += [cwd + '/CMSIS/GD/GD32E230/Source/system_gd32e230.c']
|
||||||
#add for startup script
|
#add for startup script
|
||||||
if rtconfig.PLATFORM in ['armcc', 'armclang']:
|
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.PLATFORM in ['iccarm']:
|
||||||
src += [cwd + '/CMSIS/GD/GD32E230/Source/IAR/startup_gd32e230.s']
|
src += [cwd + '/CMSIS/GD/GD32E230/Source/IAR/startup_gd32e230.s']
|
||||||
|
|
||||||
path = [
|
path = [
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -26,7 +26,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -25,7 +25,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/GCC/startup_hc32f4a0.S']
|
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/GCC/startup_hc32f4a0.S']
|
||||||
elif rtconfig.CROSS_TOOL == 'keil':
|
elif rtconfig.CROSS_TOOL == 'keil':
|
||||||
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/ARM/startup_hc32f4a0.s']
|
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/ARM/startup_hc32f4a0.s']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/IAR/startup_hc32f4a0.s']
|
src += [startup_path_prefix + '/hc32f4a0_ddl/drivers/cmsis/Device/HDSC/hc32f4xx/Source/IAR/startup_hc32f4a0.s']
|
||||||
|
|
||||||
CPPDEFINES = ['HC32F4A0']
|
CPPDEFINES = ['HC32F4A0']
|
||||||
|
|
|
@ -32,7 +32,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/IAR/startup_hc32f460.s']
|
src = src + ['CMSIS/Device/HDSC/HC32F460/Source/IAR/startup_hc32f460.s']
|
||||||
|
|
||||||
#add headfile script
|
#add headfile script
|
||||||
|
|
|
@ -28,7 +28,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -33,7 +33,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/IAR/startup_hc32l136.s']
|
src = src + ['CMSIS/Device/HDSC/HC32L136/Source/IAR/startup_hc32l136.s']
|
||||||
|
|
||||||
#add headfile script
|
#add headfile script
|
||||||
|
|
|
@ -28,7 +28,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -25,7 +25,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/IAR/startup_hc32l19x.s']
|
src = src + ['CMSIS/Device/HDSC/HC32L196/Source/IAR/startup_hc32l19x.s']
|
||||||
|
|
||||||
#add headfile script
|
#add headfile script
|
||||||
|
|
|
@ -28,7 +28,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rt-thread.map')
|
||||||
|
|
|
@ -25,7 +25,7 @@ env = Environment(tools = ['mingw'],
|
||||||
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
LINK = rtconfig.LINK, LINKFLAGS = rtconfig.LFLAGS)
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map project.map')
|
||||||
|
|
|
@ -22,7 +22,7 @@ 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']
|
||||||
elif rtconfig.CROSS_TOOL == 'iar':
|
elif rtconfig.PLATFORM in ['iccarm']:
|
||||||
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']
|
||||||
|
|
||||||
CPPDEFINES = ['HK32F030x8']
|
CPPDEFINES = ['HK32F030x8']
|
||||||
|
|
|
@ -5,7 +5,7 @@ cwd = GetCurrentDir()
|
||||||
src = Glob('*.c')
|
src = Glob('*.c')
|
||||||
CPPPATH = [cwd]
|
CPPPATH = [cwd]
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
src += Glob('*_iar.S')
|
src += Glob('*_iar.S')
|
||||||
elif rtconfig.PLATFORM in ['gcc']:
|
elif rtconfig.PLATFORM in ['gcc']:
|
||||||
src += Glob('*_gcc.S')
|
src += Glob('*_gcc.S')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
|
@ -37,7 +37,7 @@ else:
|
||||||
|
|
||||||
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
env.PrependENVPath('PATH', rtconfig.EXEC_PATH)
|
||||||
|
|
||||||
if rtconfig.PLATFORM == 'iar':
|
if rtconfig.PLATFORM in ['iccarm']:
|
||||||
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
env.Replace(CCCOM = ['$CC $CCFLAGS $CPPFLAGS $_CPPDEFFLAGS $_CPPINCFLAGS -o $TARGET $SOURCES'])
|
||||||
env.Replace(ARFLAGS = [''])
|
env.Replace(ARFLAGS = [''])
|
||||||
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
env.Replace(LINKCOM = env["LINKCOM"] + ' --map rtthread.map')
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue