mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-11 07:24:46 +00:00
cmd: Kconfig: Fix submenu for network commands
The Kconfig parser seems to get confused by the current if conditions
following CMD_NET and displays all network command options directly in
the "Command line interface" menu instead of in a "Network commands"
submenu.
To help out Kconfig we can simplify the if conditions, so that the
definition of CMD_NET is followed immediately by an if/endif block that
contains all network command options. We can also remove nested checks
for CMD_NET or (NET || NET_LWIP).
Fixes: 98ad145db6
("net: lwip: add DHCP support and dhcp commmand")
Signed-off-by: Paul Barker <paul.barker.ct@bp.renesas.com>
Reviewed-by: Jerome Forissier <jerome.forissier@linaro.org>
This commit is contained in:
parent
f93b15e706
commit
64b973fc78
1 changed files with 4 additions and 11 deletions
15
cmd/Kconfig
15
cmd/Kconfig
|
@ -1833,12 +1833,10 @@ menuconfig CMD_NET
|
||||||
bool "Network commands"
|
bool "Network commands"
|
||||||
default y
|
default y
|
||||||
|
|
||||||
endif
|
if CMD_NET
|
||||||
|
|
||||||
if NET
|
if NET
|
||||||
|
|
||||||
if CMD_NET
|
|
||||||
|
|
||||||
config CMD_BOOTP
|
config CMD_BOOTP
|
||||||
bool "bootp"
|
bool "bootp"
|
||||||
default y
|
default y
|
||||||
|
@ -2079,7 +2077,6 @@ config IPV6_ROUTER_DISCOVERY
|
||||||
help
|
help
|
||||||
Will automatically perform router solicitation on first IPv6
|
Will automatically perform router solicitation on first IPv6
|
||||||
network operation
|
network operation
|
||||||
endif # if CMD_NET
|
|
||||||
|
|
||||||
config CMD_ETHSW
|
config CMD_ETHSW
|
||||||
bool "ethsw"
|
bool "ethsw"
|
||||||
|
@ -2096,10 +2093,6 @@ config CMD_WOL
|
||||||
|
|
||||||
endif # if NET
|
endif # if NET
|
||||||
|
|
||||||
if NET || NET_LWIP
|
|
||||||
|
|
||||||
if CMD_NET
|
|
||||||
|
|
||||||
config CMD_DHCP
|
config CMD_DHCP
|
||||||
bool "dhcp"
|
bool "dhcp"
|
||||||
select PROT_DHCP_LWIP if NET_LWIP
|
select PROT_DHCP_LWIP if NET_LWIP
|
||||||
|
@ -2175,8 +2168,6 @@ config WGET_HTTPS
|
||||||
help
|
help
|
||||||
Enable TLS over http for wget.
|
Enable TLS over http for wget.
|
||||||
|
|
||||||
endif # if CMD_NET
|
|
||||||
|
|
||||||
config CMD_PXE
|
config CMD_PXE
|
||||||
bool "pxe"
|
bool "pxe"
|
||||||
select PXE_UTILS
|
select PXE_UTILS
|
||||||
|
@ -2184,7 +2175,9 @@ config CMD_PXE
|
||||||
help
|
help
|
||||||
Boot image via network using PXE protocol
|
Boot image via network using PXE protocol
|
||||||
|
|
||||||
endif # if NET || NET_LWIP
|
endif # if CMD_NET
|
||||||
|
|
||||||
|
endif # NET || NET_LWIP
|
||||||
|
|
||||||
menu "Misc commands"
|
menu "Misc commands"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue