update SConscript: support scons 3.
This commit is contained in:
parent
e20fb2f5b2
commit
19433e0cf5
|
@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'C:/Program Files/Atmel/AVR Tools/AVR Toolchain/bin'
|
EXEC_PATH = 'C:/Program Files/Atmel/AVR Tools/AVR Toolchain/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support keil yet!'
|
print('Not support keil yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support IAR yet!'
|
print('Not support IAR yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -13,14 +13,14 @@ if CROSS_TOOL == 'gcc':
|
||||||
EXEC_PATH = 'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin'
|
EXEC_PATH = 'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite\bin'
|
||||||
#EXEC_PATH = 'C:\Program Files (x86)\yagarto\bin'
|
#EXEC_PATH = 'C:\Program Files (x86)\yagarto\bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support keil yet!'
|
print('Not support keil yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil'
|
EXEC_PATH = r'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-gd32f4xx.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-gd32f4xx.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -13,9 +13,9 @@ if os.getenv('RTT_ROOT'):
|
||||||
# cross_tool provides the cross compiler
|
# cross_tool provides the cross compiler
|
||||||
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support gcc yet!'
|
print('Not support gcc yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
|
|
|
@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -20,9 +20,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil'
|
EXEC_PATH = r'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:\Keil'
|
EXEC_PATH = 'C:\Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'D:/Keil'
|
EXEC_PATH = 'D:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -29,7 +29,7 @@ if rtconfig.CROSS_TOOL == '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'):
|
||||||
print 'RM %s' % i
|
print('RM %s' % i)
|
||||||
os.unlink(i)
|
os.unlink(i)
|
||||||
|
|
||||||
if sys.platform.startswith('linux'):
|
if sys.platform.startswith('linux'):
|
||||||
|
@ -40,7 +40,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
else:
|
else:
|
||||||
# Assume Windows.
|
# Assume Windows.
|
||||||
ocwd = os.getcwdu()
|
ocwd = os.getcwdu()
|
||||||
print 'TODO: remove the object files in ../Libraries'
|
print('TODO: remove the object files in ../Libraries')
|
||||||
os.chdir(ocwd)
|
os.chdir(ocwd)
|
||||||
|
|
||||||
# do building
|
# do building
|
||||||
|
|
|
@ -26,14 +26,14 @@ Export('rtconfig')
|
||||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
if rtconfig.CROSS_TOOL == 'gcc':
|
if rtconfig.CROSS_TOOL == '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
|
||||||
ocwd = os.getcwdu()
|
ocwd = os.getcwdu()
|
||||||
os.chdir('../M0')
|
os.chdir('../M0')
|
||||||
res = os.system('scons')
|
res = os.system('scons')
|
||||||
if res:
|
if res:
|
||||||
print 'build M0 exit with code %d\n' % res
|
print('build M0 exit with code %d\n' % res)
|
||||||
sys.exit(res)
|
sys.exit(res)
|
||||||
os.chdir(ocwd)
|
os.chdir(ocwd)
|
||||||
res = os.system('cd ../Libraries/; find -name \*.o -exec rm {} \;')
|
res = os.system('cd ../Libraries/; find -name \*.o -exec rm {} \;')
|
||||||
|
@ -47,7 +47,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
|
||||||
|
|
||||||
# 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'):
|
||||||
print 'RM %s' % i
|
print('RM %s' % i)
|
||||||
os.unlink(i)
|
os.unlink(i)
|
||||||
|
|
||||||
# do building
|
# do building
|
||||||
|
|
|
@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'D:/Keil_v5'
|
EXEC_PATH = 'D:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,9 +11,9 @@ if os.getenv('RTT_CC'):
|
||||||
# cross_tool provides the cross compiler
|
# cross_tool provides the cross compiler
|
||||||
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support gcc yet!'
|
print('Not support gcc yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/keil_v5'
|
EXEC_PATH = 'C:/keil_v5'
|
||||||
|
|
|
@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = r'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin'
|
EXEC_PATH = r'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin'
|
||||||
else:
|
else:
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support %s yet!' % CROSS_TOOL
|
print('Not support %s yet!' % CROSS_TOOL)
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ if CROSS_TOOL == 'gcc':
|
||||||
# EXEC_PATH = "/opt/mips-2015.05/bin"
|
# EXEC_PATH = "/opt/mips-2015.05/bin"
|
||||||
EXEC_PATH = r'D:\mgc\embedded\codebench\bin'
|
EXEC_PATH = r'D:\mgc\embedded\codebench\bin'
|
||||||
else:
|
else:
|
||||||
print '================ERROR==========================='
|
print('================ERROR===========================')
|
||||||
print 'Not support %s yet!' % CROSS_TOOL
|
print('Not support %s yet!' % CROSS_TOOL)
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'iar':
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
||||||
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support keil yet!'
|
print('Not support keil yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil_MDK_471'
|
EXEC_PATH = 'C:/Keil_MDK_471'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,17 +11,17 @@ if os.getenv('RTT_CC'):
|
||||||
CROSS_TOOL = os.getenv('RTT_CC')
|
CROSS_TOOL = os.getenv('RTT_CC')
|
||||||
|
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support gcc yet!'
|
print('Not support gcc yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'c:/Keil'
|
EXEC_PATH = 'c:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil_v5'
|
EXEC_PATH = 'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
|
EXEC_PATH = 'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -29,7 +29,7 @@ if GetDepend('RT_USING_VMM'):
|
||||||
if os.system('{cppcmd} -P -C -E -I. -D__ASSEMBLY__ {ldfile}.S -o {ldfile}'.format(
|
if os.system('{cppcmd} -P -C -E -I. -D__ASSEMBLY__ {ldfile}.S -o {ldfile}'.format(
|
||||||
cppcmd = os.path.join(rtconfig.EXEC_PATH, 'arm-none-eabi-gcc'),
|
cppcmd = os.path.join(rtconfig.EXEC_PATH, 'arm-none-eabi-gcc'),
|
||||||
ldfile = rtconfig.LINK_SCRIPT)) != 0:
|
ldfile = rtconfig.LINK_SCRIPT)) != 0:
|
||||||
print 'failed to generate linker script %s' % rtconfig.LINK_SCRIPT
|
print('failed to generate linker script %s' % rtconfig.LINK_SCRIPT)
|
||||||
sys.exit(255)
|
sys.exit(255)
|
||||||
# if the linker script changed, relink the target
|
# if the linker script changed, relink the target
|
||||||
Depends(TARGET, rtconfig.LINK_SCRIPT)
|
Depends(TARGET, rtconfig.LINK_SCRIPT)
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support IAR yet!'
|
print('Not support IAR yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -22,9 +22,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = '/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/bin/'
|
EXEC_PATH = '/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/bin/'
|
||||||
else :
|
else :
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support yet!'
|
print('Not support yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -80,7 +80,7 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||||
|
|
||||||
def ObjRemove(objs, remove):
|
def ObjRemove(objs, remove):
|
||||||
for item in objs:
|
for item in objs:
|
||||||
# print type(item), os.path.basename(str(item))
|
# print(type(item), os.path.basename(str(item)) )
|
||||||
if os.path.basename(str(item)) in remove:
|
if os.path.basename(str(item)) in remove:
|
||||||
objs.remove(item)
|
objs.remove(item)
|
||||||
return
|
return
|
||||||
|
|
|
@ -27,7 +27,7 @@ elif CROSS_TOOL == 'msvc':
|
||||||
PLATFORM = 'cl'
|
PLATFORM = 'cl'
|
||||||
EXEC_PATH = ''
|
EXEC_PATH = ''
|
||||||
else:
|
else:
|
||||||
print "bad CROSS TOOL!"
|
print("bad CROSS TOOL!")
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil'
|
EXEC_PATH = r'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f411.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f411.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil'
|
EXEC_PATH = r'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f4xx.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f7xx.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f7xx.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32h7xx.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32h7xx.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
|
EXEC_PATH = 'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32f42x.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||||
try:
|
try:
|
||||||
from building import *
|
from building import *
|
||||||
except:
|
except:
|
||||||
print 'Cannot found RT-Thread root directory, please check RTT_ROOT'
|
print('Cannot found RT-Thread root directory, please check RTT_ROOT')
|
||||||
print RTT_ROOT
|
print(RTT_ROOT)
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
||||||
TARGET = 'rtthread-stm32l476.' + rtconfig.TARGET_EXT
|
TARGET = 'rtthread-stm32l476.' + rtconfig.TARGET_EXT
|
||||||
|
|
|
@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'C:/Keil_v5'
|
EXEC_PATH = r'C:/Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = r'D:\Keil_v5'
|
EXEC_PATH = r'D:\Keil_v5'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -10,17 +10,17 @@ if os.getenv('RTT_CC'):
|
||||||
CROSS_TOOL = os.getenv('RTT_CC')
|
CROSS_TOOL = os.getenv('RTT_CC')
|
||||||
|
|
||||||
if CROSS_TOOL == 'gcc':
|
if CROSS_TOOL == 'gcc':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support gcc yet!'
|
print('Not support gcc yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
PLATFORM = 'iar'
|
PLATFORM = 'iar'
|
||||||
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
|
IAR_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support keil yet!'
|
print('Not support keil yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -12,7 +12,7 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = r'E:\work\env\tools\gnu_gcc\mips_gcc\mips-2016.05\bin'
|
EXEC_PATH = r'E:\work\env\tools\gnu_gcc\mips_gcc\mips-2016.05\bin'
|
||||||
else:
|
else:
|
||||||
print 'Please make sure your toolchains is GNU GCC!'
|
print('Please make sure your toolchains is GNU GCC!')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
|
||||||
PLATFORM = 'gcc'
|
PLATFORM = 'gcc'
|
||||||
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_IA32_ELF/bin'
|
EXEC_PATH = 'E:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_IA32_ELF/bin'
|
||||||
elif CROSS_TOOL == 'keil':
|
elif CROSS_TOOL == 'keil':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support keil yet!'
|
print('Not support keil yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support iar yet!'
|
print('Not support iar yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
|
||||||
PLATFORM = 'armcc'
|
PLATFORM = 'armcc'
|
||||||
EXEC_PATH = 'C:/Keil'
|
EXEC_PATH = 'C:/Keil'
|
||||||
elif CROSS_TOOL == 'iar':
|
elif CROSS_TOOL == 'iar':
|
||||||
print '================ERROR============================'
|
print('================ERROR============================')
|
||||||
print 'Not support IAR yet!'
|
print('Not support IAR yet!')
|
||||||
print '================================================='
|
print('=================================================')
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
if os.getenv('RTT_EXEC_PATH'):
|
if os.getenv('RTT_EXEC_PATH'):
|
||||||
|
|
|
@ -50,7 +50,7 @@ class File(object):
|
||||||
return bytes(self._data)
|
return bytes(self._data)
|
||||||
|
|
||||||
def dump(self, indent=0):
|
def dump(self, indent=0):
|
||||||
print '%s%s' % (' ' * indent, self._name)
|
print('%s%s' % (' ' * indent, self._name))
|
||||||
|
|
||||||
class Folder(object):
|
class Folder(object):
|
||||||
bin_fmt = struct.Struct('IIII')
|
bin_fmt = struct.Struct('IIII')
|
||||||
|
@ -108,7 +108,7 @@ class Folder(object):
|
||||||
c.sort()
|
c.sort()
|
||||||
|
|
||||||
def dump(self, indent=0):
|
def dump(self, indent=0):
|
||||||
print '%s%s' % (' ' * indent, self._name)
|
print('%s%s' % (' ' * indent, self._name))
|
||||||
for c in self._children:
|
for c in self._children:
|
||||||
c.dump(indent + 1)
|
c.dump(indent + 1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue