Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
02693a20
R
rt-thread
项目概览
BaiXuePrincess
/
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看板
提交
02693a20
编写于
11月 24, 2017
作者:
T
tanek liang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[bsp] fix scons + armcc build error
- add --c99 flag for c code - add --cpp flag for cpp code
上级
e2b5f7a7
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
26 addition
and
13 deletion
+26
-13
bsp/lpc54608-LPCXpresso/SConstruct
bsp/lpc54608-LPCXpresso/SConstruct
+17
-6
bsp/lpc54608-LPCXpresso/rtconfig.py
bsp/lpc54608-LPCXpresso/rtconfig.py
+9
-7
未找到文件。
bsp/lpc54608-LPCXpresso/SConstruct
浏览文件 @
02693a20
...
...
@@ -12,12 +12,23 @@ from building import *
TARGET
=
'rtthread-%s.%s'
%
(
rtconfig
.
BOARD_NAME
,
rtconfig
.
TARGET_EXT
)
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
if
rtconfig
.
PLATFORM
==
'armcc'
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
,
# overwrite cflags, because cflags has '--C99'
CXXCOM
=
'$CXX -o $TARGET --cpp -c $CXXFLAGS $_CCCOMCOM $SOURCES'
)
else
:
env
=
Environment
(
tools
=
[
'mingw'
],
AS
=
rtconfig
.
AS
,
ASFLAGS
=
rtconfig
.
AFLAGS
,
CC
=
rtconfig
.
CC
,
CCFLAGS
=
rtconfig
.
CFLAGS
,
CXX
=
rtconfig
.
CXX
,
CXXFLAGS
=
rtconfig
.
CXXFLAGS
,
AR
=
rtconfig
.
AR
,
ARFLAGS
=
'-rc'
,
LINK
=
rtconfig
.
LINK
,
LINKFLAGS
=
rtconfig
.
LFLAGS
)
env
.
PrependENVPath
(
'PATH'
,
rtconfig
.
EXEC_PATH
)
Export
(
'RTT_ROOT'
)
...
...
bsp/lpc54608-LPCXpresso/rtconfig.py
浏览文件 @
02693a20
...
...
@@ -16,9 +16,9 @@ elif CROSS_TOOL == 'keil':
PLATFORM
=
'armcc'
EXEC_PATH
=
'D:/Keil_v5'
elif
CROSS_TOOL
==
'iar'
:
print
'================ERROR============================'
print
'Not support iar yet!'
print
'================================================='
print
(
'================ERROR============================'
)
print
(
'Not support iar yet!'
)
print
(
'================================================='
)
exit
(
0
)
if
os
.
getenv
(
'RTT_EXEC_PATH'
):
...
...
@@ -70,12 +70,11 @@ elif PLATFORM == 'armcc':
CFLAGS
=
DEVICE
+
' --apcs=interwork'
AFLAGS
=
DEVICE
LFLAGS
=
DEVICE
+
' --info sizes --info totals --info unused --info veneers --list rtthread_'
+
\
BOARD_NAME
+
'.map --scatter
rtthread-'
+
BOARD_NAME
+
'.sct
'
BOARD_NAME
+
'.map --scatter
LPC54608J512_flash.scf
'
CFLAGS
+=
' -I'
+
EXEC_PATH
+
'/ARM/RV31/INC'
LFLAGS
+=
' --libpath '
+
EXEC_PATH
+
'/ARM/RV31/LIB'
CXXFLAGS
=
CFLAGS
EXEC_PATH
+=
'/arm/bin40/'
if
BUILD
==
'debug'
:
...
...
@@ -83,5 +82,8 @@ elif PLATFORM == 'armcc':
AFLAGS
+=
' -g'
else
:
CFLAGS
+=
' -O2'
CXXFLAGS
=
CFLAGS
CFLAGS
+=
' --c99'
POST_ACTION
=
'fromelf --bin $TARGET --output rtthread.bin
\n
fromelf -z $TARGET'
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录