]> git.sur5r.net Git - u-boot/blobdiff - cmd/Kconfig
Kconfig: cmd: Make networking command dependent on NET
[u-boot] / cmd / Kconfig
index 18aac7f7d4c3c12ba87bd7e1a3e6bbcb69fec96e..136836d146571c9be0f09c653593a7282e81a35c 100644 (file)
@@ -1012,9 +1012,10 @@ endmenu
 
 menu "Network commands"
 
+if NET
+
 config CMD_NET
        bool "bootp, tftpboot"
-        select NET
        default y
        help
          Network commands.
@@ -1038,11 +1039,13 @@ config CMD_RARP
 
 config CMD_DHCP
        bool "dhcp"
+       depends on CMD_NET
        help
          Boot image via network using DHCP/TFTP protocol
 
 config CMD_PXE
        bool "pxe"
+       depends on CMD_NET
        select MENU
        help
          Boot image via network using PXE protocol
@@ -1091,6 +1094,8 @@ config CMD_ETHSW
          operations such as enabling / disabling a port and
          viewing/maintaining the filtering database (FDB)
 
+endif
+
 endmenu
 
 menu "Misc commands"