diff --git a/bsp/hc32f4a0/SConstruct b/bsp/hc32f4a0/SConstruct index b358e0d045..44815f607d 100644 --- a/bsp/hc32f4a0/SConstruct +++ b/bsp/hc32f4a0/SConstruct @@ -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 diff --git a/bsp/hc32f4a0/rtconfig.py b/bsp/hc32f4a0/rtconfig.py index 5a57c9a84e..102c1e07c3 100644 --- a/bsp/hc32f4a0/rtconfig.py +++ b/bsp/hc32f4a0/rtconfig.py @@ -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