summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard <[email protected]>2013-07-29 13:52:59 +0800
committerbernard <[email protected]>2013-07-29 13:52:59 +0800
commitd74dee0dd6082d9fdb9178610dd2c372ec043c1f (patch)
tree4be92dc818d9eedf1405f8be6e8fe090b68a39a0
parentba8f125f56b465b1cfad06525315e18271377125 (diff)
Add ramfs into building script
-rw-r--r--components/dfs/SConscript9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/dfs/SConscript b/components/dfs/SConscript
index 57f59b7239..132f237f8b 100644
--- a/components/dfs/SConscript
+++ b/components/dfs/SConscript
@@ -23,6 +23,11 @@ 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
@@ -175,6 +180,10 @@ 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']