new (last?) attempt at standardizing Makefiles
[openwrt.git] / include / modules-2.6.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 NF_2_6:=1
8 include $(INCLUDE_DIR)/netfilter.mk
9
10 # Networking
11
12 $(eval $(call KMOD_template,ATM,atm,\
13 $(MODULES_DIR)/kernel/net/atm/atm.ko \
14 $(MODULES_DIR)/kernel/net/atm/br2684.ko \
15 $(MODULES_DIR)/kernel/drivers/atm/atmtcp.ko \
16 ,CONFIG_ATM,,50,atm))
17
18 $(eval $(call KMOD_template,IPIP,ipip,\
19 $(MODULES_DIR)/kernel/net/ipv4/ipip.ko \
20 ,CONFIG_NET_IPIP,,60,ipip))
21
22 $(eval $(call KMOD_template,SCHED,sched,\
23 $(MODULES_DIR)/kernel/net/sched/*.ko \
24 ,CONFIG_NET_SCHED))
25
26 # Block devices
27
28 $(eval $(call KMOD_template,LOOP,loop,\
29 $(MODULES_DIR)/kernel/drivers/block/loop.ko \
30 ,CONFIG_BLK_DEV_LOOP,,20,loop))
31
32 $(eval $(call KMOD_template,NBD,nbd,\
33 $(MODULES_DIR)/kernel/drivers/block/nbd.ko \
34 ,CONFIG_BLK_DEV_NBD,,20,nbd))
35
36 # Filesystems
37
38 $(eval $(call KMOD_template,FS_CIFS,fs-cifs,\
39 $(MODULES_DIR)/kernel/fs/cifs/cifs.ko \
40 ,CONFIG_CIFS,kmod-nls-base,30,cifs))
41
42 $(eval $(call KMOD_template,FS_MINIX,fs-minix,\
43 $(MODULES_DIR)/kernel/fs/minix/minix.ko \
44 ,CONFIG_MINIX_FS,,30,minix))
45
46 $(eval $(call KMOD_template,FS_EXT2,fs-ext2,\
47 $(MODULES_DIR)/kernel/fs/ext2/ext2.ko \
48 ,CONFIG_EXT2_FS,,30,ext2))
49
50 $(eval $(call KMOD_template,FS_EXT3,fs-ext3,\
51 $(MODULES_DIR)/kernel/fs/ext3/ext3.ko \
52 $(MODULES_DIR)/kernel/fs/jbd/jbd.ko \
53 ,CONFIG_EXT3_FS,,30,jbd ext3))
54
55 $(eval $(call KMOD_template,FS_HFSPLUS,fs-hfsplus,\
56 $(MODULES_DIR)/kernel/fs/hfsplus/hfsplus.ko \
57 ,CONFIG_HFSPLUS_FS,kmod-nls-base,30,hfsplus))
58
59 $(eval $(call KMOD_template,FS_NFS,fs-nfs,\
60 $(MODULES_DIR)/kernel/fs/lockd/lockd.ko \
61 $(MODULES_DIR)/kernel/fs/nfs/nfs.ko \
62 $(MODULES_DIR)/kernel/net/sunrpc/sunrpc.ko \
63 ,CONFIG_NFS_FS,,30,sunrpc lockd nfs))
64
65 $(eval $(call KMOD_template,FS_VFAT,fs-vfat,\
66 $(MODULES_DIR)/kernel/fs/fat/fat.ko \
67 $(MODULES_DIR)/kernel/fs/vfat/vfat.ko \
68 ,CONFIG_VFAT_FS,kmod-nls-base,30,fat vfat))
69
70 $(eval $(call KMOD_template,FS_XFS,fs-xfs,\
71 $(MODULES_DIR)/kernel/fs/xfs/xfs.ko \
72 ,CONFIG_XFS_FS,,30,xfs))
73
74
75 # Multimedia
76
77 $(eval $(call KMOD_template,PWC,pwc,\
78 $(MODULES_DIR)/kernel/drivers/usb/media/pwc/pwc.ko \
79 ,CONFIG_USB_PWC,kmod-videodev,63,pwc))
80
81 $(eval $(call KMOD_template,SOUNDCORE,soundcore,\
82 $(MODULES_DIR)/kernel/sound/soundcore.ko \
83 ,CONFIG_SOUND,,30,soundcore))
84
85 $(eval $(call KMOD_template,VIDEODEV,videodev,\
86 $(MODULES_DIR)/kernel/drivers/media/video/v4l1-compat.ko \
87 $(MODULES_DIR)/kernel/drivers/media/video/v4l2-common.ko \
88 $(MODULES_DIR)/kernel/drivers/media/video/videodev.ko \
89 ,CONFIG_VIDEO_DEV,,62,videodev))
90
91
92 # NLS
93
94 $(eval $(call KMOD_template,NLS_BASE,nls-base,\
95 $(MODULES_DIR)/kernel/fs/nls/nls_base.ko \
96 ,CONFIG_NLS,,20,nls_base))
97
98 $(eval $(call KMOD_template,NLS_CP437,nls-cp437,\
99 $(MODULES_DIR)/kernel/fs/nls/nls_cp437.ko \
100 ,CONFIG_NLS_CODEPAGE_437,,20,nls_cp437))
101
102 $(eval $(call KMOD_template,NLS_CP850,nls-cp850,\
103 $(MODULES_DIR)/kernel/fs/nls/nls_cp850.ko \
104 ,CONFIG_NLS_CODEPAGE_850,,20,nls_cp850))
105
106 $(eval $(call KMOD_template,NLS_ISO8859_1,nls-iso8859-1,\
107 $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-1.ko \
108 ,CONFIG_NLS_ISO8859_1,,20,nls_iso8859-1))
109
110 $(eval $(call KMOD_template,NLS_ISO8859_15,nls-iso8859-15,\
111 $(MODULES_DIR)/kernel/fs/nls/nls_iso8859-15.ko \
112 ,CONFIG_NLS_ISO8859_15,,20,nls_iso8859-15))
113
114 $(eval $(call KMOD_template,NLS_UTF8,nls-utf8,\
115 $(MODULES_DIR)/kernel/fs/nls/nls_utf8.ko \
116 ,CONFIG_NLS_UTF8,,20,nls_utf8))
117
118
119 # Network devices
120
121 $(eval $(call KMOD_template,NET_3C59X,net-3c59x,\
122 $(MODULES_DIR)/kernel/drivers/net/3c59x.ko \
123 ,CONFIG_VORTEX,,10,3c59x))
124
125 $(eval $(call KMOD_template,NET_AIRO,net-airo,\
126 $(MODULES_DIR)/kernel/drivers/net/wireless/airo.ko \
127 ,CONFIG_AIRO,,10,airo))
128
129 $(eval $(call KMOD_template,NET_E100,net-e100,\
130 $(MODULES_DIR)/kernel/drivers/net/e100.ko \
131 ,CONFIG_E100,,10,e100))
132
133 $(eval $(call KMOD_template,NET_HERMES,net-hermes,\
134 $(MODULES_DIR)/kernel/drivers/net/wireless/hermes.ko \
135 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco.ko \
136 ,CONFIG_HERMES,,10,hermes orinoco))
137
138 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-pci,\
139 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_pci.ko \
140 ,CONFIG_PCI_HERMES,kmod-net-hermes,11,orinoco_pci))
141
142 $(eval $(call KMOD_template,NET_HERMES_PCI,net-hermes-plx,\
143 $(MODULES_DIR)/kernel/drivers/net/wireless/orinoco_plx.ko \
144 ,CONFIG_PLX_HERMES,kmod-net-hermes,11,orinoco_plx))
145
146 $(eval $(call KMOD_template,NET_PRISM54,net-prism54,\
147 $(MODULES_DIR)/kernel/drivers/net/wireless/prism54/prism54.ko \
148 ,CONFIG_PRISM54,,10,prism54))
149
150
151 # PCMCIA/CardBus
152
153 $(eval $(call KMOD_template,PCMCIA_CORE,pcmcia-core,\
154 $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia.ko \
155 $(MODULES_DIR)/kernel/drivers/pcmcia/pcmcia_core.ko \
156 $(MODULES_DIR)/kernel/drivers/pcmcia/yenta_socket.ko \
157 $(MODULES_DIR)/kernel/drivers/pcmcia/rsrc_nonstatic.ko \
158 ,CONFIG_PCMCIA,,50,pcmcia_core pcmcia yenta_socket rsrc_nonstatic))
159
160 $(eval $(call KMOD_template,PCMCIA_SERIAL,pcmcia-serial,\
161 $(MODULES_DIR)/kernel/drivers/serial/serial_cs.ko \
162 ,CONFIG_SERIAL_8250_CS))
163
164
165 # USB
166
167 $(eval $(call KMOD_template,USB,usb-core,\
168 $(MODULES_DIR)/kernel/drivers/usb/core/usbcore.ko \
169 ,CONFIG_USB,,50,usbcore))
170
171 $(eval $(call KMOD_template,USB_OHCI,usb-ohci,\
172 $(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd.ko \
173 ,CONFIG_USB_OHCI_HCD,kmod-usb-core,60,ohci-hcd))
174
175 $(eval $(call KMOD_template,USB_UHCI,usb-uhci,\
176 $(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd.ko \
177 ,CONFIG_USB_UHCI_HCD,kmod-usb-core,60,uhci-hcd))
178
179 $(eval $(call KMOD_template,USB2,usb2,\
180 $(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd.ko \
181 ,CONFIG_USB_EHCI_HCD,kmod-usb-core,60,ehci-hcd))
182
183 $(eval $(call KMOD_template,USB_ACM,usb-acm,\
184 $(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm.ko \
185 ,CONFIG_USB_ACM))
186
187 $(eval $(call KMOD_template,USB_AUDIO,usb-audio,\
188 $(MODULES_DIR)/kernel/drivers/usb/class/audio.ko \
189 ,CONFIG_USB_AUDIO,kmod-soundcore kmod-usb-core,61,audio))
190
191 $(eval $(call KMOD_template,USB_PRINTER,usb-printer,\
192 $(MODULES_DIR)/kernel/drivers/usb/class/usblp.ko \
193 ,CONFIG_USB_PRINTER,kmod-usb-core,60,usblp))
194
195 $(eval $(call KMOD_template,USB_SERIAL,usb-serial,\
196 $(MODULES_DIR)/kernel/drivers/usb/serial/usbserial.ko \
197 ,CONFIG_USB_SERIAL,kmod-usb-core,60,usbserial))
198
199 $(eval $(call KMOD_template,USB_SERIAL_BELKIN,usb-serial-belkin,\
200 $(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.ko \
201 ,CONFIG_USB_SERIAL_BELKIN,kmod-usb-serial,61,belkin_sa))
202
203 $(eval $(call KMOD_template,USB_SERIAL_FTDI,usb-serial-ftdi,\
204 $(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.ko \
205 ,CONFIG_USB_SERIAL_FTDI_SIO,kmod-usb-serial,61,ftdi_sio))
206
207 $(eval $(call KMOD_template,USB_SERIAL_MCT_U232,usb-serial-mct-u232,\
208 $(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.ko \
209 ,CONFIG_USB_SERIAL_MCT_U232,kmod-usb-serial,61,mct_u232))
210
211 $(eval $(call KMOD_template,USB_SERIAL_PL2303,usb-serial-pl2303,\
212 $(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.ko \
213 ,CONFIG_USB_SERIAL_PL2303,kmod-usb-serial,61,pl2303))
214
215 $(eval $(call KMOD_template,USB_SERIAL_VISOR,usb-serial-visor,\
216 $(MODULES_DIR)/kernel/drivers/usb/serial/visor.ko \
217 ,CONFIG_USB_SERIAL_VISOR,kmod-usb-serial,61,visor))
218
219 $(eval $(call KMOD_template,USB_STORAGE,usb-storage,\
220 $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod.ko \
221 $(MODULES_DIR)/kernel/drivers/scsi/sd_mod.ko \
222 $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage.ko \
223 ,CONFIG_USB_STORAGE,kmod-usb-core,60,scsi_mod sd_mod usb-storage))
224
225 $(eval $(call KMOD_template,USB_ATM,usb-atm,\
226 $(MODULES_DIR)/kernel/drivers/usb/atm/usbatm.ko \
227 ,CONFIG_USB_ATM,kmod-usb-atm,50,usbatm))
228
229 $(eval $(call KMOD_template,USB_ATM_SPEEDTOUCH,usb-atm-speedtouch,\
230 $(MODULES_DIR)/kernel/drivers/usb/atm/speedtch.ko \
231 ,CONFIG_USB_SPEEDTOUCH,kmod-usb-atm-speedtouch,50,speedtch))
232
233 # Misc. devices
234
235 $(eval $(call KMOD_template,AX25,ax25,\
236 $(MODULES_DIR)/kernel/net/ax25/ax25.ko \
237 $(MODULES_DIR)/kernel/drivers/net/hamradio/mkiss.ko \
238 ,CONFIG_AX25,,90,ax25 mkiss))
239
240 $(eval $(call KMOD_template,BLUETOOTH,bluetooth,\
241 $(MODULES_DIR)/kernel/net/bluetooth/bluetooth.ko \
242 $(MODULES_DIR)/kernel/net/bluetooth/l2cap.ko \
243 $(MODULES_DIR)/kernel/net/bluetooth/sco.ko \
244 $(MODULES_DIR)/kernel/net/bluetooth/rfcomm/rfcomm.ko \
245 $(MODULES_DIR)/kernel/drivers/bluetooth/hci_uart.ko \
246 $(MODULES_DIR)/kernel/drivers/bluetooth/hci_usb.ko \
247 ,CONFIG_BT))
248
249
This page took 0.059292 seconds and 5 git commands to generate.