aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2006-07-14 07:15:40 -0400
committerJeff Garzik <jeff@garzik.org>2006-07-19 13:50:39 -0400
commitb6e37e55c250f5233401b2566b1a4b512a98bc7b (patch)
treebf7f0e127619ac2b39fc76aee1fcb8157372b656 /drivers
parent5f5d83fdbfb50ffb6f5fbf5fd69bc791d9d5cd20 (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/Kconfig1
-rw-r--r--drivers/net/Kconfig8
-rw-r--r--drivers/net/Makefile10
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 @@
5config ISDN_PPP 5config 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
2510config PPP 2510config 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
2689config SLIP_COMPRESSED 2690config 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
2706config SLHC
2707 tristate
2708 help
2709 This option enables Van Jacobsen serial line header compression
2710 routines.
2711
2704config SLIP_SMART 2712config 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
5ifeq ($(CONFIG_ISDN_PPP),y)
6 obj-$(CONFIG_ISDN) += slhc.o
7endif
8
9obj-$(CONFIG_E1000) += e1000/ 5obj-$(CONFIG_E1000) += e1000/
10obj-$(CONFIG_IBM_EMAC) += ibm_emac/ 6obj-$(CONFIG_IBM_EMAC) += ibm_emac/
11obj-$(CONFIG_IXGB) += ixgb/ 7obj-$(CONFIG_IXGB) += ixgb/
@@ -111,7 +107,7 @@ obj-$(CONFIG_NE_H8300) += ne-h8300.o 8390.o
111 107
112obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o 108obj-$(CONFIG_MV643XX_ETH) += mv643xx_eth.o
113 109
114obj-$(CONFIG_PPP) += ppp_generic.o slhc.o 110obj-$(CONFIG_PPP) += ppp_generic.o
115obj-$(CONFIG_PPP_ASYNC) += ppp_async.o 111obj-$(CONFIG_PPP_ASYNC) += ppp_async.o
116obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o 112obj-$(CONFIG_PPP_SYNC_TTY) += ppp_synctty.o
117obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o 113obj-$(CONFIG_PPP_DEFLATE) += ppp_deflate.o
@@ -120,9 +116,7 @@ obj-$(CONFIG_PPP_MPPE) += ppp_mppe.o
120obj-$(CONFIG_PPPOE) += pppox.o pppoe.o 116obj-$(CONFIG_PPPOE) += pppox.o pppoe.o
121 117
122obj-$(CONFIG_SLIP) += slip.o 118obj-$(CONFIG_SLIP) += slip.o
123ifeq ($(CONFIG_SLIP_COMPRESSED),y) 119obj-$(CONFIG_SLHC) += slhc.o
124 obj-$(CONFIG_SLIP) += slhc.o
125endif
126 120
127obj-$(CONFIG_DUMMY) += dummy.o 121obj-$(CONFIG_DUMMY) += dummy.o
128obj-$(CONFIG_IFB) += ifb.o 122obj-$(CONFIG_IFB) += ifb.o