[U-Boot] [RFC PATCH] Kconfig: cmd: Make networking command dependent on NET
Michal Simek
michal.simek at xilinx.com
Tue Feb 6 12:26:52 UTC 2018
Enable networking command only when NET is enabled.
And remove selecting NET for CMD_NET
Signed-off-by: Michal Simek <michal.simek at xilinx.com>
---
There is a huge impact on defconfigs because of select NET.
But this change makes sense to do but it just needs to be syncup
properly. Do we have a tool for this kind of change?
---
cmd/Kconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/cmd/Kconfig b/cmd/Kconfig
index 790c40456de5..aedfd03c68ef 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -970,9 +970,10 @@ endmenu
menu "Network commands"
+if NET
+
config CMD_NET
bool "bootp, tftpboot"
- select NET
default y
help
Network commands.
@@ -1049,6 +1050,8 @@ config CMD_ETHSW
operations such as enabling / disabling a port and
viewing/maintaining the filtering database (FDB)
+endif
+
endmenu
menu "Misc commands"
--
1.9.1
More information about the U-Boot
mailing list