1 # File: drivers/net/Makefile
3 # Makefile for the Linux network (ethercard) device drivers.
7 MOD_SUB_DIRS
:= $(SUB_DIRS
)
8 ALL_SUB_DIRS
:= $(SUB_DIRS
) fc hamradio irda pcmcia tokenring wan
13 MOD_LIST_NAME
:= NET_MODULES
15 # Need these to keep track of whether the 7990 (LANCE), 8390, PPP and SLHC
16 # modules should really go in the kernel or a module.
17 CONFIG_8390_BUILTIN
:=
19 CONFIG_SLHC_BUILTIN
:=
21 CONFIG_PPPDEF_BUILTIN
:=
22 CONFIG_PPPDEF_MODULE
:=
23 CONFIG_7990_BUILTIN
:=
25 CONFIG_82596_BUILTIN
:=
26 CONFIG_82596_MODULE
:=
28 ifeq ($(CONFIG_PCMCIA
),y
)
30 MOD_SUB_DIRS
+= pcmcia
32 ifeq ($(CONFIG_PCMCIA
),m
)
33 MOD_SUB_DIRS
+= pcmcia
37 ifeq ($(CONFIG_ISDN
),y
)
38 ifeq ($(CONFIG_ISDN_PPP
),y
)
39 CONFIG_SLHC_BUILTIN
= y
40 CONFIG_PPPDEF_BUILTIN
= y
43 ifeq ($(CONFIG_ISDN
),m
)
44 ifeq ($(CONFIG_ISDN_PPP
),y
)
45 CONFIG_SLHC_MODULE
= y
46 CONFIG_PPPDEF_MODULE
= y
51 ifeq ($(CONFIG_NET
),y
)
52 L_OBJS
+= Space.o net_init.o loopback.o
55 ifeq ($(CONFIG_SEEQ8005
),y
)
59 ifeq ($(CONFIG_ETHERTAP
),y
)
62 ifeq ($(CONFIG_ETHERTAP
),m
)
67 ifeq ($(CONFIG_NET_SB1000
),y
)
70 ifeq ($(CONFIG_NET_SB1000
),m
)
75 ifeq ($(CONFIG_DAYNAPORT
), y
)
77 CONFIG_8390_BUILTIN
= y
80 ifeq ($(CONFIG_APNE
),y
)
82 CONFIG_8390_BUILTIN
= y
84 ifeq ($(CONFIG_APNE
),m
)
86 CONFIG_8390_MODULE
= y
90 ifeq ($(CONFIG_PCMCIA_PCNET
),y
)
91 CONFIG_8390_BUILTIN
= y
93 ifeq ($(CONFIG_PCMCIA_PCNET
),m
)
94 CONFIG_8390_MODULE
= y
98 ifeq ($(CONFIG_SHAPER
),y
)
101 ifeq ($(CONFIG_SHAPER
),m
)
106 ifeq ($(CONFIG_SK_G16
),y
)
110 ifeq ($(CONFIG_HP100
),y
)
113 ifeq ($(CONFIG_HP100
),m
)
118 ifeq ($(CONFIG_SMC9194
),y
)
121 ifeq ($(CONFIG_SMC9194
),m
)
126 ifeq ($(CONFIG_ARM_AM79C961A
),y
)
127 L_OBJS
+= am79c961a.o
129 ifeq ($(CONFIG_ARM_AM79C961A
),m
)
130 M_OBJS
+= am79c961a.o
134 ifeq ($(CONFIG_ARM_ETHERH
),y
)
135 CONFIG_8390_BUILTIN
= y
137 ifeq ($(CONFIG_ARM_ETHERH
),m
)
138 CONFIG_8390_MODULE
= y
142 ifeq ($(CONFIG_WD80x3
),y
)
144 CONFIG_8390_BUILTIN
= y
146 ifeq ($(CONFIG_WD80x3
),m
)
147 CONFIG_8390_MODULE
= y
152 ifeq ($(CONFIG_EL2
),y
)
154 CONFIG_8390_BUILTIN
= y
156 ifeq ($(CONFIG_EL2
),m
)
157 CONFIG_8390_MODULE
= y
162 ifeq ($(CONFIG_NE2K_PCI
),y
)
164 CONFIG_8390_BUILTIN
= y
166 ifeq ($(CONFIG_NE2K_PCI
),m
)
167 CONFIG_8390_MODULE
= y
172 ifeq ($(CONFIG_NE2000
),y
)
174 CONFIG_8390_BUILTIN
= y
176 ifeq ($(CONFIG_NE2000
),m
)
177 CONFIG_8390_MODULE
= y
182 ifeq ($(CONFIG_NE2_MCA
),y
)
184 CONFIG_8390_BUILTIN
= y
186 ifeq ($(CONFIG_NE2_MCA
),m
)
187 CONFIG_8390_MODULE
= y
192 ifeq ($(CONFIG_HPLAN
),y
)
194 CONFIG_8390_BUILTIN
= y
196 ifeq ($(CONFIG_HPLAN
),m
)
197 CONFIG_8390_MODULE
= y
202 ifeq ($(CONFIG_HPLAN_PLUS
),y
)
204 CONFIG_8390_BUILTIN
= y
206 ifeq ($(CONFIG_HPLAN_PLUS
),m
)
207 CONFIG_8390_MODULE
= y
212 ifeq ($(CONFIG_ULTRA
),y
)
213 L_OBJS
+= smc-ultra.o
214 CONFIG_8390_BUILTIN
= y
216 ifeq ($(CONFIG_ULTRA
),m
)
217 CONFIG_8390_MODULE
= y
218 M_OBJS
+= smc-ultra.o
222 ifeq ($(CONFIG_ULTRAMCA
),y
)
224 CONFIG_8390_BUILTIN
= y
226 ifeq ($(CONFIG_ULTRAMCA
),m
)
227 CONFIG_8390_MODULE
= y
232 ifeq ($(CONFIG_ULTRA32
),y
)
233 L_OBJS
+= smc-ultra32.o
234 CONFIG_8390_BUILTIN
= y
236 ifeq ($(CONFIG_ULTRA32
),m
)
237 CONFIG_8390_MODULE
= y
238 M_OBJS
+= smc-ultra32.o
242 ifeq ($(CONFIG_E2100
),y
)
244 CONFIG_8390_BUILTIN
= y
246 ifeq ($(CONFIG_E2100
),m
)
247 CONFIG_8390_MODULE
= y
252 ifeq ($(CONFIG_ES3210
),y
)
254 CONFIG_8390_BUILTIN
= y
256 ifeq ($(CONFIG_ES3210
),m
)
257 CONFIG_8390_MODULE
= y
262 ifeq ($(CONFIG_LNE390
),y
)
264 CONFIG_8390_BUILTIN
= y
266 ifeq ($(CONFIG_LNE390
),m
)
267 CONFIG_8390_MODULE
= y
272 ifeq ($(CONFIG_NE3210
),y
)
274 CONFIG_8390_BUILTIN
= y
276 ifeq ($(CONFIG_NE3210
),m
)
277 CONFIG_8390_MODULE
= y
282 ifeq ($(CONFIG_PLIP
),y
)
285 ifeq ($(CONFIG_PLIP
),m
)
290 # bsd_comp.o is *always* a module, for some documented reason
292 ifeq ($(CONFIG_PPP
),y
)
293 LX_OBJS
+= ppp_generic.o
294 CONFIG_SLHC_BUILTIN
= y
295 ifeq ($(CONFIG_PPP_ASYNC
),y
)
296 LX_OBJS
+= ppp_async.o
298 ifeq ($(CONFIG_PPP_ASYNC
),m
)
299 MX_OBJS
+= ppp_async.o
302 ifeq ($(CONFIG_PPP_DEFLATE
),y
)
303 CONFIG_PPPDEF_BUILTIN
= y
305 ifeq ($(CONFIG_PPP_DEFLATE
),m
)
306 CONFIG_PPPDEF_MODULE
= y
309 ifeq ($(CONFIG_PPP_BSDCOMP
),m
)
313 ifeq ($(CONFIG_PPP
),m
)
314 MX_OBJS
+= ppp_generic.o
315 CONFIG_SLHC_MODULE
= y
316 ifeq ($(CONFIG_PPP_ASYNC
),m
)
317 MX_OBJS
+= ppp_async.o
319 ifeq ($(CONFIG_PPP_DEFLATE
),m
)
320 CONFIG_PPPDEF_MODULE
= y
322 ifeq ($(CONFIG_PPP_BSDCOMP
),m
)
328 ifeq ($(CONFIG_SLIP
),y
)
330 ifeq ($(CONFIG_SLIP_COMPRESSED
),y
)
331 CONFIG_SLHC_BUILTIN
= y
334 ifeq ($(CONFIG_SLIP
),m
)
335 ifeq ($(CONFIG_SLIP_COMPRESSED
),y
)
336 CONFIG_SLHC_MODULE
= y
342 ifeq ($(CONFIG_STRIP
),y
)
345 ifeq ($(CONFIG_STRIP
),m
)
350 ifeq ($(CONFIG_DE650
),y
)
351 ETDRV_OBJS
:= $(L_OBJS
) de650.o
352 CONFIG_8390_BUILTIN
= y
355 ifeq ($(CONFIG_3C589
),y
)
359 ifeq ($(CONFIG_DUMMY
),y
)
362 ifeq ($(CONFIG_DUMMY
),m
)
367 ifeq ($(CONFIG_DE600
),y
)
370 ifeq ($(CONFIG_DE600
),m
)
375 ifeq ($(CONFIG_DE620
),y
)
378 ifeq ($(CONFIG_DE620
),m
)
383 ifeq ($(CONFIG_AT1500
),y
)
387 ifeq ($(CONFIG_LANCE
),y
)
390 ifeq ($(CONFIG_LANCE
),m
)
395 ifeq ($(CONFIG_SUN3LANCE
),y
)
396 L_OBJS
+= sun3lance.o
399 ifeq ($(CONFIG_PCNET32
),y
)
402 ifeq ($(CONFIG_PCNET32
),m
)
407 ifeq ($(CONFIG_DEFXX
),y
)
411 ifeq ($(CONFIG_SUNLANCE
),y
)
414 ifeq ($(CONFIG_SUNLANCE
),m
)
419 ifeq ($(CONFIG_SGISEEQ
), y
)
423 ifeq ($(CONFIG_HAPPYMEAL
),y
)
426 ifeq ($(CONFIG_HAPPYMEAL
),m
)
431 ifeq ($(CONFIG_SUNQE
),y
)
434 ifeq ($(CONFIG_SUNQE
),m
)
439 ifeq ($(CONFIG_SUNBMAC
),y
)
442 ifeq ($(CONFIG_SUNBMAC
),m
)
447 ifeq ($(CONFIG_SUNBMAC
),y
)
450 ifeq ($(CONFIG_SUNBMAC
),m
)
455 ifeq ($(CONFIG_MYRI_SBUS
),y
)
456 L_OBJS
+= myri_sbus.o
458 ifeq ($(CONFIG_MYRI_SBUS
),m
)
459 M_OBJS
+= myri_sbus.o
463 ifeq ($(CONFIG_AT1700
),y
)
466 ifeq ($(CONFIG_AT1700
),m
)
471 ifeq ($(CONFIG_FMV18X
),y
)
474 ifeq ($(CONFIG_FMV18X
),m
)
479 ifeq ($(CONFIG_EL1
),y
)
482 ifeq ($(CONFIG_EL1
),m
)
487 ifeq ($(CONFIG_EL16
),y
)
490 ifeq ($(CONFIG_EL16
),m
)
495 ifeq ($(CONFIG_ELMC
),y
)
498 ifeq ($(CONFIG_ELMC
),m
)
503 ifeq ($(CONFIG_SKMC
),y
)
506 ifeq ($(CONFIG_SKMC
),m
)
511 ifeq ($(CONFIG_ELMC_II
),y
)
514 ifeq ($(CONFIG_ELMC_II
),m
)
519 ifeq ($(CONFIG_EL3
),y
)
522 ifeq ($(CONFIG_EL3
),m
)
527 ifeq ($(CONFIG_3C515
),y
)
530 ifeq ($(CONFIG_3C515
),m
)
535 ifeq ($(CONFIG_VORTEX
),y
)
538 ifeq ($(CONFIG_VORTEX
),m
)
543 ifeq ($(CONFIG_EEXPRESS
),y
)
546 ifeq ($(CONFIG_EEXPRESS
),m
)
551 ifeq ($(CONFIG_EEXPRESS_PRO
),y
)
554 ifeq ($(CONFIG_EEXPRESS_PRO
),m
)
559 ifeq ($(CONFIG_EEXPRESS_PRO100
),y
)
562 ifeq ($(CONFIG_EEXPRESS_PRO100
),m
)
567 ifeq ($(CONFIG_RTL8139
),y
)
570 ifeq ($(CONFIG_RTL8139
),m
)
575 ifeq ($(CONFIG_SIS900
),y
)
578 ifeq ($(CONFIG_SIS900
),m
)
583 ifeq ($(CONFIG_DM9102
),y
)
586 ifeq ($(CONFIG_DM9102
),m
)
592 ifeq ($(CONFIG_YELLOWFIN
),y
)
593 L_OBJS
+= yellowfin.o
595 ifeq ($(CONFIG_YELLOWFIN
),m
)
596 M_OBJS
+= yellowfin.o
600 ifeq ($(CONFIG_ACENIC
),y
)
603 ifeq ($(CONFIG_ACENIC
),m
)
608 ifeq ($(CONFIG_WAVELAN
),y
)
611 ifeq ($(CONFIG_WAVELAN
),m
)
616 ifeq ($(CONFIG_ARLAN
),y
)
617 LX_OBJS
+= arlan.o arlan-proc.o
619 ifeq ($(CONFIG_ARLAN
),m
)
620 MX_OBJS
+= arlan.o arlan-proc.o
624 ifeq ($(CONFIG_TLAN
),y
)
627 ifeq ($(CONFIG_TLAN
),m
)
632 ifeq ($(CONFIG_VIA_RHINE
),y
)
633 L_OBJS
+= via-rhine.o
635 ifeq ($(CONFIG_VIA_RHINE
),m
)
636 M_OBJS
+= via-rhine.o
640 ifeq ($(CONFIG_ZNET
),y
)
644 ifeq ($(CONFIG_DEPCA
),y
)
647 ifeq ($(CONFIG_DEPCA
),m
)
652 ifeq ($(CONFIG_EWRK3
),y
)
655 ifeq ($(CONFIG_EWRK3
),m
)
660 ifeq ($(CONFIG_ATP
),y
)
664 ifeq ($(CONFIG_DE4X5
),y
)
667 ifeq ($(CONFIG_DE4X5
),m
)
672 ifeq ($(CONFIG_NI5010
),y
)
675 ifeq ($(CONFIG_NI5010
),m
)
680 ifeq ($(CONFIG_NI52
),y
)
683 ifeq ($(CONFIG_NI52
),m
)
688 ifeq ($(CONFIG_NI65
),y
)
691 ifeq ($(CONFIG_NI65
),m
)
696 ifeq ($(CONFIG_ELPLUS
),y
)
699 ifeq ($(CONFIG_ELPLUS
),m
)
704 ifeq ($(CONFIG_AC3200
),y
)
706 CONFIG_8390_BUILTIN
= y
708 ifeq ($(CONFIG_AC3200
),m
)
709 CONFIG_8390_MODULE
= y
714 ifeq ($(CONFIG_APRICOT
),y
)
715 CONFIG_82596_BUILTIN
= y
717 ifeq ($(CONFIG_APRICOT
),m
)
718 CONFIG_82596_MODULE
= y
722 ifeq ($(CONFIG_MVME16x_NET
),y
)
723 CONFIG_82596_BUILTIN
= y
725 ifeq ($(CONFIG_MVME16x_NET
),m
)
726 CONFIG_82596_MODULE
= y
730 ifeq ($(CONFIG_BVME6000_NET
),y
)
731 CONFIG_82596_BUILTIN
= y
733 ifeq ($(CONFIG_BVME6000_NET
),m
)
734 CONFIG_82596_MODULE
= y
738 ifeq ($(CONFIG_DEC_ELCP
),y
)
741 ifeq ($(CONFIG_DEC_ELCP
),m
)
746 ifeq ($(CONFIG_ARCNET
),y
)
749 ifeq ($(CONFIG_ARCNET
),m
)
754 ifeq ($(CONFIG_ARCNET_COM90xx
),y
)
757 ifeq ($(CONFIG_ARCNET_COM90xx
),m
)
762 ifeq ($(CONFIG_ARCNET_COM90xxIO
),y
)
765 ifeq ($(CONFIG_ARCNET_COM90xxIO
),m
)
770 ifeq ($(CONFIG_ARCNET_RIM_I
),y
)
773 ifeq ($(CONFIG_ARCNET_RIM_I
),m
)
778 ifeq ($(CONFIG_ARCNET_COM20020
),y
)
781 ifeq ($(CONFIG_ARCNET_COM20020
),m
)
786 ifeq ($(CONFIG_ETH16I
),y
)
789 ifeq ($(CONFIG_ETH16I
),m
)
794 ifeq ($(CONFIG_EPIC100
),y
)
797 ifeq ($(CONFIG_EPIC100
),m
)
802 # If anything built-in uses slhc, then build it into the kernel also.
803 # If not, but a module uses it, build as a module.
804 ifdef CONFIG_SLHC_BUILTIN
807 ifdef CONFIG_SLHC_MODULE
812 # if anything built-in uses ppp_deflate, then build it into the kernel also.
813 # If not, but a module uses it, build as a module.
814 ifdef CONFIG_PPPDEF_BUILTIN
815 L_OBJS
+= ppp_deflate.o
817 ifdef CONFIG_PPPDEF_MODULE
818 M_OBJS
+= ppp_deflate.o
822 ifeq ($(CONFIG_ARIADNE2
),y
)
824 CONFIG_8390_BUILTIN
= y
826 ifeq ($(CONFIG_ARIADNE2
),m
)
828 CONFIG_8390_MODULE
= y
832 ifeq ($(CONFIG_PCMCIA_PCNET
),y
)
833 CONFIG_8390_BUILTIN
= y
835 ifeq ($(CONFIG_PCMCIA_PCNET
),m
)
836 CONFIG_8390_MODULE
= y
840 # If anything built-in uses the 8390, then build it into the kernel also.
841 # If not, but a module uses it, build as a module.
842 ifdef CONFIG_8390_BUILTIN
845 ifdef CONFIG_8390_MODULE
850 ifeq ($(CONFIG_HPLANCE
),y
)
852 CONFIG_7990_BUILTIN
= y
854 ifeq ($(CONFIG_HPLANCE
),m
)
855 CONFIG_7990_MODULE
= y
860 ifeq ($(CONFIG_MVME147_NET
),y
)
862 CONFIG_7990_BUILTIN
= y
864 ifeq ($(CONFIG_MVME147_NET
),m
)
865 CONFIG_7990_MODULE
= y
870 # If we need generic LANCE support, either in the kernel or as a module,
871 # build it in the appropriate way.
872 ifdef CONFIG_7990_BUILTIN
875 ifdef CONFIG_7990_MODULE
880 # If anything built-in uses the 82596, then build it into the kernel also.
881 # If not, but a module uses it, build as a module.
882 ifdef CONFIG_82596_BUILTIN
885 ifdef CONFIG_82596_MODULE
890 ifeq ($(CONFIG_EQUALIZER
),y
)
893 ifeq ($(CONFIG_EQUALIZER
),m
)
898 ifeq ($(CONFIG_MIPS_JAZZ_SONIC
),y
)
899 L_OBJS
+= jazzsonic.o
901 ifeq ($(CONFIG_MIPS_JAZZ_SONIC
),m
)
902 M_OBJS
+= jazzsonic.o
906 ifeq ($(CONFIG_BAGETLANCE
),y
)
907 L_OBJS
+= bagetlance.o
909 ifeq ($(CONFIG_BAGETLANCE
),m
)
910 M_OBJS
+= bagetlance.o
914 ifeq ($(CONFIG_DECLANCE
),y
)
917 ifeq ($(CONFIG_DECLANCE
),m
)
922 ifeq ($(CONFIG_ATARILANCE
),y
)
923 L_OBJS
+= atarilance.o
925 ifeq ($(CONFIG_ATARILANCE
),m
)
926 M_OBJS
+= atarilance.o
930 ifeq ($(CONFIG_ATARI_BIONET
),y
)
931 L_OBJS
+= atari_bionet.o
933 ifeq ($(CONFIG_ATARI_BIONET
),m
)
934 M_OBJS
+= atari_bionet.o
938 ifeq ($(CONFIG_ATARI_PAMSNET
),y
)
939 L_OBJS
+= atari_pamsnet.o
941 ifeq ($(CONFIG_ATARI_PAMSNET
),m
)
942 M_OBJS
+= atari_pamsnet.o
946 ifeq ($(CONFIG_A2065
),y
)
949 ifeq ($(CONFIG_A2065
),m
)
954 ifeq ($(CONFIG_HYDRA
),y
)
957 ifeq ($(CONFIG_HYDRA
),m
)
962 ifeq ($(CONFIG_ARIADNE
),y
)
965 ifeq ($(CONFIG_ARIADNE
),m
)
970 ifeq ($(CONFIG_DGRS
),y
)
973 ifeq ($(CONFIG_DGRS
),m
)
978 ifeq ($(CONFIG_CS89x0
),y
)
981 ifeq ($(CONFIG_CS89x0
),m
)
986 ifeq ($(CONFIG_LTPC
),y
)
989 ifeq ($(CONFIG_LTPC
),m
)
994 ifeq ($(CONFIG_COPS
),y
)
997 ifeq ($(CONFIG_COPS
),m
)
1002 ifeq ($(CONFIG_IPDDP
),y
)
1005 ifeq ($(CONFIG_IPDDP
),m
)
1010 ifeq ($(CONFIG_RCPCI
),y
)
1013 ifeq ($(CONFIG_RCPCI
),m
)
1018 ifeq ($(CONFIG_MACE
),y
)
1021 ifeq ($(CONFIG_MACE
),m
)
1026 ifeq ($(CONFIG_MACSONIC
),y
)
1027 L_OBJS
+= macsonic.o
1030 ifeq ($(CONFIG_BMAC
),y
)
1033 ifeq ($(CONFIG_BMAC
),m
)
1042 ifeq ($(CONFIG_ROADRUNNER
),y
)
1045 ifeq ($(CONFIG_ROADRUNNER
),m
)
1050 ifeq ($(CONFIG_IRDA
),y
)
1052 MOD_IN_SUB_DIRS
+= irda
1054 ifeq ($(CONFIG_IRDA
),m
)
1055 MOD_IN_SUB_DIRS
+= irda
1059 ifeq ($(CONFIG_TR
),y
)
1060 SUB_DIRS
+= tokenring
1061 MOD_IN_SUB_DIRS
+= tokenring
1063 ifeq ($(CONFIG_TR
),m
)
1064 MOD_IN_SUB_DIRS
+= tokenring
1068 ifeq ($(CONFIG_WAN
),y
)
1070 MOD_IN_SUB_DIRS
+= wan
1072 ifeq ($(CONFIG_WAN
),m
)
1073 MOD_IN_SUB_DIRS
+= wan
1077 ifeq ($(CONFIG_NET_FC
),y
)
1079 MOD_IN_SUB_DIRS
+= fc
1081 ifeq ($(CONFIG_NET_FC
),m
)
1082 MOD_IN_SUB_DIRS
+= fc
1086 include $(TOPDIR
)/Rules.make
1089 rm -f core
*.o
*.a
*.s
1091 rcpci.o
: rcpci45.o rclanmtl.o
1092 $(LD
) -r
-o rcpci.o rcpci45.o rclanmtl.o