Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
8bdf993b
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
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,发现更多精彩内容 >>
提交
8bdf993b
编写于
10月 13, 2017
作者:
B
bernard
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[libc] Build correct SConscript file.
上级
444915d1
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
74 addition
and
41 deletion
+74
-41
components/libc/KConfig
components/libc/KConfig
+20
-4
components/libc/SConscript
components/libc/SConscript
+8
-20
components/libc/compilers/SConscript
components/libc/compilers/SConscript
+15
-0
components/libc/compilers/armlibc/SConscript
components/libc/compilers/armlibc/SConscript
+7
-4
components/libc/compilers/dlib/SConscript
components/libc/compilers/dlib/SConscript
+3
-3
components/libc/compilers/minilibc/SConscript
components/libc/compilers/minilibc/SConscript
+6
-4
components/libc/compilers/newlib/SConscript
components/libc/compilers/newlib/SConscript
+6
-3
components/libc/libdl/SConscript
components/libc/libdl/SConscript
+7
-2
components/libc/pthreads/SConscript
components/libc/pthreads/SConscript
+2
-1
未找到文件。
components/libc/KConfig
浏览文件 @
8bdf993b
menu "libc"
config RT_USING_LIBC
bool "Enable libc APIs from toolchain"
default y
bool "Enable libc APIs from toolchain"
default y
config RT_USING_PTHREADS
bool "Enable pthreads APIs"
default y
bool "Enable pthreads APIs"
default n
if RT_USING_LIBC
config RT_USING_POSIX_STDIN
bool "Enable stdin"
select RT_USING_DFS
select RT_USING_DFS_DEVFS
default y
config RT_USING_POSIX_MMAP
bool "Enable mmap() api"
default n
config RT_USING_POSIX_TERMIOS
bool "Enable termios feature"
default n
endif
endmenu
components/libc/SConscript
浏览文件 @
8bdf993b
# for libc component
import
os
Import
(
'rtconfig'
)
# RT-Thread building script for bridge
import
os
from
building
import
*
cwd
=
GetCurrentDir
()
objs
=
[]
cwd
=
GetCurrentDir
()
if
GetDepend
(
'RT_USING_LIBC'
):
if
os
.
path
.
isfile
(
os
.
path
.
join
(
cwd
,
'newlib/SConscript'
))
and
rtconfig
.
PLATFORM
==
'gcc'
:
objs
=
objs
+
SConscript
(
'newlib/SConscript'
)
elif
os
.
path
.
isfile
(
os
.
path
.
join
(
cwd
,
'armlibc/SConscript'
))
and
rtconfig
.
PLATFORM
==
'armcc'
:
objs
=
objs
+
SConscript
(
'armlibc/SConscript'
)
elif
os
.
path
.
isfile
(
os
.
path
.
join
(
cwd
,
'dlib/SConscript'
))
and
rtconfig
.
PLATFORM
==
'iar'
:
objs
=
objs
+
SConscript
(
'dlib/SConscript'
)
else
:
if
os
.
path
.
isfile
(
os
.
path
.
join
(
cwd
,
'minilibc/SConscript'
))
and
rtconfig
.
PLATFORM
==
'gcc'
and
rtconfig
.
ARCH
!=
'sim'
:
objs
=
objs
+
SConscript
(
'minilibc/SConscript'
)
if
GetDepend
(
'RT_USING_LIBC'
)
and
GetDepend
(
'RT_USING_PTHREADS'
):
objs
=
objs
+
SConscript
(
'pthreads/SConscript'
)
list
=
os
.
listdir
(
cwd
)
if
GetDepend
(
'RT_USING_MODULE'
)
and
GetDepend
(
'RT_USING_LIBDL'
):
objs
=
objs
+
SConscript
(
'libdl/SConscript'
)
for
d
in
list
:
path
=
os
.
path
.
join
(
cwd
,
d
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
path
,
'SConscript'
)):
objs
=
objs
+
SConscript
(
os
.
path
.
join
(
d
,
'SConscript'
))
Return
(
'objs'
)
components/libc/compilers/SConscript
0 → 100644
浏览文件 @
8bdf993b
# RT-Thread building script for bridge
import
os
from
building
import
*
cwd
=
GetCurrentDir
()
objs
=
[]
list
=
os
.
listdir
(
cwd
)
for
d
in
list
:
path
=
os
.
path
.
join
(
cwd
,
d
)
if
os
.
path
.
isfile
(
os
.
path
.
join
(
path
,
'SConscript'
)):
objs
=
objs
+
SConscript
(
os
.
path
.
join
(
d
,
'SConscript'
))
Return
(
'objs'
)
components/libc/compilers/armlibc/SConscript
浏览文件 @
8bdf993b
from
building
import
*
Import
(
'rtconfig'
)
src
=
Glob
(
'*.c'
)
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp'
)
cwd
=
GetCurrentDir
()
group
=
[]
CPPPATH
=
[
cwd
]
CPPDEFINES
=
[
'RT_USING_ARM_LIBC'
]
group
=
DefineGroup
(
'libc'
,
src
,
depend
=
[
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
if
rtconfig
.
PLATFORM
==
'armcc'
:
group
=
DefineGroup
(
'libc'
,
src
,
depend
=
[
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
components/libc/compilers/dlib/SConscript
浏览文件 @
8bdf993b
from
building
import
*
import
rtconfig
Import
(
'rtconfig'
)
src
=
Glob
(
'*.c'
)
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
cwd
=
GetCurrentDir
()
group
=
[]
CPPPATH
=
[
cwd
]
...
...
components/libc/compilers/minilibc/SConscript
浏览文件 @
8bdf993b
Import
(
'RTT_ROOT'
)
from
building
import
*
Import
(
'rtconfig'
)
src
=
Glob
(
'*.c
'
)
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp
'
)
cwd
=
GetCurrentDir
()
group
=
[]
CPPPATH
=
[
cwd
]
CPPDEFINES
=
[
'RT_USING_MINILIBC'
]
group
=
DefineGroup
(
'libc'
,
src
,
depend
=
[
'RT_USING_MINILIBC'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
if
rtconfig
.
PLATFORM
==
'gcc'
and
not
GetDepend
(
'RT_USING_LIBC'
):
group
=
DefineGroup
(
'libc'
,
src
,
depend
=
[
''
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
)
Return
(
'group'
)
components/libc/compilers/newlib/SConscript
浏览文件 @
8bdf993b
from
building
import
*
Import
(
'rtconfig'
)
src
=
Glob
(
'*.c'
)
src
=
Glob
(
'*.c'
)
cwd
=
GetCurrentDir
()
group
=
[]
CPPPATH
=
[
cwd
]
CPPDEFINES
=
[
'RT_USING_NEWLIB'
]
...
...
@@ -12,7 +14,8 @@ CPPDEFINES = ['RT_USING_NEWLIB']
# been referenced. So setting this won't result in bigger text size.
LIBS
=
[
'c'
,
'm'
]
group
=
DefineGroup
(
'newlib'
,
src
,
depend
=
[
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
,
LIBS
=
LIBS
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
group
=
DefineGroup
(
'newlib'
,
src
,
depend
=
[
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
,
CPPDEFINES
=
CPPDEFINES
,
LIBS
=
LIBS
)
Return
(
'group'
)
components/libc/libdl/SConscript
浏览文件 @
8bdf993b
from
building
import
*
Import
(
'rtconfig'
)
src
=
Glob
(
'*.c
'
)
src
=
Glob
(
'*.c'
)
+
Glob
(
'*.cpp
'
)
cwd
=
GetCurrentDir
()
group
=
[]
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'libdl'
,
src
,
depend
=
[
'RT_USING_MODULE'
,
'RT_USING_LIBDL'
],
CPPPATH
=
CPPPATH
)
if
rtconfig
.
PLATFORM
==
'gcc'
:
group
=
DefineGroup
(
'libc'
,
src
,
depend
=
[
'RT_USING_MODULE'
,
'RT_USING_LIBDL'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/libc/pthreads/SConscript
浏览文件 @
8bdf993b
...
...
@@ -4,6 +4,7 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'pthreads'
,
src
,
depend
=
[
'RT_USING_PTHREADS'
,
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
)
group
=
DefineGroup
(
'pthreads'
,
src
,
depend
=
[
'RT_USING_PTHREADS'
,
'RT_USING_LIBC'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录