diff options
author | Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> | 2006-02-03 04:45:21 -0500 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-07 02:53:12 -0500 |
commit | 6967bd81d883ed325fd58840ee02a8da60458e6b (patch) | |
tree | 56a541a014fada6a9d657243a5de940587cdd2a4 /drivers | |
parent | 99bb25793e4bb8e9b633ea001dd7312b5967385a (diff) |
[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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/Kconfig | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 6a6a08441804..47c72a63dfe1 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -4,9 +4,9 @@ | |||
4 | # | 4 | # |
5 | 5 | ||
6 | menu "Network device support" | 6 | menu "Network device support" |
7 | depends on NET | ||
7 | 8 | ||
8 | config NETDEVICES | 9 | config NETDEVICES |
9 | depends on NET | ||
10 | default y if UML | 10 | default y if UML |
11 | bool "Network device support" | 11 | bool "Network device support" |
12 | ---help--- | 12 | ---help--- |
@@ -24,9 +24,6 @@ config NETDEVICES | |||
24 | 24 | ||
25 | If unsure, say Y. | 25 | If unsure, say Y. |
26 | 26 | ||
27 | # All the following symbols are dependent on NETDEVICES - do not repeat | ||
28 | # that for each of the symbols. | ||
29 | if NETDEVICES | ||
30 | 27 | ||
31 | config IFB | 28 | config IFB |
32 | tristate "Intermediate Functional Block support" | 29 | tristate "Intermediate Functional Block support" |
@@ -2718,8 +2715,6 @@ config NETCONSOLE | |||
2718 | If you want to log kernel messages over the network, enable this. | 2715 | If you want to log kernel messages over the network, enable this. |
2719 | See <file:Documentation/networking/netconsole.txt> for details. | 2716 | See <file:Documentation/networking/netconsole.txt> for details. |
2720 | 2717 | ||
2721 | endif #NETDEVICES | ||
2722 | |||
2723 | config NETPOLL | 2718 | config NETPOLL |
2724 | def_bool NETCONSOLE | 2719 | def_bool NETCONSOLE |
2725 | 2720 | ||