NSH Configuration: Refactor networking and netutils dependencies

This commit is contained in:
Gregory Nutt 2014-01-09 10:46:28 -06:00
parent bc40513eb2
commit e0156d95a1
5 changed files with 11 additions and 4 deletions

View File

@ -754,4 +754,7 @@
* apps/examples/mount/Kconfig: Fill in empty Kconfig file (2013-12-31).
* builtin/Makefile: Fixes for native Windows build from Max Holtzberg
(2014-1-4).
* apps/netutils/dhcpc/Kconfig, resolv/Kconfig, telnetd/Kconfig, and
apps/nshlib/Kconfig: Refactor some configuration dependencies: NSH
features should debug on netutil selections; netutil selections
should depend on networking selections. (2014-1-9).

View File

@ -6,6 +6,7 @@
config NETUTILS_DHCPC
bool "DHCP client"
default n
depends on NET && NET_UDP && NET_BROADCAST
---help---
Enable support for the DHCP client.

View File

@ -6,6 +6,7 @@
config NETUTILS_RESOLV
bool "Name resolution"
default n
depends on NET && NET_UDP && NET_BROADCAST
---help---
Enable support for the name resolution.

View File

@ -6,6 +6,7 @@
config NETUTILS_TELNETD
bool "Telet daemon"
default n
depends on NET && NET_TCP
---help---
Enable support for the Telnet daemon.

View File

@ -558,7 +558,7 @@ config NSH_ARCHINIT
config NSH_TELNET
bool "Use Telnet console"
default n
depends on NET && NET_TCP
depends on NETUTILS_TELNETD
---help---
If NSH_TELNET is set to 'y', then a TELENET
server front-end is selected. When this option is provided,
@ -568,6 +568,7 @@ config NSH_TELNET
endif
if NSH_TELNET
config NSH_TELNETD_PORT
int "Telnet port number"
default 23
@ -639,7 +640,7 @@ endif
config NSH_DHCPC
bool "Use DHCP to get IP address"
default n
depends on NSH_LIBRARY && NET && NET_UDP && NET_BROADCAST
depends on NSH_LIBRARY && NETUTILS_DHCPC
---help---
Obtain the IP address via DHCP.
@ -674,7 +675,7 @@ config NSH_NETMASK
config NSH_DNS
bool "Use DNS"
default n
depends on NSH_LIBRARY && NET && NET_UDP && NET_BROADCAST
depends on NSH_LIBRARY && NETUTILS_RESOLV
---help---
Configure to use a DNS.