From a0ae9d24d570edaea21dfddc15e4d5b6aba088c2 Mon Sep 17 00:00:00 2001 From: xuzhuoyi Date: Sun, 7 Apr 2019 00:53:39 +0800 Subject: [PATCH] [bsp][gd32e230k-start] Update SConscript --- bsp/gd32e230k-start/SConscript | 3 ++- bsp/gd32e230k-start/drivers/SConscript | 4 +--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/bsp/gd32e230k-start/SConscript b/bsp/gd32e230k-start/SConscript index fe0ae941ae..20f7689c53 100644 --- a/bsp/gd32e230k-start/SConscript +++ b/bsp/gd32e230k-start/SConscript @@ -1,8 +1,9 @@ # for module compiling import os Import('RTT_ROOT') +from building import * -cwd = str(Dir('#')) +cwd = GetCurrentDir() objs = [] list = os.listdir(cwd) diff --git a/bsp/gd32e230k-start/drivers/SConscript b/bsp/gd32e230k-start/drivers/SConscript index 45fd672f5f..df3af3519e 100644 --- a/bsp/gd32e230k-start/drivers/SConscript +++ b/bsp/gd32e230k-start/drivers/SConscript @@ -1,8 +1,6 @@ -Import('RTT_ROOT') -Import('rtconfig') from building import * -cwd = os.path.join(str(Dir('#')), 'drivers') +cwd = GetCurrentDir() # add the general drivers. src = Split("""