修正了bsp/hc32f4a0的scons构建脚本里的语法错误

This commit is contained in:
QPLover 2021-09-21 16:33:41 +08:00
parent 13b0b60b14
commit dd33001682
2 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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