From b7368bc2ed725c42f9adc297d0e9cf3ed706a520 Mon Sep 17 00:00:00 2001 From: Huaqi Fang <578567190@qq.com> Date: Fri, 17 Apr 2020 14:38:54 +0800 Subject: [PATCH] [BSP][Nuclei] Pretty source code Signed-off-by: Huaqi Fang <578567190@qq.com> --- bsp/nuclei/gd32vf103_rvstar/SConscript | 4 ++-- bsp/nuclei/gd32vf103_rvstar/rtconfig.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bsp/nuclei/gd32vf103_rvstar/SConscript b/bsp/nuclei/gd32vf103_rvstar/SConscript index 2e95f4716c..014c428d0a 100644 --- a/bsp/nuclei/gd32vf103_rvstar/SConscript +++ b/bsp/nuclei/gd32vf103_rvstar/SConscript @@ -1,14 +1,14 @@ # for module compiling import os Import('RTT_ROOT') +from building import * -cwd = str(Dir('#')) +cwd = GetCurrentDir() objs = [] list = os.listdir(cwd) ASFLAGS = ' -I' + cwd - for d in list: path = os.path.join(cwd, d) if os.path.isfile(os.path.join(path, 'SConscript')): diff --git a/bsp/nuclei/gd32vf103_rvstar/rtconfig.py b/bsp/nuclei/gd32vf103_rvstar/rtconfig.py index 90eff87a06..8136b392f8 100644 --- a/bsp/nuclei/gd32vf103_rvstar/rtconfig.py +++ b/bsp/nuclei/gd32vf103_rvstar/rtconfig.py @@ -9,13 +9,13 @@ if os.getenv('RTT_CC'): CROSS_TOOL = os.getenv('RTT_CC') if CROSS_TOOL == 'gcc': - PLATFORM = 'gcc' - EXEC_PATH = 'D:/Software/Nuclei/gcc/bin' + PLATFORM = 'gcc' + EXEC_PATH = 'D:/Software/Nuclei/gcc/bin' else: print("CROSS_TOOL = {} not yet supported" % CROSS_TOOL) # if os.getenv('RTT_EXEC_PATH'): -# EXEC_PATH = os.getenv('RTT_EXEC_PATH') +# EXEC_PATH = os.getenv('RTT_EXEC_PATH') BUILD = 'debug' # Fixed configurations below