소스 검색

[net][sal] Modify SAL configure judgment.

chenyong 6 년 전
부모
커밋
a8d27156a3
1개의 변경된 파일16개의 추가작업 그리고 14개의 파일을 삭제
  1. 16 14
      components/net/Kconfig

+ 16 - 14
components/net/Kconfig

@@ -9,20 +9,22 @@ config RT_USING_SAL
 
     if RT_USING_SAL
 
-        menu "protocol stack implement"
-
-            config SAL_USING_LWIP
-                bool "Support lwIP stack"
-                default y if RT_USING_LWIP
-                default n
-                depends on RT_USING_LWIP
-
-            config SAL_USING_AT
-                bool "Support AT Commands stack"
-                default y if AT_USING_SOCKET
-                default n
-                depends on AT_USING_SOCKET
-        endmenu
+        if RT_USING_LWIP || AT_USING_SOCKET
+        
+            menu "protocol stack implement"
+
+                config SAL_USING_LWIP
+                    bool "Support lwIP stack"
+                    default y
+                    depends on RT_USING_LWIP
+
+                config SAL_USING_AT
+                    bool "Support AT Commands stack"
+                    default y
+                    depends on AT_USING_SOCKET
+            endmenu
+        
+        endif
 
         config SAL_USING_POSIX
             bool "Enable BSD socket operated by file system API"