new (last?) attempt at standardizing Makefiles
[openwrt.git] / include / modules-2.4.mk
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 include $(INCLUDE_DIR)/netfilter.mk
8
9 # Networking
10
11 $(eval $(call KMOD_template,ATM,atm,\
12 $(MODULES_DIR)/kernel/net/atm/atm.o \
13 $(MODULES_DIR)/kernel/net/atm/br2684.o \
14 ,CONFIG_ATM,,50,atm))
15
16 $(eval $(call KMOD_template,GRE,gre,\
17 $(MODULES_DIR)/kernel/net/ipv4/ip_gre.o \
18 ,CONFIG_NET_IPGRE))
19
20 $(eval $(call KMOD_template,IPIP,ipip,\
21 $(MODULES_DIR)/kernel/net/ipv4/ipip.o \
22 ,CONFIG_NET_IPIP,,60,ipip))
23
24 $(eval $(call KMOD_template,SCHED,sched,\
25 $(MODULES_DIR)/kernel/net/sched/*.o \
26 ))
27
28 $(eval $(call KMOD_template,TUN,tun,\
29 $(MODULES_DIR)/kernel/drivers/net/tun.o \
30 ,CONFIG_TUN,,20,tun))
31
32 # Block devices
33
34 $(eval $(call KMOD_template,LOOP,loop,\
35 $(MODULES_DIR)/kernel/drivers/block/loop.o \
36 ,CONFIG_BLK_DEV_LOOP,,20,loop))
37
38 $(eval $(call KMOD_template,NBD,nbd,\
39 $(MODULES_DIR)/kernel/drivers/block/nbd.o \
40 ,CONFIG_BLK_DEV_NBD,,20,nbd))
41
42
43 # Filesystems
44
45 $(eval $(call KMOD_template,FS_CIFS,fs-cifs,\
46 $(MODULES_DIR)/kernel/fs/cifs/cifs.o \
47 ,CONFIG_CIFS,,30,cifs))
48
49 $(eval $(call KMOD_template,FS_MINIX,fs-minix,\
50 $(MODULES_DIR)/kernel/fs/minix/*.o \
51 ,CONFIG_MINIX_FS,,30,minix))
52
53 $(eval $(call KMOD_template,FS_EXT2,fs-ext2,\
54 $(MODULES_DIR)/kernel/fs/ext2/*.o \
55 ,CONFIG_EXT2_FS,,30,ext2))
56
57 $(eval $(call KMOD_template,FS_EXT3,fs-ext3,\
58 $(MODULES_DIR)/kernel/fs/ext3/*.o \
59 $(MODULES_DIR)/kernel/fs/jbd/*.o \
60 ,CONFIG_EXT3_FS,,30,jbd ext3))
61
62 $(eval $(call KMOD_template,FS_HFSPLUS,fs-hfsplus,\
63 $(MODULES_DIR)/kernel/fs/hfsplus/*.o \
64 ,CONFIG_HFSPLUS_FS,,30,hfsplus))
65
66 $(eval $(call KMOD_template,FS_NFS,fs-nfs,\
67 $(MODULES_DIR)/kernel/fs/lockd/*.o \
68 $(MODULES_DIR)/kernel/fs/nfs/*.o \
69 $(MODULES_DIR)/kernel/net/sunrpc/*.o \
70 ,CONFIG_NFS_FS,,30,sunrpc lockd nfs))
71
72 $(eval $(call KMOD_template,FS_VFAT,fs-vfat,\
73 $(MODULES_DIR)/kernel/fs/vfat/vfat.o \
74 $(MODULES_DIR)/kernel/fs/fat/fat.o \
75 ,CONFIG_VFAT_FS,,30,fat vfat))
76
77 $(eval $(call KMOD_template,FS_XFS,fs-xfs,\
78 $(MODULES_DIR)/kernel/fs/xfs/*.o \
79 ,CONFIG_XFS_FS,,30,xfs))
80
81
82 # Multimedia
83
84 $(eval $(call KMOD_template,PWC,pwc,\
85 $(MODULES_DIR)/kernel/drivers/usb/pwc.o \
86 ,CONFIG_USB_PWC,kmod-videodev,63,pwc))
87
88 $(eval $(call KMOD_template,SOUNDCORE,soundcore,\
89 $(MODULES_DIR)/kernel/drivers/sound/soundcore.o \
90 ,CONFIG_SOUND,,30,soundcore))
91
92 $(eval $(call KMOD_template,VIDEODEV,videodev,\
93 $(MODULES_DIR)/kernel/drivers/media/video/videodev.o \
94 ,CONFIG_VIDEO_DEV,,62,videodev))
95
96
97 # Network devices
98
99 $(eval $(call KMOD_template,NET_3C59X,net-3c59x,\
100 $(MODULES_DIR)/kernel/drivers/net/3c59x.o \
101 ,CONFIG_VORTEX,,10,3c59x))
102
103 $(eval $(call KMOD_template,NET_8139TOO,net-8139too,\
104 $(MODULES_DIR)/kernel/drivers/net/8139too.o \
105 $(MODULES_DIR)/kernel/drivers/net/mii.o \
106 ,CONFIG_8139TOO,,10,mii 8139too))
107
108 $(eval $(call KMOD_template,NET_AIRO,net-airo,\
109 $(MODULES_DIR)/kernel/drivers/net/wireless/airo.o \
110 ,CONFIG_AIRO,,10,airo))
111
112 $(eval $(call KMOD_template,NET_E100,net-e100,\
113 $(MODULES_DIR)/kernel/drivers/net/e100.o \
114 ,CONFIG_E100,,10,e100))
115
116 $(eval $(call KMOD_template,NET_HERMES,net-hermes,\
117 $(MODULES_DIR)/kernel/drivers/net/wireless/hermes.o \
118 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco.o \
119 ,CONFIG_HERMES,,10,hermes orinoco))
120
121 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-pci,\
122 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_pci.o \
123 ,CONFIG_PCI_HERMES,kmod-net-hermes,11,orinoco_pci))
124
125 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-plx,\
126 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_plx.o \
127 ,CONFIG_PLX_HERMES,kmod-net-hermes,11,orinoco_plx))
128
129 $(eval $(call KMOD_template,NET_PRISM54,net-prism54,\
130 $(MODULES_DIR)/kernel/drivers/net/wireless/prism54/prism54.o \
131 ,CONFIG_PRISM54,,10,prism54))
132
133
134 # PCMCIA/CardBus
135
136 $(eval $(call KMOD_template,PCMCIA_CORE,pcmcia-core,\
137 $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core.o \
138 $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket.o \
139 $(MODULES_DIR)/kernel/drivers/pcmcia/ds.o \
140 ,CONFIG_PCMCIA,,50,pcmcia_core yenta_socket ds))
141
142 $(eval $(call KMOD_template,PCMCIA_SERIAL,pcmcia-serial,\
143 $(MODULES_DIR)/kernel/drivers/char/pcmcia/serial_cs.o \
144 ,CONFIG_PCMCIA_SERIAL_CS,kmod-pcmcia-core,51,serial_cs))
145
146
147 # USB
148
149 $(eval $(call KMOD_template,USB,usb-core,\
150 $(MODULES_DIR)/kernel/drivers/usb/usbcore.o \
151 ,CONFIG_USB,,50,usbcore))
152
153 $(eval $(call KMOD_template,USB_OHCI,usb-ohci,\
154 $(MODULES_DIR)/kernel/drivers/usb/host/usb-ohci.o \
155 ,CONFIG_USB_OHCI,kmod-usb-core,60,usb-ohci))
156
157 $(eval $(call KMOD_template,USB_UHCI,usb-uhci,\
158 $(MODULES_DIR)/kernel/drivers/usb/host/uhci.o \
159 ,CONFIG_USB_UHCI_ALT,kmod-usb-core,60,uhci))
160
161 $(eval $(call KMOD_template,USB2,usb2,\
162 $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd.o \
163 ,CONFIG_USB_EHCI_HCD,kmod-usb-core,60,ehci-hcd))
164
165 $(eval $(call KMOD_template,USB_ACM,usb-acm,\
166 $(MODULES_DIR)/kernel/drivers/usb/acm.o \
167 ,CONFIG_USB_ACM))
168
169 $(eval $(call KMOD_template,USB_AUDIO,usb-audio,\
170 $(MODULES_DIR)/kernel/drivers/usb/audio.o \
171 ,CONFIG_USB_AUDIO,kmod-soundcore kmod-usb-core,61,audio))
172
173 $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
174 $(MODULES_DIR)/kernel/drivers/usb/printer.o \
175 ,CONFIG_USB_PRINTER,kmod-usb-core,60,printer))
176
177 $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
178 $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial.o \
179 ,CONFIG_USB_SERIAL,kmod-usb-core,60,usbserial))
180
181 $(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
182 $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.o \
183 ,CONFIG_USB_SERIAL_BELKIN,kmod-usb-serial,61,belkin_sa))
184
185 $(eval $(call KMOD_template,USB_SERIAL_FTDI,usb-serial-ftdi,\
186 $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.o \
187 ,CONFIG_USB_SERIAL_FTDI_SIO,kmod-usb-serial,61,ftdi_sio))
188
189 $(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
190 $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.o \
191 ,CONFIG_USB_SERIAL_MCT_U232,kmod-usb-serial,61,mct_u232))
192
193 $(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
194 $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.o \
195 ,CONFIG_USB_SERIAL_PL2303,kmod-usb-serial,61,pl2303))
196
197 $(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
198 $(MODULES_DIR)/kernel/drivers/usb/serial/visor.o \
199 ,CONFIG_USB_SERIAL_VISOR,kmod-usb-serial,61,visor))
200
201 $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
202 $(MODULES_DIR)/kernel/drivers/scsi/*.o \
203 $(MODULES_DIR)/kernel/drivers/usb/storage/*.o \
204 ,CONFIG_USB_STORAGE,kmod-usb-core,60,scsi_mod sd_mod usb-storage))
205
206
207 # Misc. devices
208
209 $(eval $(call KMOD_template,AX25,ax25,\
210 $(MODULES_DIR)/kernel/net/ax25/ax25.o \
211 $(MODULES_DIR)/kernel/drivers/net/hamradio/mkiss.o \
212 ,CONFIG_AX25,,90,ax25 mkiss))
213
214 $(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
215 $(MODULES_DIR)/kernel/net/bluetooth/*.o \
216 $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/*.o \
217 $(MODULES_DIR)/kernel/drivers/bluetooth/*.o \
218 ,CONFIG_BLUEZ))
219
220 $(eval $(call KMOD_template,SOFTDOG,softdog,\
221 $(MODULES_DIR)/kernel/drivers/char/softdog.o \
222 ,CONFIG_SOFT_WATCHDOG,,95,softdog))
223
224
225
This page took 0.050291 seconds and 5 git commands to generate.