Parcourir la source

[bsp][gd32e230k-start] Update SConscript

xuzhuoyi il y a 6 ans
Parent
commit
a0ae9d24d5
2 fichiers modifiés avec 3 ajouts et 4 suppressions
  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
 import os
 Import('RTT_ROOT')
+from building import *
 
-cwd = str(Dir('#'))
+cwd = GetCurrentDir()
 objs = []
 list = os.listdir(cwd)
 

+ 1 - 3
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("""