summaryrefslogtreecommitdiff
path: root/components/dfs
diff options
context:
space:
mode:
authorbernard.xiong <[email protected]>2010-04-18 15:27:13 +0000
committerbernard.xiong <[email protected]>2010-04-18 15:27:13 +0000
commit5562ddf77a068f43cd94390f914afb72dc5e2142 (patch)
treea2ce0eced1baf167aa007dbef8c7b63ac1333e9c /components/dfs
parentd307a74a60ef94b80f2e1b66f83232171c5cb1b0 (diff)
add group script support.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@641 bbd45198-f89e-11dd-88c7-29a3b14d5316
Diffstat (limited to 'components/dfs')
-rw-r--r--components/dfs/SConscript28
1 files changed, 22 insertions, 6 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript
index 48ccc84c15..d8511cd7f7 100644
--- a/components/dfs/SConscript
+++ b/components/dfs/SConscript
@@ -1,6 +1,7 @@
Import('env')
Import('rtconfig')
Import('RTT_ROOT')
+Import('projects')
dfs = Split("""
src/dfs_fs.c
@@ -47,20 +48,35 @@ 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']
+# The set of source files associated with this SConscript file.
+path = [RTT_ROOT + '/components/dfs', RTT_ROOT + '/components/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']
+ path = path + [RTT_ROOT + '/components/dfs/filesystems/yaffs2', RTT_ROOT + '/components/dfs/filesystems/yaffs2/direct']
if rtconfig.RT_USING_DFS_ELMFAT:
src_local = src_local + elmfat
- path = path + [RTT_ROOT + '/filesystem/dfs/filesystems/elmfat']
+ # path = path + [RTT_ROOT + '/components/dfs/filesystems/elmfat']
+
+# group definitions
+group = {}
+group['name'] = 'Filesystem'
+group['src'] = File(src_local)
+group['CCFLAGS'] = ''
+group['CPPPATH'] = path
+group['CPPDEFINES'] = ''
+group['LINKFLAGS'] = ''
+
+# add group to project list
+projects.append(group)
-env.Append(CPPPATH = path)
+env.Append(CCFLAGS = group['CCFLAGS'])
+env.Append(CPPPATH = group['CPPPATH'])
+env.Append(CPPDEFINES = group['CPPDEFINES'])
+env.Append(LINKFLAGS = group['LINKFLAGS'])
-obj = env.Object(src_local)
+obj = env.Object(group['src'])
Return('obj')