summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cmd/Kconfig15
1 files changed, 4 insertions, 11 deletions
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 642cc1116e8..ce8393c72da 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -1833,12 +1833,10 @@ menuconfig CMD_NET
bool "Network commands"
default y
-endif
+if CMD_NET
if NET
-if CMD_NET
-
config CMD_BOOTP
bool "bootp"
default y
@@ -2079,7 +2077,6 @@ config IPV6_ROUTER_DISCOVERY
help
Will automatically perform router solicitation on first IPv6
network operation
-endif # if CMD_NET
config CMD_ETHSW
bool "ethsw"
@@ -2096,10 +2093,6 @@ config CMD_WOL
endif # if NET
-if NET || NET_LWIP
-
-if CMD_NET
-
config CMD_DHCP
bool "dhcp"
select PROT_DHCP_LWIP if NET_LWIP
@@ -2175,8 +2168,6 @@ config WGET_HTTPS
help
Enable TLS over http for wget.
-endif # if CMD_NET
-
config CMD_PXE
bool "pxe"
select PXE_UTILS
@@ -2184,7 +2175,9 @@ config CMD_PXE
help
Boot image via network using PXE protocol
-endif # if NET || NET_LWIP
+endif # if CMD_NET
+
+endif # NET || NET_LWIP
menu "Misc commands"