diff options
| author | bernard.xiong <[email protected]> | 2010-04-18 15:01:28 +0000 |
|---|---|---|
| committer | bernard.xiong <[email protected]> | 2010-04-18 15:01:28 +0000 |
| commit | 075498e7963fb23699e645c50ca0214d19a0041a (patch) | |
| tree | 3dfe75ed9aac5d654137d5844ccd8d9222381e9f /components/dfs/SConscript | |
| parent | 04fa66ca3d781e516a6ac38c3b18c673ee16df04 (diff) | |
move to components directory
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@634 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs/SConscript')
| -rw-r--r-- | components/dfs/SConscript | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript new file mode 100644 index 0000000000..48ccc84c15 --- /dev/null +++ b/components/dfs/SConscript @@ -0,0 +1,66 @@ +Import('env')
+Import('rtconfig')
+Import('RTT_ROOT')
+
+dfs = Split("""
+src/dfs_fs.c
+src/dfs_init.c
+src/dfs_posix.c
+src/dfs_raw.c
+src/dfs_util.c
+""")
+
+# DFS-FatFs options
+fatfs = Split("""
+filesystems/fatfs/fatfs_cache.c
+filesystems/fatfs/fatfs_direntry.c
+filesystems/fatfs/fatfs_fat.c
+filesystems/fatfs/fatfs_file.c
+filesystems/fatfs/fatfs_filename.c
+filesystems/fatfs/fatfs_init.c
+filesystems/fatfs_misc.c
+filesystems/fatfs/fatfs_mount.c""")
+
+# DFS-ELMFAT options
+elmfat = Split("""
+filesystems/elmfat/dfs_elm.c
+filesystems/elmfat/ff.c
+""")
+
+# DFS-YAFFS2 options
+yaffs2_main = Split("""
+filesystems/yaffs2/direct/yaffscfg.c
+filesystems/yaffs2/direct/yaffs_fileem.c
+filesystems/yaffs2/direct/yaffsfs.c
+filesystems/yaffs2/direct/dfs_yaffs2.c
+""")
+
+yaffs2_comm = Split("""
+filesystems/yaffs2/yaffs_ecc.c
+filesystems/yaffs2/yaffs_guts.c
+filesystems/yaffs2/yaffs_packedtags1.c
+filesystems/yaffs2/yaffs_tagscompat.c
+filesystems/yaffs2/yaffs_packedtags2.c
+filesystems/yaffs2/yaffs_tagsvalidity.c
+filesystems/yaffs2/yaffs_nand.c
+filesystems/yaffs2/yaffs_checkptrw.c
+filesystems/yaffs2/yaffs_qsort.c
+""")
+
+# The set of source files associated with this SConscript file.
+src_local = dfs
+path = [RTT_ROOT + '/filesystem/dfs', RTT_ROOT + '/filesystem/dfs/include']
+
+if rtconfig.RT_USING_DFS_YAFFS2:
+ src_local = src_local + yaffs2_main + yaffs2_comm
+ path = path + [RTT_ROOT + '/filesystem/dfs/filesystems/yaffs2', RTT_ROOT + '/filesystem/dfs/filesystems/yaffs2/direct']
+
+if rtconfig.RT_USING_DFS_ELMFAT:
+ src_local = src_local + elmfat
+ path = path + [RTT_ROOT + '/filesystem/dfs/filesystems/elmfat']
+
+env.Append(CPPPATH = path)
+
+obj = env.Object(src_local)
+
+Return('obj')
|
