Add yealink usb phone kernel packages
[openwrt/svn-archive/archive.git] / package / kernel / modules / other.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 EMENU:=Other modules
10
11 define KernelPackage/crypto
12 TITLE:=CryptoAPI modules
13 KCONFIG:= \
14 $(CONFIG_CRYPTO_HMAC) \
15 $(CONFIG_CRYPTO_NULL) \
16 $(CONFIG_CRYPTO_MD4) \
17 $(CONFIG_CRYPTO_MD5) \
18 $(CONFIG_CRYPTO_SHA1) \
19 $(CONFIG_CRYPTO_SHA256) \
20 $(CONFIG_CRYPTO_SHA512) \
21 $(CONFIG_CRYPTO_WP512) \
22 $(CONFIG_CRYPTO_TGR192) \
23 $(CONFIG_CRYPTO_DES) \
24 $(CONFIG_CRYPTO_BLOWFISH) \
25 $(CONFIG_CRYPTO_TWOFISH) \
26 $(CONFIG_CRYPTO_SERPENT) \
27 $(CONFIG_CRYPTO_AES) \
28 $(CONFIG_CRYPTO_CAST5) \
29 $(CONFIG_CRYPTO_CAST6) \
30 $(CONFIG_CRYPTO_TEA) \
31 $(CONFIG_CRYPTO_ARC4) \
32 $(CONFIG_CRYPTO_KHAZAD) \
33 $(CONFIG_CRYPTO_ANUBIS) \
34 $(CONFIG_CRYPTO_DEFLATE) \
35 $(CONFIG_CRYPTO_MICHAEL_MIC) \
36 $(CONFIG_CRYPTO_CRC32C)
37 FILES:=$(LINUX_DIR)/crypto/*.$(LINUX_KMOD_SUFFIX)
38 SUBMENU:=$(EMENU)
39 endef
40 $(eval $(call KernelPackage,crypto))
41
42 define KernelPackage/ide-core
43 TITLE:=Kernel support for IDE
44 DESCRIPTION:=\
45 Useful for usb mass storage devices (e.g. on WL-HDD)\\\
46 \\\
47 Includes: \\\
48 - ide-core \\\
49 - ide-detect \\\
50 - ide-disk
51 KCONFIG:=$(CONFIG_IDE)
52 FILES:=$(LINUX_DIR)/drivers/ide/*.$(LINUX_KMOD_SUFFIX)
53 SUBMENU:=$(EMENU)
54 AUTOLOAD:=$(call AutoLoad,20,ide-core) $(call AutoLoad,90,ide-generic ide-detect ide-disk)
55 endef
56 $(eval $(call KernelPackage,ide-core))
57
58 define KernelPackage/ide-pdc202xx
59 TITLE:=PDC202xx IDE driver
60 SUBMENU:=$(EMENU)
61 KCONFIG:=$(CONFIG_BLK_DEV_PDC202XX_OLD)
62 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
63 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
64 endef
65 $(eval $(call KernelPackage,ide-pdc202xx))
66
67 define KernelPackage/ide-aec62xx
68 TITLE:=AEC62xx IDE driver
69 SUBMENU:=$(EMENU)
70 KCONFIG:=$(CONFIG_BLK_DEV_AEC62XX)
71 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
72 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
73 endef
74 $(eval $(call KernelPackage,ide-aec62xx))
75
76 define KernelPackage/scsi-core
77 TITLE:=Kernel support for SCSI
78 SUBMENU:=$(EMENU)
79 KCONFIG:=$(CONFIG_BLK_DEV_SD)
80 FILES:= \
81 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
82 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
83 endef
84 $(eval $(call KernelPackage,scsi-core))
85
86 define KernelPackage/lp
87 TITLE:=Parallel port and line printer support
88 KCONFIG:=$(CONFIG_PARPORT)
89 FILES:= \
90 $(LINUX_DIR)/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \
91 $(LINUX_DIR)/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \
92 $(LINUX_DIR)/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX)
93 SUBMENU:=$(EMENU)
94 AUTOLOAD:=$(call AutoLoad,50, \
95 parport \
96 lp \
97 )
98 endef
99 $(eval $(call KernelPackage,lp))
100
101
102 define KernelPackage/soundcore
103 TITLE:=Sound support
104 DESCRIPTION:=Kernel modules for sound support
105 KCONFIG:=$(CONFIG_SOUND)
106 SUBMENU:=$(EMENU)
107 endef
108
109 define KernelPackage/soundcore/2.4
110 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
111 AUTOLOAD:=$(call AutoLoad,30,soundcore)
112 endef
113
114 define KernelPackage/soundcore/2.6
115 FILES:= \
116 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
117 $(LINUX_DIR)/sound/core/*.$(LINUX_KMOD_SUFFIX) \
118 $(LINUX_DIR)/sound/core/oss/*.$(LINUX_KMOD_SUFFIX)
119 AUTOLOAD:=$(call AutoLoad,30,soundcore snd snd-page-alloc snd-hwdep snd-rawmidi snd-timer snd-pcm snd-mixer-oss snd-pcm-oss)
120 endef
121 $(eval $(call KernelPackage,soundcore))
122
123 define KernelPackage/loop
124 TITLE:=Loopback device support
125 DESCRIPTION:=Kernel module for loopback device support
126 KCONFIG:=$(CONFIG_BLK_DEV_LOOP)
127 SUBMENU:=$(EMENU)
128 AUTOLOAD:=$(call AutoLoad,30,loop)
129 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
130 endef
131 $(eval $(call KernelPackage,loop))
132
133 define KernelPackage/nbd
134 TITLE:=Network block device support
135 DESCRIPTION:=Kernel module for network block device support
136 KCONFIG:=$(CONFIG_BLK_DEV_NBD)
137 SUBMENU:=$(EMENU)
138 AUTOLOAD:=$(call AutoLoad,30,nbd)
139 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
140 endef
141 $(eval $(call KernelPackage,nbd))
142
143 define KernelPackage/capi
144 TITLE:=CAPI Support
145 DESCRIPTION:=Kernel module for basic CAPI support
146 KCONFIG:=$(CONFIG_ISDN) $(CONFIG_ISDN_CAPI) $(CONFIG_ISDN_CAPI_CAPI20)
147 SUBMENU:=$(EMENU)
148 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
149 FILES:=$(LINUX_DIR)/drivers/isdn/capi/*capi.$(LINUX_KMOD_SUFFIX)
150 endef
151 $(eval $(call KernelPackage,capi))
152
153 define KernelPackage/pcmcia-core
154 TITLE:=PCMCIA/CardBus support
155 DESCRIPTION:=Kernel support for PCMCIA/CardBus controllers
156 SUBMENU:=$(EMENU)
157 endef
158
159 define KernelPackage/pcmcia-core/2.4
160 KCONFIG:=$(CONFIG_PCMCIA)
161 FILES:= \
162 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
163 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX) \
164 $(LINUX_DIR)/drivers/pcmcia/ds.$(LINUX_KMOD_SUFFIX)
165 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core yenta_socket ds)
166 endef
167
168 define KernelPackage/pcmcia-core/2.6
169 KCONFIG:=$(CONFIG_PCCARD)
170 FILES:= \
171 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
172 $(if $(CONFIG_PCMCIA),$(LINUX_DIR)/drivers/pcmcia/pcmcia.$(LINUX_KMOD_SUFFIX)) \
173 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX) \
174 $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.$(LINUX_KMOD_SUFFIX)
175 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core pcmcia rsrc_nonstatic yenta_socket)
176 endef
177 $(eval $(call KernelPackage,pcmcia-core))
178
179
180 define KernelPackage/pcmcia-serial
181 TITLE:=Serial devices support
182 DESCRIPTION:=Kernel support for PCMCIA/CardBus serial devices
183 DEPENDS:=kmod-pcmcia-core
184 SUBMENU:=$(EMENU)
185 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
186 endef
187
188 define KernelPackage/pcmcia-serial/2.4
189 KCONFIG:=$(CONFIG_PCMCIA_SERIAL_CS)
190 FILES:=$(LINUX_DIR)/drivers/char/pcmcia/serial_cs.$(LINUX_KMOD_SUFFIX)
191 endef
192
193 define KernelPackage/pcmcia-serial/2.6
194 KCONFIG:=$(CONFIG_SERIAL_8250_CS)
195 FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.$(LINUX_KMOD_SUFFIX)
196 endef
197 $(eval $(call KernelPackage,pcmcia-serial))
198
199
200 define KernelPackage/bluetooth
201 TITLE:=Bluetooth support
202 DEPENDS:=@USB_SUPPORT
203 DESCRIPTION:=Kernel support for Bluetooth devices
204 SUBMENU:=$(EMENU)
205 endef
206
207 define KernelPackage/bluetooth/2.4
208 KCONFIG:=$(CONFIG_BLUEZ)
209 FILES:= \
210 $(LINUX_DIR)/net/bluetooth/bluez.$(LINUX_KMOD_SUFFIX) \
211 $(LINUX_DIR)/net/bluetooth/l2cap.$(LINUX_KMOD_SUFFIX) \
212 $(LINUX_DIR)/net/bluetooth/sco.$(LINUX_KMOD_SUFFIX) \
213 $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.$(LINUX_KMOD_SUFFIX) \
214 $(LINUX_DIR)/net/bluetooth/bnep/bnep.$(LINUX_KMOD_SUFFIX) \
215 $(LINUX_DIR)/drivers/bluetooth/hci_uart.$(LINUX_KMOD_SUFFIX) \
216 $(LINUX_DIR)/drivers/bluetooth/hci_usb.$(LINUX_KMOD_SUFFIX)
217 AUTOLOAD:=$(call AutoLoad,90,bluez l2cap sco rfcomm bnep hci_uart hci_usb)
218 endef
219
220 define KernelPackage/bluetooth/2.6
221 KCONFIG:=$(CONFIG_BT)
222 FILES:= \
223 $(LINUX_DIR)/net/bluetooth/bluetooth.$(LINUX_KMOD_SUFFIX) \
224 $(LINUX_DIR)/net/bluetooth/l2cap.$(LINUX_KMOD_SUFFIX) \
225 $(LINUX_DIR)/net/bluetooth/sco.$(LINUX_KMOD_SUFFIX) \
226 $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.$(LINUX_KMOD_SUFFIX) \
227 $(LINUX_DIR)/net/bluetooth/bnep/bnep.$(LINUX_KMOD_SUFFIX) \
228 $(LINUX_DIR)/drivers/bluetooth/hci_uart.$(LINUX_KMOD_SUFFIX) \
229 $(LINUX_DIR)/drivers/bluetooth/hci_usb.$(LINUX_KMOD_SUFFIX)
230 AUTOLOAD:=$(call AutoLoad,90,bluetooth l2cap sco rfcomm bnep hci_uart hci_usb)
231 endef
232 $(eval $(call KernelPackage,bluetooth))
233
234 define KernelPackage/mmc
235 TITLE:=MMC/SD Card Support
236 DEPENDS:=@LINUX_2_6_AT91
237 DESCRIPTION:=Kernel support for MMC/SD cards
238 SUBMENU:=$(EMENU)
239 endef
240
241 define KernelPackage/mmc/2.6
242 KCONFIG:=$(CONFIG_MMC)
243 FILES:= \
244 $(LINUX_DIR)/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
245 $(LINUX_DIR)/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
246 $(LINUX_DIR)/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX)
247 AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
248 endef
249 $(eval $(call KernelPackage,mmc))
250
251 define KernelPackage/softdog
252 TITLE:=Software watchdog driver
253 DESCRIPTION:=Software watchdog driver
254 SUBMENU:=$(EMENU)
255 KCONFIG:=$(CONFIG_SOFT_WATCHDOG)
256 FILES:=$(LINUX_DIR)/drivers/char/softdog.$(LINUX_KMOD_SUFFIX)
257 AUTOLOAD:=$(call AutoLoad,50,softdog)
258 endef
259
260 define KernelPackage/softdog/2.4
261 FILES:=$(LINUX_DIR)/drivers/char/softdog.o
262 endef
263
264 define KernelPackage/softdog/2.6
265 FILES:=$(LINUX_DIR)/drivers/char/watchdog/softdog.ko
266 endef
267
268 $(eval $(call KernelPackage,softdog))
269
270
271 define KernelPackage/videodev
272 TITLE=Video4Linux support
273 DESCRIPTION:=Kernel modules for Video4Linux support
274 DEPENDS:=@VIDEO_SUPPORT
275 SUBMENU:=$(EMENU)
276 KCONFIG:=$(CONFIG_VIDEO_DEV)
277 FILES:=$(LINUX_DIR)/drivers/media/video/*.$(LINUX_KMOD_SUFFIX)
278 endef
279
280 define KernelPackage/videodev/2.4
281 AUTOLOAD:=$(call AutoLoad,60,videodev)
282 endef
283
284 define KernelPackage/videodev/2.6
285 AUTOLOAD:=$(call AutoLoad,60,v4l2-common v4l1-compat videodev)
286 endef
287 $(eval $(call KernelPackage,videodev))
288
289 define KernelPackage/leds-net48xx
290 TITLE:=Soekris Net48xx LED support
291 DESCRIPTION:=Kernel module for Soekris Net48xx LEDs
292 DEFAULT:=y if LINUX_2_6_X86_Soekris
293 DEPENDS:=@LINUX_2_6_X86_Soekris
294 SUBMENU:=$(EMENU)
295 KCONFIG:=$(CONFIG_LEDS_NET48XX)
296 FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.$(LINUX_KMOD_SUFFIX)
297 AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
298 endef
299 $(eval $(call KernelPackage,leds-net48xx))
300
301 define KernelPackage/nsc-gpio
302 TITLE:=Natsemi GPIO support
303 DESCRIPTION:=Kernel module for Natsemi GPIO
304 DEFAULT:=y if LINUX_2_6_X86_Soekris
305 DEPENDS:=@LINUX_2_6_X86_Soekris
306 SUBMENU:=$(EMENU)
307 KCONFIG:=$(CONFIG_NSC_GPIO)
308 FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.$(LINUX_KMOD_SUFFIX)
309 AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
310 endef
311 $(eval $(call KernelPackage,nsc-gpio))
312
313 define KernelPackage/scx200-gpio
314 TITLE:=Natsemi SCX200 GPIO support
315 DESCRIPTION:=Kernel module for SCX200 GPIO
316 DEFAULT:=y if LINUX_2_6_X86_Soekris
317 DEPENDS:=kmod-nsc-gpio @LINUX_2_6_X86_Soekris
318 SUBMENU:=$(EMENU)
319 KCONFIG:=$(CONFIG_SCx200_GPIO)
320 FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.$(LINUX_KMOD_SUFFIX)
321 AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
322 endef
323 $(eval $(call KernelPackage,scx200-gpio))
324
325 define KernelPackage/scx200-wdt
326 TITLE:=Natsemi SCX200 Watchdog support
327 DESCRIPTION:=Kernel module for SCX200 Watchdog
328 DEFAULT:=y if LINUX_2_6_X86_Soekris
329 DEPENDS:=@LINUX_2_6_X86_Soekris
330 SUBMENU:=$(EMENU)
331 KCONFIG:=$(CONFIG_SC1200_WDT)
332 FILES:=$(LINUX_DIR)/drivers/char/watchdog/scx200_wdt.$(LINUX_KMOD_SUFFIX)
333 AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
334 endef
335 $(eval $(call KernelPackage,scx200-wdt))
336
337 define KernelPackage/hwmon
338 TITLE:=Hardware monitoring support
339 DESCRIPTION:=Kernel modules for hardware monitoring
340 DEFAULT:=y if LINUX_2_6_X86_Soekris
341 SUBMENU:=$(EMENU)
342 KCONFIG:=$(CONFIG_HWMON_VID)
343 FILES:= \
344 $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX) \
345 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX)
346 AUTOLOAD:=$(call AutoLoad,40,hwmon hwmon-vid)
347 endef
348 $(eval $(call KernelPackage,hwmon))
349
350 define KernelPackage/hwmon-pc87360
351 TITLE:=PC87360 monitoring support
352 DESCRIPTION:=Kernel modules for PC87360 chips
353 DEFAULT:=y if LINUX_2_6_X86_Soekris
354 DEPENDS:=kmod-hwmon
355 SUBMENU:=$(EMENU)
356 KCONFIG:=$(CONFIG_SENSORS_PC87360)
357 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
358 AUTOLOAD:=$(call AutoLoad,50,pc87360)
359 endef
360 $(eval $(call KernelPackage,hwmon-pc87360))
361
362 define KernelPackage/input-core
363 TITLE:=Input device core
364 DESCRIPTION:=Kernel modules for support of input device
365 SUBMENU:=$(EMENU)
366 KCONFIG:=$(CONFIG_INPUT)
367 FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX)
368 AUTOLOAD:=$(call AutoLoad,50,input-core)
369 endef
370 $(eval $(call KernelPackage,input-core))
371
372 define KernelPackage/input-evdev
373 TITLE:=Input even device
374 DESCRIPTION:=Kernel modules for support of input device events
375 SUBMENU:=$(EMENU)
376 KCONFIG:=$(CONFIG_INPUT_EVDEV)
377 FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX)
378 AUTOLOAD:=$(call AutoLoad,60,evdev)
379 endef
380 $(eval $(call KernelPackage,input-evdev))
381