[BSP][Nuclei] Pretty source code

Signed-off-by: Huaqi Fang <578567190@qq.com>
This commit is contained in:
Huaqi Fang
2020-04-17 14:38:54 +08:00
parent 2c42a997f7
commit b7368bc2ed
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -1,14 +1,14 @@
# 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)
ASFLAGS = ' -I' + cwd ASFLAGS = ' -I' + cwd
for d in list: for d in list:
path = os.path.join(cwd, d) path = os.path.join(cwd, d)
if os.path.isfile(os.path.join(path, 'SConscript')): if os.path.isfile(os.path.join(path, 'SConscript')):
+3 -3
View File
@@ -9,13 +9,13 @@ if os.getenv('RTT_CC'):
CROSS_TOOL = os.getenv('RTT_CC') CROSS_TOOL = os.getenv('RTT_CC')
if CROSS_TOOL == 'gcc': if CROSS_TOOL == 'gcc':
PLATFORM = 'gcc' PLATFORM = 'gcc'
EXEC_PATH = 'D:/Software/Nuclei/gcc/bin' EXEC_PATH = 'D:/Software/Nuclei/gcc/bin'
else: else:
print("CROSS_TOOL = {} not yet supported" % CROSS_TOOL) print("CROSS_TOOL = {} not yet supported" % CROSS_TOOL)
# if os.getenv('RTT_EXEC_PATH'): # if os.getenv('RTT_EXEC_PATH'):
# EXEC_PATH = os.getenv('RTT_EXEC_PATH') # EXEC_PATH = os.getenv('RTT_EXEC_PATH')
BUILD = 'debug' BUILD = 'debug'
# Fixed configurations below # Fixed configurations below