Browse Source

Add ramfs into building script

bernard 11 years ago
parent
commit
d74dee0dd6
1 changed files with 9 additions and 0 deletions
  1. 9 0
      components/dfs/SConscript

+ 9 - 0
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']