enable native ipsec modules on 2.6, add ipsec kernel modules
[openwrt.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:=$(MODULES_DIR)/kernel/drivers/usb/usbcore.$(LINUX_KMOD_SUFFIX)
22 endef
23
24 define KernelPackage/usb-core/2.6
25 FILES:=$(MODULES_DIR)/kernel/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 PROVIDES:=usb-controller
35 SUBMENU:=$(USBMENU)
36 endef
37
38 define KernelPackage/usb-uhci/2.4
39 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/uhci.o
40 KCONFIG:=$(CONFIG_USB_UHCI_ALT)
41 AUTOLOAD:=$(call AutoLoad,50,uhci)
42 endef
43
44 define KernelPackage/usb-uhci/2.6
45 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/uhci-hcd.ko
46 KCONFIG:=$(CONFIG_USB_UHCI_HCD)
47 AUTOLOAD:=$(call AutoLoad,50,uhci-hcd)
48 endef
49 $(eval $(call KernelPackage,usb-uhci))
50
51
52 define KernelPackage/usb-ohci
53 TITLE:=Support for OHCI controllers
54 DESCRIPTION:=Kernel support for USB OHCI controllers
55 DEPENDS:=kmod-usb-core
56 PROVIDES:=usb-controller
57 SUBMENU:=$(USBMENU)
58 endef
59
60 define KernelPackage/usb-ohci/2.4
61 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/usb-ohci.o
62 KCONFIG:=$(CONFIG_USB_OHCI)
63 AUTOLOAD:=$(call AutoLoad,50,usb-ohci)
64 endef
65
66 define KernelPackage/usb-ohci/2.6
67 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/ohci-hcd.ko
68 KCONFIG:=$(CONFIG_USB_OHCI_HCD)
69 AUTOLOAD:=$(call AutoLoad,50,ohci-hcd)
70 endef
71 $(eval $(call KernelPackage,usb-ohci))
72
73
74 define KernelPackage/usb2
75 TITLE:=Support for USB2 controllers
76 DESCRIPTION:=Kernel support for USB2 (EHCI) controllers
77 DEPENDS:=kmod-usb-core
78 PROVIDES:=usb-controller
79 KCONFIG:=$(CONFIG_USB)
80 SUBMENU:=$(USBMENU)
81 FILES:=$(MODULES_DIR)/kernel/drivers/usb/host/ehci-hcd.$(LINUX_KMOD_SUFFIX)
82 KCONFIG:=$(CONFIG_USB_EHCI_HCD)
83 AUTOLOAD:=$(call AutoLoad,50,ehci-hcd)
84 endef
85 $(eval $(call KernelPackage,usb2))
86
87
88 define usbdep
89 SUBMENU:=$(USBMENU)
90 DEPENDS:=kmod-usb-core usb-controller $(1)
91 endef
92
93
94 define KernelPackage/usb-acm
95 $(call usbdep,)
96 TITLE:=Support for modems/isdn controllers
97 DESCRIPTION:=Kernel support for USB ACM devices (modems/isdn controllers)
98 KCONFIG:=$(CONFIG_USB_ACM)
99 endef
100
101 define KernelPackage/usb-acm/2.4
102 FILES:=$(MODULES_DIR)/kernel/drivers/usb/acm.o
103 AUTOLOAD:=$(call AutoLoad,60,acm)
104 endef
105
106 define KernelPackage/usb-acm/2.6
107 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/cdc-acm.ko
108 AUTOLOAD:=$(call AutoLoad,60,cdc-acm)
109 endef
110 $(eval $(call KernelPackage,usb-acm))
111
112
113 define KernelPackage/usb-audio
114 $(call usbdep,+kmod-soundcore)
115 TITLE:=Support for audio devices
116 DESCRIPTION:=Kernel support for USB audio devices
117 KCONFIG:=$(CONFIG_USB_AUDIO)
118 AUTOLOAD:=$(call AutoLoad,60,audio)
119 endef
120
121 define KernelPackage/usb-audio/2.4
122 FILES:=$(MODULES_DIR)/kernel/drivers/usb/audio.o
123 endef
124
125 define KernelPackage/usb-audio/2.6
126 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/audio.ko
127 endef
128 $(eval $(call KernelPackage,usb-audio))
129
130
131 define KernelPackage/usb-printer
132 $(call usbdep,)
133 TITLE:=Support for printers
134 DESCRIPTION:=Kernel support for USB printers
135 KCONFIG:=$(CONFIG_USB_PRINTER)
136 endef
137
138 define KernelPackage/usb-printer/2.4
139 FILES:=$(MODULES_DIR)/kernel/drivers/usb/printer.o
140 AUTOLOAD:=$(call AutoLoad,60,printer)
141 endef
142
143 define KernelPackage/usb-printer/2.6
144 FILES:=$(MODULES_DIR)/kernel/drivers/usb/class/usblp.ko
145 AUTOLOAD:=$(call AutoLoad,60,usblp)
146 endef
147 $(eval $(call KernelPackage,usb-printer))
148
149
150 define KernelPackage/usb-serial
151 $(call usbdep,)
152 TITLE:=Support for USB-to-Serial converters
153 DESCRIPTION:=Kernel support for USB-to-Serial converters
154 KCONFIG:=$(CONFIG_USB_SERIAL)
155 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/usbserial.$(LINUX_KMOD_SUFFIX)
156 AUTOLOAD:=$(call AutoLoad,60,usbserial)
157 endef
158 $(eval $(call KernelPackage,usb-serial))
159
160
161 define KernelPackage/usb-serial-belkin
162 TITLE:=Support for Belkin devices
163 DESCRIPTION:=Kernel support for Belkin USB-to-Serial converters
164 DEPENDS:=kmod-usb-serial
165 SUBMENU:=$(USBMENU)
166 KCONFIG:=$(CONFIG_USB_SERIAL_BELKIN)
167 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/belkin_sa.$(LINUX_KMOD_SUFFIX)
168 AUTOLOAD:=$(call AutoLoad,65,belkin_sa)
169 endef
170 $(eval $(call KernelPackage,usb-serial-belkin))
171
172
173 define KernelPackage/usb-serial-ftdi
174 TITLE:=Support for FTDI devices
175 DESCRIPTION:=Kernel support for FTDI USB-to-Serial converters
176 DEPENDS:=kmod-usb-serial
177 SUBMENU:=$(USBMENU)
178 KCONFIG:=$(CONFIG_USB_SERIAL_FTDI_SIO)
179 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/ftdi_sio.$(LINUX_KMOD_SUFFIX)
180 AUTOLOAD:=$(call AutoLoad,65,ftdi_sio)
181 endef
182 $(eval $(call KernelPackage,usb-serial-ftdi))
183
184
185 define KernelPackage/usb-serial-mct
186 TITLE:=Support for Magic Control Tech. devices
187 DESCRIPTION:=Kernel support for Magic Control Technology USB-to-Serial converters
188 DEPENDS:=kmod-usb-serial
189 SUBMENU:=$(USBMENU)
190 KCONFIG:=$(CONFIG_USB_SERIAL_MCT_U232)
191 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/mct_u232.$(LINUX_KMOD_SUFFIX)
192 AUTOLOAD:=$(call AutoLoad,65,mct_u232)
193 endef
194 $(eval $(call KernelPackage,usb-serial-mct))
195
196 define KernelPackage/usb-serial-pl2303
197 TITLE:=Support for Prolific PL2303 devices
198 DESCRIPTION:=Kernel support for Prolific PL2303 USB-to-Serial converters
199 DEPENDS:=kmod-usb-serial
200 SUBMENU:=$(USBMENU)
201 KCONFIG:=$(CONFIG_USB_SERIAL_PL2303)
202 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/pl2303.$(LINUX_KMOD_SUFFIX)
203 AUTOLOAD:=$(call AutoLoad,65,pl2303)
204 endef
205 $(eval $(call KernelPackage,usb-serial-pl2303))
206
207
208 define KernelPackage/usb-serial-visor
209 TITLE:=Support for Handspring Visor devices
210 DESCRIPTION:=Kernel support for Handspring Visor PDAs
211 DEPENDS:=kmod-usb-serial
212 SUBMENU:=$(USBMENU)
213 KCONFIG:=$(CONFIG_USB_SERIAL_VISOR)
214 FILES:=$(MODULES_DIR)/kernel/drivers/usb/serial/visor.$(LINUX_KMOD_SUFFIX)
215 AUTOLOAD:=$(call AutoLoad,65,visor)
216 endef
217 $(eval $(call KernelPackage,usb-serial-visor))
218
219
220 define KernelPackage/usb-storage
221 $(call usbdep,)
222 TITLE:=USB Storage support
223 DESCRIPTION:=Kernel support for USB Mass Storage devices
224 KCONFIG:=$(CONFIG_USB_STORAGE)
225 FILES:= \
226 $(MODULES_DIR)/kernel/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
227 $(MODULES_DIR)/kernel/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX) \
228 $(MODULES_DIR)/kernel/drivers/usb/storage/usb-storage.$(LINUX_KMOD_SUFFIX)
229 AUTOLOAD:=$(call AutoLoad,60,scsi_mod sd_mod usb-storage)
230 endef
231 $(eval $(call KernelPackage,usb-storage))
232
233
234
235 define KernelPackage/usb-speedtouch
236 $(call usbdep,@LINUX_2_6 kmod-atm)
237 TITLE:=Support for SpeedTouch ADSL modems
238 DESCRIPTION:=Kernel support for SpeedTouch USB ADSL modems
239 KCONFIG:=$(CONFIG_USB_SPEEDTOUCH)
240 FILES:= \
241 $(MODULES_DIR)/kernel/drivers/usb/atm/usbatm.$(LINUX_KMOD_SUFFIX) \
242 $(MODULES_DIR)/kernel/drivers/usb/atm/speedtch.$(LINUX_KMOD_SUFFIX)
243 AUTOLOAD:=$(call AutoLoad,70,usbatm speedtch)
244 endef
245 $(eval $(call KernelPackage,usb-speedtouch))
246
This page took 0.054519 seconds and 5 git commands to generate.