修正了bsp/hc32f4a0的scons构建脚本里的语法错误
This commit is contained in:
parent
13b0b60b14
commit
dd33001682
|
@ -2,13 +2,13 @@ import os
|
|||
import sys
|
||||
import rtconfig
|
||||
|
||||
print "############sconstruct##############"
|
||||
print("############sconstruct##############")
|
||||
if os.getenv('RTT_ROOT'):
|
||||
RTT_ROOT = os.getenv('RTT_ROOT')
|
||||
else:
|
||||
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
|
||||
|
||||
print "RTT_ROOT: " + RTT_ROOT
|
||||
print("RTT_ROOT: " + RTT_ROOT)
|
||||
|
||||
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
|
||||
try:
|
||||
|
@ -37,8 +37,8 @@ Export('RTT_ROOT')
|
|||
Export('rtconfig')
|
||||
|
||||
# prepare building environment
|
||||
print "######################env:"
|
||||
print env
|
||||
print("######################env:")
|
||||
print(env)
|
||||
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
|
||||
|
||||
# make a building
|
||||
|
|
|
@ -5,12 +5,12 @@ ARCH='arm'
|
|||
CPU='cortex-m4'
|
||||
CROSS_TOOL='iar'
|
||||
|
||||
print "############rtconfig##############"
|
||||
print("############rtconfig##############")
|
||||
|
||||
if os.getenv('RTT_CC'):
|
||||
CROSS_TOOL = os.getenv('RTT_CC')
|
||||
|
||||
print "CROSS_TOOL: " + CROSS_TOOL
|
||||
print("CROSS_TOOL: " + CROSS_TOOL)
|
||||
|
||||
# cross_tool provides the cross compiler
|
||||
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
|
||||
|
|
Loading…
Reference in New Issue