diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2006-07-14 07:15:40 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-19 13:50:39 -0400 |
commit | b6e37e55c250f5233401b2566b1a4b512a98bc7b (patch) | |
tree | bf7f0e127619ac2b39fc76aee1fcb8157372b656 /drivers | |
parent | 5f5d83fdbfb50ffb6f5fbf5fd69bc791d9d5cd20 (diff) |
[PATCH] Cleanup SLHC configuration
Convert selection of serial line header compression to use CONFIG_SLHC
rather than makefile ifeq uglyness. This makes it easier to select
the SLHC module from other code.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/isdn/i4l/Kconfig | 1 | ||||
-rw-r--r-- | drivers/net/Kconfig | 8 | ||||
-rw-r--r-- | drivers/net/Makefile | 10 |
3 files changed, 11 insertions, 8 deletions
diff --git a/drivers/isdn/i4l/Kconfig b/drivers/isdn/i4l/Kconfig index a4f7288a1fc8..3ef567b99c74 100644 --- a/drivers/isdn/i4l/Kconfig +++ b/drivers/isdn/i4l/Kconfig | |||
@@ -5,6 +5,7 @@ | |||
5 | config ISDN_PPP | 5 | config ISDN_PPP |
6 | bool "Support synchronous PPP" | 6 | bool "Support synchronous PPP" |
7 | depends on INET | 7 | depends on INET |
8 | select SLHC | ||
8 | help | 9 | help |
9 | Over digital connections such as ISDN, there is no need to | 10 | Over digital connections such as ISDN, there is no need to |
10 | synchronize sender and recipient's clocks with start and stop bits | 11 | synchronize sender and recipient's clocks with start and stop bits |
diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig index 39189903e355..7c826db84604 100644 --- a/drivers/net/Kconfig +++ b/drivers/net/Kconfig | |||
@@ -2509,6 +2509,7 @@ config PLIP | |||
2509 | 2509 | ||
2510 | config PPP | 2510 | config PPP |
2511 | tristate "PPP (point-to-point protocol) support" | 2511 | tristate "PPP (point-to-point protocol) support" |
2512 | select SLHC | ||
2512 | ---help--- | 2513 | ---help--- |
2513 | PPP (Point to Point Protocol) is a newer and better SLIP. It serves | 2514 | PPP (Point to Point Protocol) is a newer and better SLIP. It serves |
2514 | the same purpose: sending Internet traffic over telephone (and other | 2515 | the same purpose: sending Internet traffic over telephone (and other |
@@ -2689,6 +2690,7 @@ config SLIP | |||
2689 | config SLIP_COMPRESSED | 2690 | config SLIP_COMPRESSED |
2690 | bool "CSLIP compressed headers" | 2691 | bool "CSLIP compressed headers" |
2691 | depends on SLIP | 2692 | depends on SLIP |
2693 | select SLHC | ||
2692 | ---help--- | 2694 | ---help--- |
2693 | This protocol is faster than SLIP because it uses compression on the | 2695 | This protocol is faster than SLIP because it uses compression on the |
2694 | TCP/IP headers (not on the data itself), but it has to be supported | 2696 | TCP/IP headers (not on the data itself), but it has to be supported |
@@ -2701,6 +2703,12 @@ config SLIP_COMPRESSED | |||
2701 | <http://www.tldp.org/docs.html#howto>, explains how to configure | 2703 | <http://www.tldp.org/docs.html#howto>, explains how to configure |
2702 | CSLIP. This won't enlarge your kernel. | 2704 | CSLIP. This won't enlarge your kernel. |
2703 | 2705 | ||
2706 | config SLHC | ||
2707 | tristate | ||
2708 | help | ||
2709 | This option enables Van Jacobsen serial line header compression | ||
2710 | routines. | ||
2711 | |||
2704 | config SLIP_SMART | 2712 | config SLIP_SMART |
2705 | bool "Keepalive and linefill" | 2713 | bool "Keepalive and linefill" |
2706 | depends on SLIP | 2714 | depends on SLIP |
diff --git a/drivers/net/Makefile b/drivers/net/Makefile index c91e95126f78..038a8e02f643 100644 --- a/drivers/net/Makefile +++ b/drivers/net/Makefile | |||
@@ -2,10 +2,6 @@ | |||
2 | # Makefile for the Linux network (ethercard) device drivers. | 2 | # Makefile for the Linux network (ethercard) device drivers. |
3 | # | 3 | # |
4 | 4 | ||
5 | ifeq ($(CONFIG_ISDN_PPP),y) | ||
6 | obj-$(CONFIG_ISDN) += slhc.o | ||
7 | endif | ||
8 | |||
9 | obj-$(CONFIG_E1000) += e1000/ | 5 | obj-$(CONFIG_E1000) += e1000/ |
10 | obj-$(CONFIG_IBM_EMAC) += ibm_emac/ | 6 | obj-$(CONFIG_IBM_EMAC) += ibm_emac/ |
11 | obj-$(CONFIG_IXGB) += ixgb/ | 7 | obj-$(CONFIG_IXGB) += ixgb/ |
@@ -111,7 +107,7 @@ obj-$(CONFIG_NE_H8300) += ne-h8300.o 8390.o | |||
111 | 107 | ||
112 | obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o | 108 | obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o |
113 | 109 | ||
114 | obj-$(CONFIG_PPP) += ppp_generic.o slhc.o | 110 | obj-$(CONFIG_PPP) += ppp_generic.o |
115 | obj-$(CONFIG_PPP_ASYNC) += ppp_async.o | 111 | obj-$(CONFIG_PPP_ASYNC) += ppp_async.o |
116 | obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o | 112 | obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o |
117 | obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o | 113 | obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o |
@@ -120,9 +116,7 @@ obj-$(CONFIG_PPP_MPPE) += ppp_mppe.o | |||
120 | obj-$(CONFIG_PPPOE) += pppox.o pppoe.o | 116 | obj-$(CONFIG_PPPOE) += pppox.o pppoe.o |
121 | 117 | ||
122 | obj-$(CONFIG_SLIP) += slip.o | 118 | obj-$(CONFIG_SLIP) += slip.o |
123 | ifeq ($(CONFIG_SLIP_COMPRESSED),y) | 119 | obj-$(CONFIG_SLHC) += slhc.o |
124 | obj-$(CONFIG_SLIP) += slhc.o | ||
125 | endif | ||
126 | 120 | ||
127 | obj-$(CONFIG_DUMMY) += dummy.o | 121 | obj-$(CONFIG_DUMMY) += dummy.o |
128 | obj-$(CONFIG_IFB) += ifb.o | 122 | obj-$(CONFIG_IFB) += ifb.o |