Skip to content

Commit

Permalink
net: Make NET imply NETDEVICES
Browse files Browse the repository at this point in the history
Normally, when NET is enabled, CMD_NET will then be enabled and in turn
NETDEVICES will (likely) be enabled via imply. However, if we disable
CMDLINE in a defconfig we now no longer get CMD_NET enabling NETDEVICES
for us. This suggestion (as an imply is) really isn't about the network
commands but network itself and is a legacy of how intertwined
NET/CMD_NET were historically. Move this over to the NET entry instead
where it is a more logical fit.

Reported-by: Simon Glass <[email protected]>
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Simon Glass <[email protected]>
Tested-by: Simon Glass <[email protected]>
  • Loading branch information
trini committed Nov 23, 2023
1 parent 6df4e7b commit f444903
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion cmd/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1681,7 +1681,6 @@ if NET
menuconfig CMD_NET
bool "Network commands"
default y
imply NETDEVICES

if CMD_NET

Expand Down
1 change: 1 addition & 0 deletions net/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
menuconfig NET
bool "Networking support"
default y
imply NETDEVICES

if NET

Expand Down

0 comments on commit f444903

Please sign in to comment.