Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
RT-Thread
rt-thread
提交
30c793fd
R
rt-thread
项目概览
RT-Thread
/
rt-thread
8 个月 前同步成功
通知
750
Star
8909
Fork
4735
代码
文件
提交
分支
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,体验更适合开发者的 AI 搜索 >>
提交
30c793fd
编写于
8月 20, 2023
作者:
mysterywolf
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[tools] add GetGCCLikePLATFORM
GCC like means the toolchains which are compatible with GCC
上级
290678b6
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
16 addition
and
7 deletion
+16
-7
bsp/renesas/ra6m3-hmi-board/SConscript
bsp/renesas/ra6m3-hmi-board/SConscript
+2
-1
bsp/renesas/ra6m3-hmi-board/ra/SConscript
bsp/renesas/ra6m3-hmi-board/ra/SConscript
+2
-1
bsp/renesas/ra6m3-hmi-board/ra_cfg/SConscript
bsp/renesas/ra6m3-hmi-board/ra_cfg/SConscript
+2
-1
bsp/renesas/ra6m3-hmi-board/ra_gen/SConscript
bsp/renesas/ra6m3-hmi-board/ra_gen/SConscript
+2
-1
components/drivers/spi/SConscript
components/drivers/spi/SConscript
+2
-1
components/libc/cplusplus/SConscript
components/libc/cplusplus/SConscript
+2
-2
tools/gcc.py
tools/gcc.py
+4
-0
未找到文件。
bsp/renesas/ra6m3-hmi-board/SConscript
浏览文件 @
30c793fd
...
...
@@ -3,6 +3,7 @@ import os
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
from
gcc
import
*
cwd
=
GetCurrentDir
()
src
=
[]
...
...
@@ -12,7 +13,7 @@ list = os.listdir(cwd)
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support IAR build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
:
elif
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
:
if
GetOption
(
'target'
)
!=
'mdk5'
:
CPPPATH
=
[
cwd
]
src
=
Glob
(
'./src/*.c'
)
...
...
bsp/renesas/ra6m3-hmi-board/ra/SConscript
浏览文件 @
30c793fd
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
from
gcc
import
*
cwd
=
GetCurrentDir
()
src
=
[]
...
...
@@ -10,7 +11,7 @@ CPPPATH = []
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support IAR build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
:
elif
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
+=
Glob
(
cwd
+
'/fsp/src/bsp/mcu/all/*.c'
)
src
+=
[
cwd
+
'/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c'
]
...
...
bsp/renesas/ra6m3-hmi-board/ra_cfg/SConscript
浏览文件 @
30c793fd
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
from
gcc
import
*
cwd
=
GetCurrentDir
()
src
=
[]
...
...
@@ -10,7 +11,7 @@ CPPPATH = []
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support IAR build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
:
elif
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
+
'/fsp_cfg'
,
cwd
+
'/fsp_cfg/bsp'
]
...
...
bsp/renesas/ra6m3-hmi-board/ra_gen/SConscript
浏览文件 @
30c793fd
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
from
gcc
import
*
cwd
=
GetCurrentDir
()
src
=
[]
...
...
@@ -10,7 +11,7 @@ CPPPATH = []
if
rtconfig
.
PLATFORM
in
[
'iccarm'
]:
print
(
"
\n
The current project does not support IAR build
\n
"
)
Return
(
'group'
)
elif
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
:
elif
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
:
if
GetOption
(
'target'
)
!=
'mdk5'
:
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
]
...
...
components/drivers/spi/SConscript
浏览文件 @
30c793fd
from
building
import
*
from
gcc
import
*
import
rtconfig
cwd
=
GetCurrentDir
()
...
...
@@ -29,7 +30,7 @@ if GetDepend('RT_USING_SFUD'):
if
GetDepend
(
'RT_SFUD_USING_SFDP'
):
src_device
+=
[
'sfud/src/sfud_sfdp.c'
]
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
:
if
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
:
LOCAL_CFLAGS
+=
' -std=c99'
elif
rtconfig
.
PLATFORM
in
[
'armcc'
]:
LOCAL_CFLAGS
+=
' --c99'
...
...
components/libc/cplusplus/SConscript
浏览文件 @
30c793fd
from
building
import
*
from
gcc
import
*
import
os
Import
(
'rtconfig'
)
...
...
@@ -7,8 +8,7 @@ src = ['cxx_crt_init.c', 'cxx_crt.cpp']
CPPPATH
=
[
cwd
]
CXXFLAGS
=
''
if
rtconfig
.
PLATFORM
in
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
and
not
GetDepend
(
'RT_USING_CPP_EXCEPTIONS'
):
if
rtconfig
.
PLATFORM
in
GetGCCLikePLATFORM
()
and
not
GetDepend
(
'RT_USING_CPP_EXCEPTIONS'
):
CXXFLAGS
+=
' -fno-exceptions -fno-rtti -ffunction-sections -fdata-sections -Wl,--gc-sections'
# reduce resource consumptions
group
=
DefineGroup
(
'CPP'
,
src
,
depend
=
[
'RT_USING_CPLUSPLUS'
],
CPPPATH
=
CPPPATH
,
CXXFLAGS
=
CXXFLAGS
)
...
...
tools/gcc.py
浏览文件 @
30c793fd
...
...
@@ -66,6 +66,10 @@ def CheckHeader(rtconfig, filename):
return
False
# GCC like means the toolchains which are compatible with GCC
def
GetGCCLikePLATFORM
():
return
[
'gcc'
,
'armclang'
,
'llvm-arm'
]
def
GetNewLibVersion
(
rtconfig
):
version
=
None
root
=
GetGCCRoot
(
rtconfig
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录