瀏覽代碼

[nfs]: optimize Kconfig file for nfs

SummerGift 7 年之前
父節點
當前提交
3cefa437dd
共有 2 個文件被更改,包括 12 次插入8 次删除
  1. 11 8
      components/dfs/Kconfig
  2. 1 0
      components/net/Kconfig

+ 11 - 8
components/dfs/Kconfig

@@ -10,19 +10,22 @@ if RT_USING_DFS
     config DFS_USING_WORKDIR
         bool "Using working directory"
         default y
-
+     
     config DFS_FILESYSTEMS_MAX
-        int "The maximal number of mounted file system"
-        default 2
-
+        int "The maximal number of mounted file system"        
+        default 4 if RT_USING_DFS_NFS
+        default 2 
+    
     config DFS_FILESYSTEM_TYPES_MAX
         int "The maximal number of file system type"
-        default 2
-
+        default 4 if RT_USING_DFS_NFS
+        default 2 
+        
     config DFS_FD_MAX
         int "The maximal number of opened files"
+        default 16 if RT_USING_DFS_NFS
         default 4
-    
+   
     config RT_USING_DFS_ELMFAT
         bool "Enable elm-chan fatfs"
         default y
@@ -156,7 +159,7 @@ if RT_USING_DFS
 
     config RT_USING_DFS_NFS
         bool "Using NFS v3 client file system"
-        depends on RT_USING_LWIP
+        select RT_USING_LWIP
         default n
 
     if RT_USING_DFS_NFS

+ 1 - 0
components/net/Kconfig

@@ -111,6 +111,7 @@ config RT_USING_LWIP
 
         config RT_LWIP_UDP_PCB_NUM
             int "the number of UDP socket"
+            default 8 if RT_USING_DFS_NFS
             default 4
 
         if RT_LWIP_TCP