fix kmod-usb-hid package build
[openwrt/svn-archive/archive.git] / package / kernel / modules / usb.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 # $Id$
8
9 USBMENU:=USB Support
10
11 define KernelPackage/usb-core
12 TITLE:=Support for USB
13 DESCRIPTION:=Kernel support for USB
14 DEPENDS:=@USB_SUPPORT
15 KCONFIG:=$(CONFIG_USB)
16 SUBMENU:=$(USBMENU)
17 AUTOLOAD:=$(call AutoLoad,20,usbcore)
18 endef
19
20 define KernelPackage/usb-core/2.4
21 FILES:=$(LINUX_DIR)/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
22 endef
23
24 define KernelPackage/usb-core/2.6
25 FILES:=$(LINUX_DIR)/drivers/usb/core/usbcore.$(LINUX_KMOD_SUFFIX)
26 endef
27 $(eval $(call KernelPackage,usb-core))
28
29
30 define KernelPackage/usb-uhci
31 TITLE:=Support for UHCI controllers
32 DESCRIPTION:=Kernel support for USB UHCI controllers
33 DEPENDS:=kmod-usb-core
34 SUBMENU:=$(USBMENU)
35 endef
36
37 define KernelPackage/usb-uhci/2.4
38 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci.o
39 KCONFIG:=$(CONFIG_USB_UHCI_ALT)
40 AUTOLOAD:=$(call AutoLoad,50,uhci)
41 endef
42
43 define KernelPackage/usb-uhci/2.6
44 FILES:=$(LINUX_DIR)/drivers/usb/host/uhci-hcd.ko
45 KCONFIG:=$(CONFIG_USB_UHCI_HCD)
46 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd)
47 endef
48 $(eval $(call KernelPackage,usb-uhci))
49
50 define KernelPackage/usb-uhci-iv
51 TITLE:=Support for Intel/VIA UHCI controllers
52 DESCRIPTION:=Kernel support for Intel/VIA USB UHCI controllers
53 DEPENDS:=kmod-usb-core @LINUX_2_4
54 SUBMENU:=$(USBMENU)
55 endef
56
57 define KernelPackage/usb-uhci-iv/2.4
58 FILES:=$(LINUX_DIR)/drivers/usb/host/usb-uhci.$(LINUX_KMOD_SUFFIX)
59 KCONFIG:=$(CONFIG_USB_UHCI)
60 AUTOLOAD:=$(call AutoLoad,50,usb-uhci)
61 endef
62 $(eval $(call KernelPackage,usb-uhci-iv))
63
64 define KernelPackage/usb-ohci
65 TITLE:=Support for OHCI controllers
66 DESCRIPTION:=Kernel support for USB OHCI controllers
67 DEPENDS:=kmod-usb-core
68 SUBMENU:=$(USBMENU)
69 endef
70
71 define KernelPackage/usb-ohci/2.4
72 FILES:=$(LINUX_DIR)/drivers/usb/host/usb-ohci.o
73 KCONFIG:=$(CONFIG_USB_OHCI)
74 AUTOLOAD:=$(call AutoLoad,50,usb-ohci)
75 endef
76
77 define KernelPackage/usb-ohci/2.6
78 FILES:=$(LINUX_DIR)/drivers/usb/host/ohci-hcd.ko
79 KCONFIG:=$(CONFIG_USB_OHCI_HCD)
80 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd)
81 endef
82 $(eval $(call KernelPackage,usb-ohci))
83
84 define KernelPackage/usb2
85 TITLE:=Support for USB2 controllers
86 DESCRIPTION:=Kernel support for USB2 (EHCI) controllers
87 DEPENDS:=kmod-usb-core
88 KCONFIG:=$(CONFIG_USB)
89 SUBMENU:=$(USBMENU)
90 FILES:=$(LINUX_DIR)/drivers/usb/host/ehci-hcd.$(LINUX_KMOD_SUFFIX)
91 KCONFIG:=$(CONFIG_USB_EHCI_HCD)
92 AUTOLOAD:=$(call AutoLoad,50,ehci-hcd)
93 endef
94 $(eval $(call KernelPackage,usb2))
95
96
97 define usbdep
98 SUBMENU:=$(USBMENU)
99 DEPENDS:=kmod-usb-core $(1)
100 endef
101
102
103 define KernelPackage/usb-acm
104 $(call usbdep,)
105 TITLE:=Support for modems/isdn controllers
106 DESCRIPTION:=Kernel support for USB ACM devices (modems/isdn controllers)
107 KCONFIG:=$(CONFIG_USB_ACM)
108 endef
109
110 define KernelPackage/usb-acm/2.4
111 FILES:=$(LINUX_DIR)/drivers/usb/acm.o
112 AUTOLOAD:=$(call AutoLoad,60,acm)
113 endef
114
115 define KernelPackage/usb-acm/2.6
116 FILES:=$(LINUX_DIR)/drivers/usb/class/cdc-acm.ko
117 AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
118 endef
119 $(eval $(call KernelPackage,usb-acm))
120
121
122 define KernelPackage/usb-audio
123 $(call usbdep,+kmod-soundcore)
124 TITLE:=Support for audio devices
125 DESCRIPTION:=Kernel support for USB audio devices
126 endef
127
128 define KernelPackage/usb-audio/2.4
129 KCONFIG:=$(CONFIG_USB_AUDIO)
130 FILES:=$(LINUX_DIR)/drivers/usb/audio.o
131 AUTOLOAD:=$(call AutoLoad,60,audio)
132 endef
133
134 define KernelPackage/usb-audio/2.6
135 KCONFIG:=$(CONFIG_SND_USB_AUDIO)
136 FILES:= \
137 $(LINUX_DIR)/sound/usb/snd-usb-lib.ko \
138 $(LINUX_DIR)/sound/usb/snd-usb-audio.ko
139 AUTOLOAD:=$(call AutoLoad,60,snd-usb-lib snd-usb-audio)
140 endef
141 $(eval $(call KernelPackage,usb-audio))
142
143
144 define KernelPackage/usb-printer
145 $(call usbdep,)
146 TITLE:=Support for printers
147 DESCRIPTION:=Kernel support for USB printers
148 KCONFIG:=$(CONFIG_USB_PRINTER)
149 endef
150
151 define KernelPackage/usb-printer/2.4
152 FILES:=$(LINUX_DIR)/drivers/usb/printer.o
153 AUTOLOAD:=$(call AutoLoad,60,printer)
154 endef
155
156 define KernelPackage/usb-printer/2.6
157 FILES:=$(LINUX_DIR)/drivers/usb/class/usblp.ko
158 AUTOLOAD:=$(call AutoLoad,60,usblp)
159 endef
160 $(eval $(call KernelPackage,usb-printer))
161
162
163 define KernelPackage/usb-serial
164 $(call usbdep,)
165 TITLE:=Support for USB-to-Serial converters
166 DESCRIPTION:=Kernel support for USB-to-Serial converters
167 KCONFIG:=$(CONFIG_USB_SERIAL)
168 FILES:=$(LINUX_DIR)/drivers/usb/serial/usbserial.$(LINUX_KMOD_SUFFIX)
169 AUTOLOAD:=$(call AutoLoad,60,usbserial)
170 endef
171 $(eval $(call KernelPackage,usb-serial))
172
173 define KernelPackage/usb-serial-airprime
174 TITLE:=Support for Airprime (EVDO)
175 DESCRIPTION:=Kernel support for Airprime (EVDO)
176 DEPENDS:=kmod-usb-serial
177 SUBMENU:=$(USBMENU)
178 KCONFIG:=$(CONFIG_USB_SERIAL_AIRPRIME)
179 FILES:=$(LINUX_DIR)/drivers/usb/serial/airprime.$(LINUX_KMOD_SUFFIX)
180 AUTOLOAD:=$(call AutoLoad,65,airprime)
181 endef
182 $(eval $(call KernelPackage,usb-serial-airprime))
183
184 define KernelPackage/usb-serial-belkin
185 TITLE:=Support for Belkin devices
186 DESCRIPTION:=Kernel support for Belkin USB-to-Serial converters
187 DEPENDS:=kmod-usb-serial
188 SUBMENU:=$(USBMENU)
189 KCONFIG:=$(CONFIG_USB_SERIAL_BELKIN)
190 FILES:=$(LINUX_DIR)/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
191 AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
192 endef
193 $(eval $(call KernelPackage,usb-serial-belkin))
194
195
196 define KernelPackage/usb-serial-ftdi
197 TITLE:=Support for FTDI devices
198 DESCRIPTION:=Kernel support for FTDI USB-to-Serial converters
199 DEPENDS:=kmod-usb-serial
200 SUBMENU:=$(USBMENU)
201 KCONFIG:=$(CONFIG_USB_SERIAL_FTDI_SIO)
202 FILES:=$(LINUX_DIR)/drivers/usb/serial/ftdi_sio.$(LINUX_KMOD_SUFFIX)
203 AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
204 endef
205 $(eval $(call KernelPackage,usb-serial-ftdi))
206
207
208 define KernelPackage/usb-serial-mct
209 TITLE:=Support for Magic Control Tech. devices
210 DESCRIPTION:=Kernel support for Magic Control Technology USB-to-Serial converters
211 DEPENDS:=kmod-usb-serial
212 SUBMENU:=$(USBMENU)
213 KCONFIG:=$(CONFIG_USB_SERIAL_MCT_U232)
214 FILES:=$(LINUX_DIR)/drivers/usb/serial/mct_u232.$(LINUX_KMOD_SUFFIX)
215 AUTOLOAD:=$(call AutoLoad,65,mct_u232)
216 endef
217 $(eval $(call KernelPackage,usb-serial-mct))
218
219 define KernelPackage/usb-serial-pl2303
220 TITLE:=Support for Prolific PL2303 devices
221 DESCRIPTION:=Kernel support for Prolific PL2303 USB-to-Serial converters
222 DEPENDS:=kmod-usb-serial
223 SUBMENU:=$(USBMENU)
224 KCONFIG:=$(CONFIG_USB_SERIAL_PL2303)
225 FILES:=$(LINUX_DIR)/drivers/usb/serial/pl2303.$(LINUX_KMOD_SUFFIX)
226 AUTOLOAD:=$(call AutoLoad,65,pl2303)
227 endef
228 $(eval $(call KernelPackage,usb-serial-pl2303))
229
230
231 define KernelPackage/usb-serial-sierrawireless
232 TITLE:=Support for Sierra Wireless devices
233 DESCRIPTION:=Kernel support for Sierra Wireless devices
234 DEPENDS:=kmod-usb-serial
235 SUBMENU:=$(USBMENU)
236 KCONFIG:=$(CONFIG_USB_SERIAL_SIERRAWIRELESS)
237 FILES:=$(LINUX_DIR)/drivers/usb/serial/sierra.$(LINUX_KMOD_SUFFIX)
238 AUTOLOAD:=$(call AutoLoad,65,sierra)
239 endef
240 $(eval $(call KernelPackage,usb-serial-sierrawireless))
241
242
243 define KernelPackage/usb-serial-visor
244 TITLE:=Support for Handspring Visor devices
245 DESCRIPTION:=Kernel support for Handspring Visor PDAs
246 DEPENDS:=kmod-usb-serial
247 SUBMENU:=$(USBMENU)
248 KCONFIG:=$(CONFIG_USB_SERIAL_VISOR)
249 FILES:=$(LINUX_DIR)/drivers/usb/serial/visor.$(LINUX_KMOD_SUFFIX)
250 AUTOLOAD:=$(call AutoLoad,65,visor)
251 endef
252 $(eval $(call KernelPackage,usb-serial-visor))
253
254
255 define KernelPackage/usb-storage
256 $(call usbdep,)
257 TITLE:=USB Storage support
258 DESCRIPTION:=Kernel support for USB Mass Storage devices
259 KCONFIG:=$(CONFIG_USB_STORAGE)
260 FILES:= \
261 $(LINUX_DIR)/drivers/usb/storage/usb-storage.$(LINUX_KMOD_SUFFIX)
262 AUTOLOAD:=$(call AutoLoad,60,scsi_mod sd_mod usb-storage)
263 DEPENDS:=+kmod-scsi-core
264 endef
265 $(eval $(call KernelPackage,usb-storage))
266
267
268
269 define KernelPackage/usb-speedtouch
270 $(call usbdep,@LINUX_2_6 kmod-atm)
271 TITLE:=Support for SpeedTouch ADSL modems
272 DESCRIPTION:=Kernel support for SpeedTouch USB ADSL modems
273 KCONFIG:=$(CONFIG_USB_SPEEDTOUCH)
274 FILES:= \
275 $(LINUX_DIR)/drivers/usb/atm/usbatm.$(LINUX_KMOD_SUFFIX) \
276 $(LINUX_DIR)/drivers/usb/atm/speedtch.$(LINUX_KMOD_SUFFIX)
277 AUTOLOAD:=$(call AutoLoad,70,usbatm speedtch)
278 endef
279 $(eval $(call KernelPackage,usb-speedtouch))
280
281
282 define KernelPackage/usb-pwc
283 $(call usbdep,+kmod-videodev)
284 TITLE:=Philips WebCam driver
285 DESCRIPTION:=Kernel modules for supporting Philips WebCam USB devices
286 KCONFIG:=$(CONFIG_USB_PWC)
287 AUTOLOAD:=$(call AutoLoad,70,pwc)
288 endef
289
290 define KernelPackage/usb-pwc/2.4
291 FILES:=$(LINUX_DIR)/drivers/usb/pwc.$(LINUX_KMOD_SUFFIX)
292 endef
293
294 $(eval $(call KernelPackage,usb-pwc))
295
296 define KernelPackage/usb-net
297 $(call usbdep,)
298 TITLE:=Kernel modules for USB-to-Ethernet convertors
299 DESCRIPTION:=Kernel modules for USB-to-Ethernet convertors
300 KCONFIG:=$(CONFIG_USB_USBNET)
301 DEPENDS:=@USB_SUPPORT
302 AUTOLOAD:=$(call Autoload,60, usbnet)
303 endef
304
305 define KernelPackage/usb-net/2.4
306 FILES:=$(LINUX_DIR)/drivers/usb/usbnet.$(LINUX_KMOD_SUFFIX)
307 endef
308
309 define KernelPackage/usb-net/2.6
310 FILES:=$(LINUX_DIR)/drivers/usb/net/usbnet.$(LINUX_KMOD_SUFFIX)
311 endef
312
313 $(eval $(call KernelPackage,usb-net))
314
315 define KernelPackage/usb-net-asix
316 $(call usbdep,+kmod-usbnet)
317 TITLE:=Kernel module for USB-to-Ethernet Asix convertors
318 DESCRIPTION:=Kernel module for USB-to-Ethernet Asix convertors
319 DEPENDS:=kmod-usb-net
320 KCONFIG:=$(CONFIG_USB_NET_AX8817X)
321 endef
322
323 define KernelPackage/usb-net-asix/2.4
324 FILES:=$(LINUX_DIR)/drivers/usb/ax8817x.$(LINUX_KMOD_SUFFIX)
325 AUTOLOAD:=$(call Autoload,61,ax8817x)
326 endef
327
328 define KernelPackage/usb-net-asix/2.6
329 FILES:=$(LINUX_DIR)/drivers/usb/net/asix.$(LINUX_KMOD_SUFFIX)
330 AUTOLOAD:=$(call Autoload,61,asix)
331 endef
332
333 $(eval $(call KernelPackage,usb-net-asix))
334
335 define KernelPackage/usb-hid
336 $(call usbdep,@LINUX_2_6 evdev)
337 TITLE:=Support for USB Human Input Devices
338 DESCRIPTION:=Kernel support for USB HID devices such as keyboards and mice
339 KCONFIG:=$(CONFIG_USB_HID)
340 AUTOLOAD:=$(call AutoLoad,70,usbhid)
341 endef
342
343 define KernelPackage/usb-hid/2.6
344 FILES:=$(LINUX_DIR)/drivers/usb/input/usbhid.ko
345 endef
346 $(eval $(call KernelPackage,usb-hid))
347
348 define KernelPackage/usb-yealink
349 $(call usbdep,@LINUX_2_6)
350 TITLE:=USB Yealink VOIP phone
351 DESCRIPTION:=Kernel support for Yealink VOIP phone
352 KCONFIG:=$(CONFIG_USB_YEALINK)
353 FILES:=$(LINUX_DIR)/drivers/usb/input/yealink.ko
354 AUTOLOAD:=$(call AutoLoad,70,yealink)
355 DEPENDS:=kmod-input-core kmod-input-evdev
356 endef
357 $(eval $(call KernelPackage,usb-yealink))
358
359