mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-06-02 13:02:41 +08:00
[BSP][Nuclei] Pretty source code
Signed-off-by: Huaqi Fang <578567190@qq.com>
This commit is contained in:
@@ -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')):
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user