Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
rt-thread
提交
1377022b
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1377022b
编写于
4月 03, 2015
作者:
B
Bernard Xiong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[DFS] Use SConscript of each file system to build.
上级
6c83ff6e
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
153 addition
and
282 deletion
+153
-282
components/dfs/SConscript
components/dfs/SConscript
+13
-202
components/dfs/filesystems/SConscript
components/dfs/filesystems/SConscript
+15
-0
components/dfs/filesystems/devfs/SConscript
components/dfs/filesystems/devfs/SConscript
+11
-0
components/dfs/filesystems/elmfat/SConscript
components/dfs/filesystems/elmfat/SConscript
+26
-0
components/dfs/filesystems/jffs2/SConscript
components/dfs/filesystems/jffs2/SConscript
+50
-0
components/dfs/filesystems/nfs/SConscript
components/dfs/filesystems/nfs/SConscript
+11
-0
components/dfs/filesystems/ramfs/SConscript
components/dfs/filesystems/ramfs/SConscript
+1
-1
components/dfs/filesystems/romfs/SConscript
components/dfs/filesystems/romfs/SConscript
+15
-0
components/dfs/filesystems/uffs/SConscript
components/dfs/filesystems/uffs/SConscript
+11
-0
include/rtcomponents.h
include/rtcomponents.h
+0
-79
未找到文件。
components/dfs/SConscript
浏览文件 @
1377022b
Import
(
'RTT_ROOT'
)
Import
(
'rtconfig'
)
from
building
import
*
# The set of source files associated with this SConscript file.
dfs
=
Split
(
"""
src/dfs.c
src/dfs_fs.c
src/dfs_file.c
src/dfs_posix.c
"""
)
# DFS-ELMFAT options
elmfat
=
Split
(
"""
filesystems/elmfat/dfs_elm.c
filesystems/elmfat/ff.c
"""
)
# DFS-ROMFS options
romfs
=
Split
(
"""
filesystems/romfs/dfs_romfs.c
"""
)
if
not
GetDepend
(
'DFS_ROMFS_ROOT'
):
romfs
=
romfs
+
Split
(
'filesystems/romfs/romfs.c'
)
# DFS-RAMFS options
ramfs
=
Split
(
"""
filesystems/ramfs/dfs_ramfs.c
"""
)
# DFS-DeviceFS options
devfs
=
Split
(
"""
filesystems/devfs/devfs.c
filesystems/devfs/console.c
"""
)
# DFS-YAFFS2 options
yaffs2_src
=
Split
(
"""
filesystems/yaffs2/dfs_yaffs2.c
filesystems/yaffs2/yaffs_osglue.c
filesystems/yaffs2/yaffs_nandcfg.c
filesystems/yaffs2/yaffs/yaffs_allocator.c
filesystems/yaffs2/yaffs/yaffs_bitmap.c
filesystems/yaffs2/yaffs/yaffs_checkptrw.c
filesystems/yaffs2/yaffs/yaffs_ecc.c
filesystems/yaffs2/yaffs/yaffs_guts.c
filesystems/yaffs2/yaffs/yaffs_nameval.c
filesystems/yaffs2/yaffs/yaffs_nand.c
filesystems/yaffs2/yaffs/yaffs_packedtags1.c
filesystems/yaffs2/yaffs/yaffs_packedtags2.c
filesystems/yaffs2/yaffs/yaffs_summary.c
filesystems/yaffs2/yaffs/yaffs_tagscompat.c
filesystems/yaffs2/yaffs/yaffs_verify.c
filesystems/yaffs2/yaffs/yaffs_yaffs1.c
filesystems/yaffs2/yaffs/yaffs_yaffs2.c
filesystems/yaffs2/yaffs/direct/yaffs_attribs.c
filesystems/yaffs2/yaffs/direct/yaffs_hweight.c
filesystems/yaffs2/yaffs/direct/yaffs_nandif.c
filesystems/yaffs2/yaffs/direct/yaffs_qsort.c
filesystems/yaffs2/yaffs/direct/yaffsfs.c
"""
)
nfs
=
Split
(
'''
filesystems/nfs/mount_clnt.c
filesystems/nfs/mount_xdr.c
filesystems/nfs/nfs_clnt.c
filesystems/nfs/nfs_xdr.c
filesystems/nfs/dfs_nfs.c
filesystems/nfs/rpc/auth_none.c
filesystems/nfs/rpc/clnt_generic.c
filesystems/nfs/rpc/clnt_udp.c
filesystems/nfs/rpc/rpc_prot.c
filesystems/nfs/rpc/pmap.c
filesystems/nfs/rpc/xdr.c
filesystems/nfs/rpc/xdr_mem.c
'''
)
uffs
=
Split
(
'''
filesystems/uffs/src/uffs/uffs_badblock.c
filesystems/uffs/src/uffs/uffs_blockinfo.c
filesystems/uffs/src/uffs/uffs_buf.c
filesystems/uffs/src/uffs/uffs_debug.c
filesystems/uffs/src/uffs/uffs_device.c
filesystems/uffs/src/uffs/uffs_ecc.c
filesystems/uffs/src/uffs/uffs_crc.c
filesystems/uffs/src/uffs/uffs_fd.c
filesystems/uffs/src/uffs/uffs_find.c
filesystems/uffs/src/uffs/uffs_flash.c
filesystems/uffs/src/uffs/uffs_fs.c
filesystems/uffs/src/uffs/uffs_init.c
filesystems/uffs/src/uffs/uffs_mem.c
filesystems/uffs/src/uffs/uffs_mtb.c
filesystems/uffs/src/uffs/uffs_pool.c
filesystems/uffs/src/uffs/uffs_public.c
filesystems/uffs/src/uffs/uffs_tree.c
filesystems/uffs/src/uffs/uffs_utils.c
filesystems/uffs/src/uffs/uffs_version.c
filesystems/uffs/dfs_uffs.c
filesystems/uffs/uffs_nandif.c
filesystems/uffs/uffs_rtthread.c
'''
)
jffs2
=
Split
(
'''
filesystems/jffs2/dfs_jffs2.c
filesystems/jffs2/porting.c
filesystems/jffs2/cyg/compress/src/adler32.c
filesystems/jffs2/cyg/compress/src/compress.c
filesystems/jffs2/cyg/compress/src/deflate.c
filesystems/jffs2/cyg/compress/src/infback.c
filesystems/jffs2/cyg/compress/src/inffast.c
filesystems/jffs2/cyg/compress/src/inflate.c
filesystems/jffs2/cyg/compress/src/inftrees.c
filesystems/jffs2/cyg/compress/src/trees.c
filesystems/jffs2/cyg/compress/src/uncompr.c
filesystems/jffs2/cyg/compress/src/zutil.c
filesystems/jffs2/cyg/crc/crc16.c
filesystems/jffs2/cyg/crc/crc32.c
filesystems/jffs2/cyg/crc/posix_crc.c
filesystems/jffs2/kernel/rbtree.c
filesystems/jffs2/src/build.c
filesystems/jffs2/src/compr.c
filesystems/jffs2/src/compr_rtime.c
filesystems/jffs2/src/compr_rubin.c
filesystems/jffs2/src/compr_zlib.c
filesystems/jffs2/src/debug.c
filesystems/jffs2/src/dir-ecos.c
filesystems/jffs2/src/erase.c
filesystems/jffs2/src/flashio.c
filesystems/jffs2/src/fs-ecos.c
filesystems/jffs2/src/gc.c
filesystems/jffs2/src/gcthread.c
filesystems/jffs2/src/malloc-ecos.c
filesystems/jffs2/src/nodelist.c
filesystems/jffs2/src/nodemgmt.c
filesystems/jffs2/src/read.c
filesystems/jffs2/src/readinode.c
filesystems/jffs2/src/scan.c
filesystems/jffs2/src/write.c
'''
)
src_local
=
dfs
CPPDEFINES
=
[]
# The set of source files associated with this SConscript file.
path
=
[
RTT_ROOT
+
'/components/dfs'
,
RTT_ROOT
+
'/components/dfs/include'
]
if
GetDepend
(
'RT_USING_DFS_YAFFS2'
):
src_local
=
src_local
+
yaffs2_src
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/yaffs2/yaffs'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/yaffs2/yaffs/direct'
]
if
GetDepend
(
'RT_USING_DFS_ELMFAT'
):
if
GetDepend
(
'RT_DFS_ELM_USE_LFN'
):
if
GetDepend
(
'RT_DFS_ELM_CODE_PAGE_FILE'
):
elmfat
+=
[
'filesystems/elmfat/option/ccfile.c'
]
else
:
if
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
932
:
elmfat
+=
[
'filesystems/elmfat/option/cc932.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
936
:
elmfat
+=
[
'filesystems/elmfat/option/cc936.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
949
:
elmfat
+=
[
'filesystems/elmfat/option/cc949.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
950
:
elmfat
+=
[
'filesystems/elmfat/option/cc950.c'
]
else
:
elmfat
+=
[
'filesystems/elmfat/option/ccsbcs.c'
]
src_local
=
src_local
+
elmfat
if
GetDepend
([
'RT_USING_DFS_NFS'
,
'RT_USING_LWIP'
]):
src_local
=
src_local
+
nfs
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/nfs'
]
if
GetDepend
(
'RT_USING_DFS_ROMFS'
):
src_local
=
src_local
+
romfs
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/romfs'
]
if
GetDepend
(
'RT_USING_DFS_RAMFS'
):
src_local
=
src_local
+
ramfs
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/ramfs'
]
if
GetDepend
(
'RT_USING_DFS_DEVFS'
):
src_local
=
src_local
+
devfs
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/devfs'
]
if
GetDepend
(
'RT_USING_DFS_UFFS'
):
src_local
=
src_local
+
uffs
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/uffs/src/inc'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/uffs'
]
#, \
# RTT_ROOT + '/components/dfs/filesystems/uffs/flash']
if
GetDepend
(
'RT_USING_DFS_JFFS2'
):
src_local
=
src_local
+
jffs2
path
=
path
+
[
RTT_ROOT
+
'/components/dfs/filesystems/jffs2/src'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/jffs2/kernel'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/jffs2/include'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/jffs2'
,
\
RTT_ROOT
+
'/components/dfs/filesystems/jffs2/cyg/compress'
]
group
=
DefineGroup
(
'Filesystem'
,
src_local
,
depend
=
[
'RT_USING_DFS'
],
CPPPATH
=
path
,
CPPDEFINES
=
CPPDEFINES
)
src
=
Glob
(
'src/*.c'
)
cwd
=
GetCurrentDir
()
CPPPATH
=
[
cwd
+
"/include"
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
],
CPPPATH
=
CPPPATH
)
if
GetDepend
(
'RT_USING_DFS'
):
# search in the file system implementation
list
=
os
.
listdir
(
cwd
)
for
item
in
list
:
if
os
.
path
.
isfile
(
os
.
path
.
join
(
cwd
,
item
,
'SConscript'
)):
group
=
group
+
SConscript
(
os
.
path
.
join
(
item
,
'SConscript'
))
Return
(
'group'
)
components/dfs/filesystems/SConscript
0 → 100644
浏览文件 @
1377022b
# 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/dfs/filesystems/devfs/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_DEVFS'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/elmfat/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
if
GetDepend
(
'RT_DFS_ELM_USE_LFN'
):
if
GetDepend
(
'RT_DFS_ELM_CODE_PAGE_FILE'
):
src
+=
[
'option/ccfile.c'
]
else
:
if
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
932
:
src
+=
[
'option/cc932.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
936
:
src
+=
[
'option/cc936.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
949
:
src
+=
[
'option/cc949.c'
]
elif
GetConfigValue
(
'RT_DFS_ELM_CODE_PAGE'
)
==
950
:
src
+=
[
'option/cc950.c'
]
else
:
src
+=
[
'option/ccsbcs.c'
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_ELMFAT'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/jffs2/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Split
(
'''
dfs_jffs2.c
porting.c
cyg/compress/src/adler32.c
cyg/compress/src/compress.c
cyg/compress/src/deflate.c
cyg/compress/src/infback.c
cyg/compress/src/inffast.c
cyg/compress/src/inflate.c
cyg/compress/src/inftrees.c
cyg/compress/src/trees.c
cyg/compress/src/uncompr.c
cyg/compress/src/zutil.c
cyg/crc/crc16.c
cyg/crc/crc32.c
cyg/crc/posix_crc.c
kernel/rbtree.c
src/build.c
src/compr.c
src/compr_rtime.c
src/compr_rubin.c
src/compr_zlib.c
src/debug.c
src/dir-ecos.c
src/erase.c
src/flashio.c
src/fs-ecos.c
src/gc.c
src/gcthread.c
src/malloc-ecos.c
src/nodelist.c
src/nodemgmt.c
src/read.c
src/readinode.c
src/scan.c
src/write.c
'''
)
CPPPATH
=
[
cwd
,
cwd
+
'/include'
,
cwd
+
'/src'
,
cwd
+
'/cyg'
,
cwd
+
'/kernel'
,
cwd
+
'/cyg/compress'
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_JFFS2'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/nfs/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_NFS'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/ramfs/SConscript
浏览文件 @
1377022b
...
...
@@ -4,6 +4,6 @@ cwd = GetCurrentDir()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_MEMHEAP'
],
CPPPATH
=
CPPPATH
)
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_MEMHEAP'
,
'RT_USING_DFS_RAMFS'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/romfs/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
]
if
GetDepend
(
'DFS_ROMFS_ROOT'
):
# A new ROMFS root has been defined, we should remove the romfs.c
SrcRemove
(
src
,
[
'romfs.c'
])
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_ROMFS'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
components/dfs/filesystems/uffs/SConscript
0 → 100644
浏览文件 @
1377022b
# RT-Thread building script for component
from
building
import
*
cwd
=
GetCurrentDir
()
src
=
Glob
(
'*.c'
)
CPPPATH
=
[
cwd
,
cwd
+
'/src/inc'
]
group
=
DefineGroup
(
'Filesystem'
,
src
,
depend
=
[
'RT_USING_DFS'
,
'RT_USING_DFS_UFFS'
],
CPPPATH
=
CPPPATH
)
Return
(
'group'
)
include/rtcomponents.h
已删除
100644 → 0
浏览文件 @
6c83ff6e
/*
* File : rtcomponents.h
* header for RT-Thread components
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2012-2015, RT-Thread Development Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Change Logs:
* Date Author Notes
* 2012-09-20 Bernard Change the name to components.h
* And all components related header files.
* 2015-02-06 Bernard Rename the components.h to rtcom.h
*/
#ifndef RTCOM_H__
#define RTCOM_H__
#ifdef RT_USING_FINSH
#include <finsh.h>
#include <shell.h>
#endif
#ifdef RT_USING_LWIP
#include <lwip/sys.h>
#include <netif/ethernetif.h>
#endif
#ifdef RT_USING_DFS
#include <dfs_init.h>
#include <dfs_fs.h>
#ifdef RT_USING_DFS_ELMFAT
#include <dfs_elm.h>
#endif
#if defined(RT_USING_LWIP) && defined(RT_USING_DFS_NFS)
#include <dfs_nfs.h>
#endif
#ifdef RT_USING_DFS_ROMFS
#include <dfs_romfs.h>
#endif
#ifdef RT_USING_DFS_DEVFS
#include <devfs.h>
#endif
#ifdef RT_USING_DFS_UFFS
#include <dfs_uffs.h>
#endif
#ifdef RT_USING_DFS_JFFS2
#include <dfs_jffs2.h>
#endif
#ifdef RT_USING_DFS_YAFFS2
#include <dfs_yaffs2.h>
#endif
#ifdef RT_USING_DFS_ROMFS
#include <dfs_romfs.h>
#endif
#endif
#ifdef RT_USING_PTHREADS
#include <pthread.h>
#endif
#ifdef RT_USING_MODULE
#include <rtm.h>
#endif
#endif
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录