Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Keyboard Man_俊
rt-thread
提交
68a5e7d5
R
rt-thread
项目概览
Keyboard Man_俊
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
1
Star
0
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,发现更多精彩内容 >>
提交
68a5e7d5
编写于
12月 31, 2017
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[BSP] Update building script
上级
e8a6da95
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
8 addition
and
10 deletion
+8
-10
bsp/gd32450z-eval/rtconfig.py
bsp/gd32450z-eval/rtconfig.py
+2
-3
bsp/imx6ul/SConstruct
bsp/imx6ul/SConstruct
+1
-1
bsp/lpc824/SConstruct
bsp/lpc824/SConstruct
+1
-2
bsp/mini4020/rtconfig.py
bsp/mini4020/rtconfig.py
+1
-1
tools/keil.py
tools/keil.py
+3
-3
未找到文件。
bsp/gd32450z-eval/rtconfig.py
浏览文件 @
68a5e7d5
...
@@ -3,7 +3,7 @@ import os
...
@@ -3,7 +3,7 @@ import os
# toolchains options
# toolchains options
ARCH
=
'arm'
ARCH
=
'arm'
CPU
=
'cortex-m4'
CPU
=
'cortex-m4'
CROSS_TOOL
=
'
gcc
'
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'
)
...
@@ -17,14 +17,13 @@ if CROSS_TOOL == 'gcc':
...
@@ -17,14 +17,13 @@ if CROSS_TOOL == 'gcc':
print
'Not support gcc yet!'
print
'Not support gcc yet!'
print
'================================================='
print
'================================================='
PLATFORM
=
'gcc'
PLATFORM
=
'gcc'
exit
(
0
)
elif
CROSS_TOOL
==
'keil'
:
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'
:
PLATFORM
=
'iar'
PLATFORM
=
'iar'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
EXEC_PATH
=
r
'C:/Program Files (x86)/IAR Systems/Embedded Workbench 8.0'
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'
)
...
...
bsp/imx6ul/SConstruct
浏览文件 @
68a5e7d5
...
@@ -15,7 +15,7 @@ TARGET = 'rtthread-imx6.' + rtconfig.TARGET_EXT
...
@@ -15,7 +15,7 @@ TARGET = 'rtthread-imx6.' + rtconfig.TARGET_EXT
env
=
Environment
(
tools
=
[
'mingw'
],
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
...
...
bsp/lpc824/SConstruct
浏览文件 @
68a5e7d5
...
@@ -8,8 +8,7 @@ if os.getenv('RTT_ROOT'):
...
@@ -8,8 +8,7 @@ if os.getenv('RTT_ROOT'):
else
:
else
:
#RTT_ROOT = os.path.join(Dir('#').get_abspath(), 'rt-thread')
#RTT_ROOT = os.path.join(Dir('#').get_abspath(), 'rt-thread')
RTT_ROOT
=
os
.
path
.
normpath
(
os
.
getcwd
()
+
'/../..'
)
RTT_ROOT
=
os
.
path
.
normpath
(
os
.
getcwd
()
+
'/../..'
)
print
RTT_ROOT
sys
.
path
=
sys
.
path
+
[
os
.
path
.
join
(
RTT_ROOT
,
'tools'
)]
sys
.
path
=
sys
.
path
+
[
os
.
path
.
join
(
RTT_ROOT
,
'tools'
)]
from
building
import
*
from
building
import
*
...
...
bsp/mini4020/rtconfig.py
浏览文件 @
68a5e7d5
...
@@ -10,7 +10,7 @@ CROSS_TOOL = 'keil'
...
@@ -10,7 +10,7 @@ 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
'================================================='
...
...
tools/keil.py
浏览文件 @
68a5e7d5
...
@@ -226,7 +226,7 @@ def MDK45Project(tree, target, script):
...
@@ -226,7 +226,7 @@ def MDK45Project(tree, target, script):
if
CPPDEFINES
:
if
CPPDEFINES
:
CPPDEFINES
+=
group
[
'CPPDEFINES'
]
CPPDEFINES
+=
group
[
'CPPDEFINES'
]
else
:
else
:
CPPDEFINES
+
=
group
[
'CPPDEFINES'
]
CPPDEFINES
=
group
[
'CPPDEFINES'
]
# get each group's link flags
# get each group's link flags
if
group
.
has_key
(
'LINKFLAGS'
)
and
group
[
'LINKFLAGS'
]:
if
group
.
has_key
(
'LINKFLAGS'
)
and
group
[
'LINKFLAGS'
]:
...
@@ -332,9 +332,9 @@ def MDKProject(target, script):
...
@@ -332,9 +332,9 @@ def MDKProject(target, script):
# get each group's definitions
# get each group's definitions
if
group
.
has_key
(
'CPPDEFINES'
)
and
group
[
'CPPDEFINES'
]:
if
group
.
has_key
(
'CPPDEFINES'
)
and
group
[
'CPPDEFINES'
]:
if
CPPDEFINES
:
if
CPPDEFINES
:
CPPDEFINES
+=
';'
+
group
[
'CPPDEFINES'
]
else
:
CPPDEFINES
+=
group
[
'CPPDEFINES'
]
CPPDEFINES
+=
group
[
'CPPDEFINES'
]
else
:
CPPDEFINES
=
group
[
'CPPDEFINES'
]
# get each group's link flags
# get each group's link flags
if
group
.
has_key
(
'LINKFLAGS'
)
and
group
[
'LINKFLAGS'
]:
if
group
.
has_key
(
'LINKFLAGS'
)
and
group
[
'LINKFLAGS'
]:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录