Browse Source

[bsp][gd32e230k-start] Update SConscript

xuzhuoyi 6 years ago
parent
commit
a0ae9d24d5
2 changed files with 3 additions and 4 deletions
  1. 2 1
      bsp/gd32e230k-start/SConscript
  2. 1 3
      bsp/gd32e230k-start/drivers/SConscript

+ 2 - 1
bsp/gd32e230k-start/SConscript

@@ -1,8 +1,9 @@
 # for module compiling
 # for module compiling
 import os
 import os
 Import('RTT_ROOT')
 Import('RTT_ROOT')
+from building import *
 
 
-cwd = str(Dir('#'))
+cwd = GetCurrentDir()
 objs = []
 objs = []
 list = os.listdir(cwd)
 list = os.listdir(cwd)
 
 

+ 1 - 3
bsp/gd32e230k-start/drivers/SConscript

@@ -1,8 +1,6 @@
-Import('RTT_ROOT')
-Import('rtconfig')
 from building import *
 from building import *
 
 
-cwd = os.path.join(str(Dir('#')), 'drivers')
+cwd = GetCurrentDir()
 
 
 # add the general drivers.
 # add the general drivers.
 src = Split("""
 src = Split("""