This is the mail archive of the ecos-devel@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC 6/9] * Improve lwip cdl options


There are a number of lwip cdl options which are only valid if
another option is selected. Add the relevant active_if statements
to the cdl file.

Signed-off-by: Andrew Parlane <andrewp@carallon.com>
Signed-off-by: Will Wagner <willw@carallon.com>
---
 packages/net/lwip_tcpip/current/cdl/lwip_net.cdl | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl b/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
index cd7a8ec..69fcc3d 100644
--- a/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
+++ b/packages/net/lwip_tcpip/current/cdl/lwip_net.cdl
@@ -1278,6 +1278,7 @@ cdl_package CYGPKG_NET_LWIP {
display "Simultaneous queued IP packets for reassembly"
             flavor          data
             default_value   5
+            active_if       { CYGFUN_LWIP_IP_REASSEMBLY }
             description     "
The number of simultaneously IP packets queued for reassembly
                 (whole packets, not fragments!)."
@@ -1330,6 +1331,8 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Struct netbufs"
             flavor          data
             default_value   2
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
+                              CYGPKG_LWIP_NETCONN_API }
             description     "
                The number of struct netbufs. (only needed if you use the
                sequential API, like api_lib.c)"
@@ -1339,6 +1342,8 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Struct netconns"
             flavor          data
             default_value   4
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL &&
+                              CYGPKG_LWIP_NETCONN_API }
             description     "
                 The number of struct netconns. (only needed if you use the
                 sequential API, like api_lib.c)"
@@ -1348,6 +1353,8 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of concurrent lwip_addrinfo() calls"
             flavor          data
             default_value   1
+            active_if       { CYGPKG_LWIP_DNS &&
+                              CYGPKG_LWIP_SOCKET_API }
             description     "
                 The number of netdb buffers. (only needed if you use DNS)"
         }
@@ -1356,6 +1363,8 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of host entries"
             flavor          data
             default_value   1
+            active_if       { CYGPKG_LWIP_DNS &&
+ (CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC == 1) }
             description     "
                 The number of host entries in the local host list.
(only needed if you use DNS and CYGFUN_LWIP_DNS_LOCAL_HOSTLIST_IS_DYNAMIC == 1)"
@@ -1365,6 +1374,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Struct tcpip_msg"
             flavor          data
             default_value   8
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL }
             description     "
                 The number of struct tcpip_msg, which are used for
callback/timeout API communication. (only needed if you use
@@ -1375,6 +1385,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Incoming struct tcpip_msg"
             flavor          data
             default_value   8
+            active_if       { CYGFUN_LWIP_MODE_SEQUENTIAL }
             description     "
The number of struct tcpip_msg, which are used for incoming
                 packets. (only needed if you use tcpip.c)"
@@ -1384,6 +1395,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of PPoE interfaces"
             flavor          data
             default_value   1
+            active_if       { CYGFUN_LWIP_PPPOE_SUPPORT }
             description     "
                 The number of concurrently active PPPoE interfaces
                 (only used with CYGFUN_LWIP_PPPOE_SUPPORT)"
@@ -1393,6 +1405,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of branches in SNMP tree"
             flavor          data
             default_value   30
+            active_if       { CYGPKG_LWIP_SNMP }
             description     "
The number of branches in the SNMP tree. (only needed if you use SNMP)"
         }
@@ -1401,6 +1414,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of leafs in the SNMP tree"
             flavor          data
             default_value   50
+            active_if       { CYGPKG_LWIP_SNMP }
             description     "
The number of leafs in the SNMP tree. (only needed if you use SNMP)"
         }
@@ -1409,6 +1423,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of concurrent SNMP requests"
             flavor          data
             default_value   2
+            active_if       { CYGPKG_LWIP_SNMP }
             description     "
                 Two of of these are used per request: One for input,
                 one for output. (Only needed if you use SNMP)"
@@ -1418,6 +1433,7 @@ cdl_package CYGPKG_NET_LWIP {
             display         "Number of SNMP OID or values"
             flavor          data
             default_value   3
+            active_if       { CYGPKG_LWIP_SNMP }
             description     "
                 The number of OID or values concurrently used.
                 Three of these are used per request: One for the value
--
1.8.1.msysgit.1



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]