cmd: Kconfig: Fix submenu for network commands
authorPaul Barker <paul.barker.ct@bp.renesas.com>
Fri, 7 Mar 2025 15:15:29 +0000 (15:15 +0000)
committerJerome Forissier <jerome.forissier@linaro.org>
Mon, 31 Mar 2025 07:46:25 +0000 (09:46 +0200)
commit64b973fc78fdba18389d372d6af2af18ee79dd8c
tree1ba5750e71a5d89270a3fe4f542043f53ac858a9
parentf93b15e70649d0639b71206abf03ca34184a0ed3
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: 98ad145db61a ("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>
cmd/Kconfig