]> git.ozlabs.org Git - ppp.git/blob - linux/mppe/linux-2.2.20-make.patch
b0a936ee05a1698110a74321595995c216c5e9d3
[ppp.git] / linux / mppe / linux-2.2.20-make.patch
1 --- linux/drivers/net/Makefile.orig     Fri Nov  2 08:39:07 2001
2 +++ linux/drivers/net/Makefile  Tue Mar 19 09:31:06 2002
3 @@ -325,11 +325,13 @@
4  CONFIG_BSDCOMP_BUILTIN = y
5  CONFIG_SLHC_BUILTIN = y
6  CONFIG_PPPDEF_BUILTIN = y
7 +CONFIG_PPPMPPE_BUILTIN = y
8  else
9    ifeq ($(CONFIG_PPP),m)
10    CONFIG_BSDCOMP_MODULE = y
11    CONFIG_SLHC_MODULE = y
12    CONFIG_PPPDEF_MODULE = y
13 +  CONFIG_PPPMPPE_MODULE = y
14    MX_OBJS += ppp.o
15    endif
16  endif
17 @@ -1100,6 +1102,17 @@
18    endif
19  endif
20  
21 +# If anything built-in uses ppp_mppe, then build it into the kernel also.
22 +# If not, but a module uses it, build as a module.
23 +ifdef CONFIG_PPPMPPE_BUILTIN
24 +L_OBJS += ppp_mppe_compress.o arcfour.o sha1.o
25 +else
26 +  ifdef CONFIG_PPPMPPE_MODULE
27 +  PPPMPPE_OBJS = ppp_mppe_compress.o arcfour.o sha1.o
28 +  M_OBJS += ppp_mppe.o
29 +  endif
30 +endif
31 +
32  ifeq ($(CONFIG_ARIADNE2),y)
33  L_OBJS += ariadne2.o
34  CONFIG_8390_BUILTIN = y
35 @@ -1449,3 +1462,8 @@
36  
37  rcpci.o: rcpci45.o rclanmtl.o
38         $(LD) -r -o rcpci.o rcpci45.o rclanmtl.o
39 +
40 +ifdef CONFIG_PPPMPPE_MODULE
41 +ppp_mppe.o: $(PPPMPPE_OBJS)
42 +       $(LD) -r -o $@ $(PPPMPPE_OBJS)
43 +endif