Skip to content

Commit e60213e

Browse files
authored
Merge pull request #5084 from QPLover/master
修正了bsp/hc32f4a0的scons构建脚本里的语法错误
2 parents 8bf5c27 + dd33001 commit e60213e

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

bsp/hc32f4a0/SConstruct

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ import os
22
import sys
33
import rtconfig
44

5-
print "############sconstruct##############"
5+
print("############sconstruct##############")
66
if os.getenv('RTT_ROOT'):
77
RTT_ROOT = os.getenv('RTT_ROOT')
88
else:
99
RTT_ROOT = os.path.normpath(os.getcwd() + '/../..')
1010

11-
print "RTT_ROOT: " + RTT_ROOT
11+
print("RTT_ROOT: " + RTT_ROOT)
1212

1313
sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
1414
try:
@@ -37,8 +37,8 @@ Export('RTT_ROOT')
3737
Export('rtconfig')
3838

3939
# prepare building environment
40-
print "######################env:"
41-
print env
40+
print("######################env:")
41+
print(env)
4242
objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
4343

4444
# make a building

bsp/hc32f4a0/rtconfig.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
CPU='cortex-m4'
66
CROSS_TOOL='iar'
77

8-
print "############rtconfig##############"
8+
print("############rtconfig##############")
99

1010
if os.getenv('RTT_CC'):
1111
CROSS_TOOL = os.getenv('RTT_CC')
1212

13-
print "CROSS_TOOL: " + CROSS_TOOL
13+
print("CROSS_TOOL: " + CROSS_TOOL)
1414

1515
# cross_tool provides the cross compiler
1616
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR

0 commit comments

Comments
 (0)