summaryrefslogtreecommitdiff
path: root/bsp
diff options
context:
space:
mode:
authorBernard Xiong <[email protected]>2021-03-27 15:00:12 +0800
committerGitHub <[email protected]>2021-03-27 15:00:12 +0800
commit6ebb8a7eb47d6db1139f9afbbc62cc73b9ec0008 (patch)
treef55ad6518752ebb32aca212ea3372e26f0c79b6b /bsp
parent575bbfd7efdd27f13e1c2e6e1ab4dd3a956825e5 (diff)
parentfca385063382fba54e565f215e143b50361153fe (diff)
Merge pull request #4516 from nongxiaoming/fix_bug
[bsp][nuvoton] update to compatible with Python 3.
Diffstat (limited to 'bsp')
-rw-r--r--bsp/nuvoton/libraries/m2354/rtt_port/SConscript8
-rw-r--r--bsp/nuvoton/libraries/m480/rtt_port/SConscript20
2 files changed, 14 insertions, 14 deletions
diff --git a/bsp/nuvoton/libraries/m2354/rtt_port/SConscript b/bsp/nuvoton/libraries/m2354/rtt_port/SConscript
index 549b75901b..0822565fbb 100644
--- a/bsp/nuvoton/libraries/m2354/rtt_port/SConscript
+++ b/bsp/nuvoton/libraries/m2354/rtt_port/SConscript
@@ -10,12 +10,12 @@ group = []
# USB driver constrain
if GetDepend('BOARD_USING_USBD') and ( GetDepend('BSP_USING_OTG') or GetDepend('BSP_USING_USBH') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_USBD. Please de-select BSP_USING_OTG and BSP_USING_USBH.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_USBD. Please de-select BSP_USING_OTG and BSP_USING_USBH.')
sys.exit(1)
elif GetDepend('BOARD_USING_USBH') and ( GetDepend('BSP_USING_OTG') or GetDepend('BSP_USING_USBD') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_USBH. Please de-select BSP_USING_OTG and BSP_USING_USBD options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_USBH. Please de-select BSP_USING_OTG and BSP_USING_USBD options.')
sys.exit(1)
else:
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)
diff --git a/bsp/nuvoton/libraries/m480/rtt_port/SConscript b/bsp/nuvoton/libraries/m480/rtt_port/SConscript
index 77bd290714..2e80314127 100644
--- a/bsp/nuvoton/libraries/m480/rtt_port/SConscript
+++ b/bsp/nuvoton/libraries/m480/rtt_port/SConscript
@@ -10,24 +10,24 @@ group = []
# USB driver constrain
if GetDepend('BOARD_USING_HSUSBD') and ( GetDepend('BSP_USING_USBD') or GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_HSOTG') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_HSUSBD. Please de-select BSP_USING_USBD, BSP_USING_HSUSBH and BSP_USING_HSOTG options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_HSUSBD. Please de-select BSP_USING_USBD, BSP_USING_HSUSBH and BSP_USING_HSOTG options.')
sys.exit(1)
elif GetDepend('BOARD_USING_HSUSBD_USBH') and ( GetDepend('BSP_USING_USBD') or GetDepend('BSP_USING_HSUSBH') or GetDepend('BSP_USING_HSOTG') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_HSUSBD_USBH. Please de-select BSP_USING_USBD, BSP_USING_HSUSBH and BSP_USING_HSOTG options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_HSUSBD_USBH. Please de-select BSP_USING_USBD, BSP_USING_HSUSBH and BSP_USING_HSOTG options.')
sys.exit(1)
elif GetDepend('BOARD_USING_HSUSBH') and ( GetDepend('BSP_USING_USBH') or GetDepend('BSP_USING_HSUSBD') or GetDepend('BSP_USING_HSOTG') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_HSUSBH. Please de-select BSP_USING_USBH, BSP_USING_HSUSBD and BSP_USING_HSOTG options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_HSUSBH. Please de-select BSP_USING_USBH, BSP_USING_HSUSBD and BSP_USING_HSOTG options.')
sys.exit(1)
elif GetDepend('BOARD_USING_HSUSBH_USBD') and ( GetDepend('BSP_USING_USBH') or GetDepend('BSP_USING_HSUSBD') or GetDepend('BSP_USING_HSOTG') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_HSUSBH_USBD. Please de-select BSP_USING_USBH, BSP_USING_HSUSBD and BSP_USING_HSOTG options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_HSUSBH_USBD. Please de-select BSP_USING_USBH, BSP_USING_HSUSBD and BSP_USING_HSOTG options.')
sys.exit(1)
elif GetDepend('BOARD_USING_HSOTG') and ( GetDepend('BSP_USING_USBD') or GetDepend('BSP_USING_USBH') ):
- print 'Sorry, wrong selection.'
- print '[Hint] You already select BOARD_USING_HSOTG. Please de-select BSP_USING_USBD and BSP_USING_USBH options.'
+ print ('Sorry, wrong selection.')
+ print ('[Hint] You already select BOARD_USING_HSOTG. Please de-select BSP_USING_USBD and BSP_USING_USBH options.')
sys.exit(1)
else:
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = CPPPATH)