Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wwsmg1
rt-thread
提交
19433e0c
R
rt-thread
项目概览
wwsmg1
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
19433e0c
编写于
2月 06, 2018
作者:
wuyangyong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update SConscript: support scons 3.
上级
e20fb2f5
变更
57
隐藏空白更改
内联
并排
Showing
57 changed file
with
172 addition
and
172 deletion
+172
-172
bsp/apollo2/rtconfig.py
bsp/apollo2/rtconfig.py
+3
-3
bsp/avr32uc3b0/rtconfig.py
bsp/avr32uc3b0/rtconfig.py
+6
-6
bsp/beaglebone/rtconfig.py
bsp/beaglebone/rtconfig.py
+3
-3
bsp/efm32/rtconfig.py
bsp/efm32/rtconfig.py
+6
-6
bsp/frdm-k64f/rtconfig.py
bsp/frdm-k64f/rtconfig.py
+3
-3
bsp/gd32450z-eval/SConstruct
bsp/gd32450z-eval/SConstruct
+2
-2
bsp/gd32450z-eval/rtconfig.py
bsp/gd32450z-eval/rtconfig.py
+3
-3
bsp/lm3s8962/rtconfig.py
bsp/lm3s8962/rtconfig.py
+3
-3
bsp/lm3s9b9x/rtconfig.py
bsp/lm3s9b9x/rtconfig.py
+3
-3
bsp/lm4f232/rtconfig.py
bsp/lm4f232/rtconfig.py
+3
-3
bsp/lpc178x/rtconfig.py
bsp/lpc178x/rtconfig.py
+3
-3
bsp/lpc2148/rtconfig.py
bsp/lpc2148/rtconfig.py
+3
-3
bsp/lpc2478/rtconfig.py
bsp/lpc2478/rtconfig.py
+3
-3
bsp/lpc408x/rtconfig.py
bsp/lpc408x/rtconfig.py
+3
-3
bsp/lpc43xx/M0/SConstruct
bsp/lpc43xx/M0/SConstruct
+2
-2
bsp/lpc43xx/M4/SConstruct
bsp/lpc43xx/M4/SConstruct
+3
-3
bsp/lpc5410x/rtconfig.py
bsp/lpc5410x/rtconfig.py
+3
-3
bsp/lpc824/rtconfig.py
bsp/lpc824/rtconfig.py
+3
-3
bsp/ls1bdev/rtconfig.py
bsp/ls1bdev/rtconfig.py
+3
-3
bsp/ls1cdev/rtconfig.py
bsp/ls1cdev/rtconfig.py
+3
-3
bsp/m16c62p/rtconfig.py
bsp/m16c62p/rtconfig.py
+3
-3
bsp/mb9bf568r/rtconfig.py
bsp/mb9bf568r/rtconfig.py
+3
-3
bsp/mini2440/rtconfig.py
bsp/mini2440/rtconfig.py
+3
-3
bsp/mini4020/rtconfig.py
bsp/mini4020/rtconfig.py
+7
-7
bsp/nrf51822/rtconfig.py
bsp/nrf51822/rtconfig.py
+3
-3
bsp/nrf52832/rtconfig.py
bsp/nrf52832/rtconfig.py
+3
-3
bsp/nv32f100x/rtconfig.py
bsp/nv32f100x/rtconfig.py
+6
-6
bsp/realview-a8/SConstruct
bsp/realview-a8/SConstruct
+1
-1
bsp/rm48x50/rtconfig.py
bsp/rm48x50/rtconfig.py
+3
-3
bsp/sam7x/rtconfig.py
bsp/sam7x/rtconfig.py
+3
-3
bsp/samd21/rtconfig.py
bsp/samd21/rtconfig.py
+3
-3
bsp/sep6200/rtconfig.py
bsp/sep6200/rtconfig.py
+3
-3
bsp/simulator/SConstruct
bsp/simulator/SConstruct
+1
-1
bsp/simulator/rtconfig.py
bsp/simulator/rtconfig.py
+1
-1
bsp/stm32f0x/rtconfig.py
bsp/stm32f0x/rtconfig.py
+3
-3
bsp/stm32f40x/SConstruct
bsp/stm32f40x/SConstruct
+2
-2
bsp/stm32f40x/rtconfig.py
bsp/stm32f40x/rtconfig.py
+3
-3
bsp/stm32f411-nucleo/SConstruct
bsp/stm32f411-nucleo/SConstruct
+2
-2
bsp/stm32f429-apollo/SConstruct
bsp/stm32f429-apollo/SConstruct
+2
-2
bsp/stm32f429-armfly/SConstruct
bsp/stm32f429-armfly/SConstruct
+2
-2
bsp/stm32f429-armfly/rtconfig.py
bsp/stm32f429-armfly/rtconfig.py
+3
-3
bsp/stm32f429-disco/SConstruct
bsp/stm32f429-disco/SConstruct
+2
-2
bsp/stm32f429-disco/rtconfig.py
bsp/stm32f429-disco/rtconfig.py
+3
-3
bsp/stm32f4xx-HAL/SConstruct
bsp/stm32f4xx-HAL/SConstruct
+2
-2
bsp/stm32f7-disco/SConstruct
bsp/stm32f7-disco/SConstruct
+2
-2
bsp/stm32h743-nucleo/SConstruct
bsp/stm32h743-nucleo/SConstruct
+2
-2
bsp/stm32l072/rtconfig.py
bsp/stm32l072/rtconfig.py
+6
-6
bsp/stm32l475-iot-disco/SConstruct
bsp/stm32l475-iot-disco/SConstruct
+2
-2
bsp/stm32l475-iot-disco/rtconfig.py
bsp/stm32l475-iot-disco/rtconfig.py
+3
-3
bsp/stm32l476-nucleo/SConstruct
bsp/stm32l476-nucleo/SConstruct
+2
-2
bsp/stm32l476-nucleo/rtconfig.py
bsp/stm32l476-nucleo/rtconfig.py
+3
-3
bsp/tm4c129x/rtconfig.py
bsp/tm4c129x/rtconfig.py
+3
-3
bsp/upd70f3454/rtconfig.py
bsp/upd70f3454/rtconfig.py
+6
-6
bsp/x1000/rtconfig.py
bsp/x1000/rtconfig.py
+1
-1
bsp/x86/rtconfig.py
bsp/x86/rtconfig.py
+6
-6
bsp/zynq7000/rtconfig.py
bsp/zynq7000/rtconfig.py
+3
-3
components/dfs/filesystems/romfs/mkromfs.py
components/dfs/filesystems/romfs/mkromfs.py
+2
-2
未找到文件。
bsp/apollo2/rtconfig.py
浏览文件 @
19433e0c
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_v5'
EXEC_PATH
=
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/avr32uc3b0/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
...
@@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
'C:/Program Files/Atmel/AVR Tools/AVR Toolchain/bin'
EXEC_PATH
=
'C:/Program Files/Atmel/AVR Tools/AVR Toolchain/bin'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support keil yet!'
print
(
'Not support keil yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/beaglebone/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support IAR yet!'
print
(
'Not support IAR yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/efm32/rtconfig.py
浏览文件 @
19433e0c
...
@@ -13,14 +13,14 @@ if CROSS_TOOL == 'gcc':
...
@@ -13,14 +13,14 @@ if CROSS_TOOL == 'gcc':
EXEC_PATH
=
'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite
\b
in'
EXEC_PATH
=
'C:\Program Files (x86)\CodeSourcery\Sourcery G++ Lite
\b
in'
#EXEC_PATH = 'C:\Program Files (x86)\yagarto\bin'
#EXEC_PATH = 'C:\Program Files (x86)\yagarto\bin'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support keil yet!'
print
(
'Not support keil yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/frdm-k64f/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil'
EXEC_PATH
=
r
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/gd32450z-eval/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-gd32f4xx.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-gd32f4xx.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/gd32450z-eval/rtconfig.py
浏览文件 @
19433e0c
...
@@ -13,9 +13,9 @@ if os.getenv('RTT_ROOT'):
...
@@ -13,9 +13,9 @@ if os.getenv('RTT_ROOT'):
# cross_tool provides the cross compiler
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if
CROSS_TOOL
==
'gcc'
:
if
CROSS_TOOL
==
'gcc'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support gcc yet!'
print
(
'Not support gcc yet!'
)
print
'================================================='
print
(
'================================================='
)
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
...
...
bsp/lm3s8962/rtconfig.py
浏览文件 @
19433e0c
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lm3s9b9x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lm4f232/rtconfig.py
浏览文件 @
19433e0c
...
@@ -20,9 +20,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -20,9 +20,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil'
EXEC_PATH
=
r
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc178x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc2148/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:\Keil'
EXEC_PATH
=
'C:\Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc2478/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc408x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'D:/Keil'
EXEC_PATH
=
'D:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc43xx/M0/SConstruct
浏览文件 @
19433e0c
...
@@ -29,7 +29,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
...
@@ -29,7 +29,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
import
glob
import
glob
# Remove the .o for M0 left on the drivers dir.
# Remove the .o for M0 left on the drivers dir.
for
i
in
glob
.
glob
(
GetCurrentDir
()
+
'/../drivers/*.o'
):
for
i
in
glob
.
glob
(
GetCurrentDir
()
+
'/../drivers/*.o'
):
print
'RM %s'
%
i
print
(
'RM %s'
%
i
)
os
.
unlink
(
i
)
os
.
unlink
(
i
)
if
sys
.
platform
.
startswith
(
'linux'
):
if
sys
.
platform
.
startswith
(
'linux'
):
...
@@ -40,7 +40,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
...
@@ -40,7 +40,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
else
:
else
:
# Assume Windows.
# Assume Windows.
ocwd
=
os
.
getcwdu
()
ocwd
=
os
.
getcwdu
()
print
'TODO: remove the object files in ../Libraries'
print
(
'TODO: remove the object files in ../Libraries'
)
os
.
chdir
(
ocwd
)
os
.
chdir
(
ocwd
)
# do building
# do building
...
...
bsp/lpc43xx/M4/SConstruct
浏览文件 @
19433e0c
...
@@ -26,14 +26,14 @@ Export('rtconfig')
...
@@ -26,14 +26,14 @@ Export('rtconfig')
objs
=
PrepareBuilding
(
env
,
RTT_ROOT
,
has_libcpu
=
False
)
objs
=
PrepareBuilding
(
env
,
RTT_ROOT
,
has_libcpu
=
False
)
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
if
rtconfig
.
CROSS_TOOL
==
'gcc'
:
print
'build M0 code first'
print
(
'build M0 code first'
)
if
sys
.
platform
.
startswith
(
'linux'
):
if
sys
.
platform
.
startswith
(
'linux'
):
import
glob
import
glob
ocwd
=
os
.
getcwdu
()
ocwd
=
os
.
getcwdu
()
os
.
chdir
(
'../M0'
)
os
.
chdir
(
'../M0'
)
res
=
os
.
system
(
'scons'
)
res
=
os
.
system
(
'scons'
)
if
res
:
if
res
:
print
'build M0 exit with code %d
\n
'
%
res
print
(
'build M0 exit with code %d
\n
'
%
res
)
sys
.
exit
(
res
)
sys
.
exit
(
res
)
os
.
chdir
(
ocwd
)
os
.
chdir
(
ocwd
)
res
=
os
.
system
(
'cd ../Libraries/; find -name \*.o -exec rm {} \;'
)
res
=
os
.
system
(
'cd ../Libraries/; find -name \*.o -exec rm {} \;'
)
...
@@ -47,7 +47,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
...
@@ -47,7 +47,7 @@ if rtconfig.CROSS_TOOL == 'gcc':
# Remove the .o for M0 left on the drivers dir.
# Remove the .o for M0 left on the drivers dir.
for
i
in
glob
.
glob
(
GetCurrentDir
()
+
'/../drivers/*.o'
):
for
i
in
glob
.
glob
(
GetCurrentDir
()
+
'/../drivers/*.o'
):
print
'RM %s'
%
i
print
(
'RM %s'
%
i
)
os
.
unlink
(
i
)
os
.
unlink
(
i
)
# do building
# do building
...
...
bsp/lpc5410x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'D:/Keil_v5'
EXEC_PATH
=
'D:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/lpc824/rtconfig.py
浏览文件 @
19433e0c
...
@@ -11,9 +11,9 @@ if os.getenv('RTT_CC'):
...
@@ -11,9 +11,9 @@ if os.getenv('RTT_CC'):
# cross_tool provides the cross compiler
# cross_tool provides the cross compiler
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
# EXEC_PATH is the compiler execute path, for example, CodeSourcery, Keil MDK, IAR
if
CROSS_TOOL
==
'gcc'
:
if
CROSS_TOOL
==
'gcc'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support gcc yet!'
print
(
'Not support gcc yet!'
)
print
'================================================='
print
(
'================================================='
)
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/keil_v5'
EXEC_PATH
=
'C:/keil_v5'
...
...
bsp/ls1bdev/rtconfig.py
浏览文件 @
19433e0c
...
@@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
...
@@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin'
EXEC_PATH
=
r
'C:\Program Files\CodeSourcery\Sourcery G++ Lite For MIPS ELF\bin'
else
:
else
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support %s yet!'
%
CROSS_TOOL
print
(
'Not support %s yet!'
%
CROSS_TOOL
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/ls1cdev/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ if CROSS_TOOL == 'gcc':
...
@@ -15,9 +15,9 @@ if CROSS_TOOL == 'gcc':
# EXEC_PATH = "/opt/mips-2015.05/bin"
# EXEC_PATH = "/opt/mips-2015.05/bin"
EXEC_PATH
=
r
'D:\mgc\embedded\codebench\bin'
EXEC_PATH
=
r
'D:\mgc\embedded\codebench\bin'
else
:
else
:
print
'================ERROR==========================='
print
(
'================ERROR==========================='
)
print
'Not support %s yet!'
%
CROSS_TOOL
print
(
'Not support %s yet!'
%
CROSS_TOOL
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/m16c62p/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'iar':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'iar':
IAR_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
IAR_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
# EXEC_PATH = 'C:/Program Files/IAR Systems/Embedded Workbench Evaluation 6.0'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support keil yet!'
print
(
'Not support keil yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/mb9bf568r/rtconfig.py
浏览文件 @
19433e0c
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_MDK_471'
EXEC_PATH
=
'C:/Keil_MDK_471'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/mini2440/rtconfig.py
浏览文件 @
19433e0c
...
@@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/mini4020/rtconfig.py
浏览文件 @
19433e0c
...
@@ -10,18 +10,18 @@ CROSS_TOOL = 'keil'
...
@@ -10,18 +10,18 @@ CROSS_TOOL = 'keil'
if
os
.
getenv
(
'RTT_CC'
):
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'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support gcc yet!'
print
(
'Not support gcc yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'c:/Keil'
EXEC_PATH
=
'c:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/nrf51822/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_v5'
EXEC_PATH
=
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/nrf52832/rtconfig.py
浏览文件 @
19433e0c
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -18,9 +18,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil_v5'
EXEC_PATH
=
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/nv32f100x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
...
@@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
EXEC_PATH
=
'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/realview-a8/SConstruct
浏览文件 @
19433e0c
...
@@ -29,7 +29,7 @@ if GetDepend('RT_USING_VMM'):
...
@@ -29,7 +29,7 @@ if GetDepend('RT_USING_VMM'):
if
os
.
system
(
'{cppcmd} -P -C -E -I. -D__ASSEMBLY__ {ldfile}.S -o {ldfile}'
.
format
(
if
os
.
system
(
'{cppcmd} -P -C -E -I. -D__ASSEMBLY__ {ldfile}.S -o {ldfile}'
.
format
(
cppcmd
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
'arm-none-eabi-gcc'
),
cppcmd
=
os
.
path
.
join
(
rtconfig
.
EXEC_PATH
,
'arm-none-eabi-gcc'
),
ldfile
=
rtconfig
.
LINK_SCRIPT
))
!=
0
:
ldfile
=
rtconfig
.
LINK_SCRIPT
))
!=
0
:
print
'failed to generate linker script %s'
%
rtconfig
.
LINK_SCRIPT
print
(
'failed to generate linker script %s'
%
rtconfig
.
LINK_SCRIPT
)
sys
.
exit
(
255
)
sys
.
exit
(
255
)
# if the linker script changed, relink the target
# if the linker script changed, relink the target
Depends
(
TARGET
,
rtconfig
.
LINK_SCRIPT
)
Depends
(
TARGET
,
rtconfig
.
LINK_SCRIPT
)
...
...
bsp/rm48x50/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support IAR yet!'
print
(
'Not support IAR yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/sam7x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/samd21/rtconfig.py
浏览文件 @
19433e0c
...
@@ -22,9 +22,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -22,9 +22,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/sep6200/rtconfig.py
浏览文件 @
19433e0c
...
@@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
...
@@ -14,9 +14,9 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
'/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/bin/'
EXEC_PATH
=
'/usr/unicore/gnu-toolchain-unicore/uc4-1.0-beta-hard-RHELAS5/bin/'
else
:
else
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support yet!'
print
(
'Not support yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/simulator/SConstruct
浏览文件 @
19433e0c
...
@@ -80,7 +80,7 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
...
@@ -80,7 +80,7 @@ objs = PrepareBuilding(env, RTT_ROOT, has_libcpu=False)
def
ObjRemove
(
objs
,
remove
):
def
ObjRemove
(
objs
,
remove
):
for
item
in
objs
:
for
item
in
objs
:
# print
type(item), os.path.basename(str(item)
)
# print
(type(item), os.path.basename(str(item))
)
if
os
.
path
.
basename
(
str
(
item
))
in
remove
:
if
os
.
path
.
basename
(
str
(
item
))
in
remove
:
objs
.
remove
(
item
)
objs
.
remove
(
item
)
return
return
...
...
bsp/simulator/rtconfig.py
浏览文件 @
19433e0c
...
@@ -27,7 +27,7 @@ elif CROSS_TOOL == 'msvc':
...
@@ -27,7 +27,7 @@ elif CROSS_TOOL == 'msvc':
PLATFORM
=
'cl'
PLATFORM
=
'cl'
EXEC_PATH
=
''
EXEC_PATH
=
''
else
:
else
:
print
"bad CROSS TOOL!"
print
(
"bad CROSS TOOL!"
)
exit
(
1
)
exit
(
1
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32f0x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32f40x/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f4xx.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f4xx.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f40x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil'
EXEC_PATH
=
r
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32f411-nucleo/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f411.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f411.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f429-apollo/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f429-armfly/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f429-armfly/rtconfig.py
浏览文件 @
19433e0c
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32f429-disco/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f429-disco/rtconfig.py
浏览文件 @
19433e0c
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -17,9 +17,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil'
EXEC_PATH
=
r
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32f4xx-HAL/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f4xx.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f4xx.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32f7-disco/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f7xx.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f7xx.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32h743-nucleo/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32h7xx.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32h7xx.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32l072/rtconfig.py
浏览文件 @
19433e0c
...
@@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
...
@@ -14,14 +14,14 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
EXEC_PATH
=
'G:/iot/camera_studio-win32-20160903/camera_studio/tools/arm-2014.05/bin'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32l475-iot-disco/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32f42x.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32l475-iot-disco/rtconfig.py
浏览文件 @
19433e0c
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/stm32l476-nucleo/SConstruct
浏览文件 @
19433e0c
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
...
@@ -11,8 +11,8 @@ sys.path = sys.path + [os.path.join(RTT_ROOT, 'tools')]
try
:
try
:
from
building
import
*
from
building
import
*
except
:
except
:
print
'Cannot found RT-Thread root directory, please check RTT_ROOT'
print
(
'Cannot found RT-Thread root directory, please check RTT_ROOT'
)
print
RTT_ROOT
print
(
RTT_ROOT
)
exit
(
-
1
)
exit
(
-
1
)
TARGET
=
'rtthread-stm32l476.'
+
rtconfig
.
TARGET_EXT
TARGET
=
'rtthread-stm32l476.'
+
rtconfig
.
TARGET_EXT
...
...
bsp/stm32l476-nucleo/rtconfig.py
浏览文件 @
19433e0c
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -19,9 +19,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'C:/Keil_v5'
EXEC_PATH
=
r
'C:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/tm4c129x/rtconfig.py
浏览文件 @
19433e0c
...
@@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -21,9 +21,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
r
'D:\Keil_v5'
EXEC_PATH
=
r
'D:\Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/upd70f3454/rtconfig.py
浏览文件 @
19433e0c
...
@@ -10,17 +10,17 @@ if os.getenv('RTT_CC'):
...
@@ -10,17 +10,17 @@ 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'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support gcc yet!'
print
(
'Not support gcc yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
PLATFORM
=
'iar'
PLATFORM
=
'iar'
IAR_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
IAR_PATH
=
'C:/Program Files/IAR Systems/Embedded Workbench 6.0 Evaluation_0'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support keil yet!'
print
(
'Not support keil yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/x1000/rtconfig.py
浏览文件 @
19433e0c
...
@@ -12,7 +12,7 @@ if CROSS_TOOL == 'gcc':
...
@@ -12,7 +12,7 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
r
'E:\work\env\tools\gnu_gcc\mips_gcc\mips-2016.05\bin'
EXEC_PATH
=
r
'E:\work\env\tools\gnu_gcc\mips_gcc\mips-2016.05\bin'
else
:
else
:
print
'Please make sure your toolchains is GNU GCC!'
print
(
'Please make sure your toolchains is GNU GCC!'
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/x86/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
...
@@ -15,14 +15,14 @@ if CROSS_TOOL == 'gcc':
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
EXEC_PATH
=
'E:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_IA32_ELF/bin'
EXEC_PATH
=
'E:/Program Files/CodeSourcery/Sourcery_CodeBench_Lite_for_IA32_ELF/bin'
elif
CROSS_TOOL
==
'keil'
:
elif
CROSS_TOOL
==
'keil'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support keil yet!'
print
(
'Not support keil yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support iar yet!'
print
(
'Not support iar yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
bsp/zynq7000/rtconfig.py
浏览文件 @
19433e0c
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
...
@@ -15,9 +15,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
PLATFORM
=
'armcc'
EXEC_PATH
=
'C:/Keil'
EXEC_PATH
=
'C:/Keil'
elif
CROSS_TOOL
==
'iar'
:
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
(
'================ERROR============================'
)
print
'Not support IAR yet!'
print
(
'Not support IAR yet!'
)
print
'================================================='
print
(
'================================================='
)
exit
(
0
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
components/dfs/filesystems/romfs/mkromfs.py
浏览文件 @
19433e0c
...
@@ -50,7 +50,7 @@ class File(object):
...
@@ -50,7 +50,7 @@ class File(object):
return
bytes
(
self
.
_data
)
return
bytes
(
self
.
_data
)
def
dump
(
self
,
indent
=
0
):
def
dump
(
self
,
indent
=
0
):
print
'%s%s'
%
(
' '
*
indent
,
self
.
_name
)
print
(
'%s%s'
%
(
' '
*
indent
,
self
.
_name
)
)
class
Folder
(
object
):
class
Folder
(
object
):
bin_fmt
=
struct
.
Struct
(
'IIII'
)
bin_fmt
=
struct
.
Struct
(
'IIII'
)
...
@@ -108,7 +108,7 @@ class Folder(object):
...
@@ -108,7 +108,7 @@ class Folder(object):
c
.
sort
()
c
.
sort
()
def
dump
(
self
,
indent
=
0
):
def
dump
(
self
,
indent
=
0
):
print
'%s%s'
%
(
' '
*
indent
,
self
.
_name
)
print
(
'%s%s'
%
(
' '
*
indent
,
self
.
_name
)
)
for
c
in
self
.
_children
:
for
c
in
self
.
_children
:
c
.
dump
(
indent
+
1
)
c
.
dump
(
indent
+
1
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录