Преглед на файлове

[bsp/stm32]change str(Dir('#')) to GetCurrentDir()

misonyo преди 6 години
родител
ревизия
700ce3ae6e
променени са 26 файла, в които са добавени 52 реда и са изтрити 26 реда
  1. 2 1
      bsp/stm32/libraries/templates/stm32f0xx/SConscript
  2. 2 1
      bsp/stm32/libraries/templates/stm32f10x/SConscript
  3. 2 1
      bsp/stm32/libraries/templates/stm32f4xx/SConscript
  4. 2 1
      bsp/stm32/libraries/templates/stm32f7xx/SConscript
  5. 2 1
      bsp/stm32/libraries/templates/stm32l4xx/SConscript
  6. 2 1
      bsp/stm32/stm32f091-st-nucleo/SConscript
  7. 2 1
      bsp/stm32/stm32f103-atk-nano/SConscript
  8. 2 1
      bsp/stm32/stm32f103-dofly-lyc8/SConscript
  9. 2 1
      bsp/stm32/stm32f103-fire-arbitrary/SConscript
  10. 2 1
      bsp/stm32/stm32f103-hw100k-ibox/SConscript
  11. 2 1
      bsp/stm32/stm32f107-uc-eval/SConscript
  12. 2 1
      bsp/stm32/stm32f407-atk-explorer/SConscript
  13. 2 1
      bsp/stm32/stm32f407-st-discovery/SConscript
  14. 2 1
      bsp/stm32/stm32f411-st-nucleo/SConscript
  15. 2 1
      bsp/stm32/stm32f429-armfly-v6/SConscript
  16. 2 1
      bsp/stm32/stm32f429-atk-apollo/SConscript
  17. 2 1
      bsp/stm32/stm32f429-fire-challenger/SConscript
  18. 2 1
      bsp/stm32/stm32f446-st-nucleo/SConscript
  19. 2 1
      bsp/stm32/stm32f746-st-disco/SConscript
  20. 2 1
      bsp/stm32/stm32f767-atk-apollo/SConscript
  21. 2 1
      bsp/stm32/stm32f767-fire-challenger/SConscript
  22. 2 1
      bsp/stm32/stm32f767-st-nucleo/SConscript
  23. 2 1
      bsp/stm32/stm32g071-st-nucleo/SConscript
  24. 2 1
      bsp/stm32/stm32l053-st-nucleo/SConscript
  25. 2 1
      bsp/stm32/stm32l432-st-nucleo/SConscript
  26. 2 1
      bsp/stm32/stm32l475-atk-pandora/SConscript

+ 2 - 1
bsp/stm32/libraries/templates/stm32f0xx/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)
 

+ 2 - 1
bsp/stm32/libraries/templates/stm32f10x/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)
 

+ 2 - 1
bsp/stm32/libraries/templates/stm32f4xx/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)
 

+ 2 - 1
bsp/stm32/libraries/templates/stm32f7xx/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)
 

+ 2 - 1
bsp/stm32/libraries/templates/stm32l4xx/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)
 

+ 2 - 1
bsp/stm32/stm32f091-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32f103-atk-nano/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)
 

+ 2 - 1
bsp/stm32/stm32f103-dofly-lyc8/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)
 

+ 2 - 1
bsp/stm32/stm32f103-fire-arbitrary/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)
 

+ 2 - 1
bsp/stm32/stm32f103-hw100k-ibox/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)
 

+ 2 - 1
bsp/stm32/stm32f107-uc-eval/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)
 

+ 2 - 1
bsp/stm32/stm32f407-atk-explorer/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)
 

+ 2 - 1
bsp/stm32/stm32f407-st-discovery/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)
 

+ 2 - 1
bsp/stm32/stm32f411-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32f429-armfly-v6/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)
 

+ 2 - 1
bsp/stm32/stm32f429-atk-apollo/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)
 

+ 2 - 1
bsp/stm32/stm32f429-fire-challenger/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)
 

+ 2 - 1
bsp/stm32/stm32f446-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32f746-st-disco/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)
 

+ 2 - 1
bsp/stm32/stm32f767-atk-apollo/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)
 

+ 2 - 1
bsp/stm32/stm32f767-fire-challenger/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)
 

+ 2 - 1
bsp/stm32/stm32f767-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32g071-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32l053-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32l432-st-nucleo/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)
 

+ 2 - 1
bsp/stm32/stm32l475-atk-pandora/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)