Explorar el Código

Merge pull request #1970 from RT-Thread/fix_RTT_ROOT

[Tools] Fix the RTT_ROOT issue
Bernard Xiong hace 6 años
padre
commit
0533ade4ac
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  1. 5 0
      tools/building.py

+ 5 - 0
tools/building.py

@@ -202,6 +202,11 @@ def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components = [
 
     Env = env
     Rtt_Root = os.path.abspath(root_directory)
+
+    # make an absolute root directory
+    RTT_ROOT = Rtt_Root
+    Export('RTT_ROOT')
+
     # set RTT_ROOT in ENV
     Env['RTT_ROOT'] = Rtt_Root
     # set BSP_ROOT in ENV