瀏覽代碼

[PATCH] Kbuild menu - hide empty NETDEVICES menu when NET is disabled

Make the whole netdevices menu depend on NET, rather than having an empty
submenu when networking is disabled.

Indeed, almost the whole body of the menu was surrounded by if NETDEVICES,
and what was outside depended on NETCONSOLE which is inside the menu.

Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Paolo 'Blaisorblade' Giarrusso 19 年之前
父節點
當前提交
6967bd81d8
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      drivers/net/Kconfig

+ 1 - 6
drivers/net/Kconfig

@@ -4,9 +4,9 @@
 #
 #
 
 
 menu "Network device support"
 menu "Network device support"
+	depends on NET
 
 
 config NETDEVICES
 config NETDEVICES
-	depends on NET
 	default y if UML
 	default y if UML
 	bool "Network device support"
 	bool "Network device support"
 	---help---
 	---help---
@@ -24,9 +24,6 @@ config NETDEVICES
 
 
 	  If unsure, say Y.
 	  If unsure, say Y.
 
 
-# All the following symbols are dependent on NETDEVICES - do not repeat
-# that for each of the symbols.
-if NETDEVICES
 
 
 config IFB
 config IFB
 	tristate "Intermediate Functional Block support"
 	tristate "Intermediate Functional Block support"
@@ -2718,8 +2715,6 @@ config NETCONSOLE
 	If you want to log kernel messages over the network, enable this.
 	If you want to log kernel messages over the network, enable this.
 	See <file:Documentation/networking/netconsole.txt> for details.
 	See <file:Documentation/networking/netconsole.txt> for details.
 
 
-endif #NETDEVICES
-
 config NETPOLL
 config NETPOLL
 	def_bool NETCONSOLE
 	def_bool NETCONSOLE