11d1aa8bf055a7b032fd5da68968255b9b865bd0
[openwrt/staging/yousong.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/crc-itu-t
12 SUBMENU:=$(EMENU)
13 TITLE:=CRC ITU-T V.41 support
14 DESCRIPTION:=Kernel module for CRC ITU-T V.41 support
15 KCONFIG:=CONFIG_CRC_ITU_T
16 FILES:=$(LINUX_DIR)/lib/crc-itu-t.$(LINUX_KMOD_SUFFIX)
17 AUTOLOAD:=$(call AutoLoad,20,crc-itu-t)
18 endef
19
20 $(eval $(call KernelPackage,crc-itu-t))
21
22
23 define KernelPackage/crypto
24 SUBMENU:=$(EMENU)
25 TITLE:=CryptoAPI modules
26 KCONFIG:= \
27 CONFIG_CRYPTO_HMAC=m \
28 CONFIG_CRYPTO_NULL=m \
29 CONFIG_CRYPTO_MD4=m \
30 CONFIG_CRYPTO_MD5=m \
31 CONFIG_CRYPTO_SHA1=m \
32 CONFIG_CRYPTO_SHA256=m \
33 CONFIG_CRYPTO_SHA512=m \
34 CONFIG_CRYPTO_WP512=m \
35 CONFIG_CRYPTO_TGR192=m \
36 CONFIG_CRYPTO_DES=m \
37 CONFIG_CRYPTO_BLOWFISH=m \
38 CONFIG_CRYPTO_TWOFISH=m \
39 CONFIG_CRYPTO_SERPENT=m \
40 CONFIG_CRYPTO_AES=m \
41 CONFIG_CRYPTO_CAST5=m \
42 CONFIG_CRYPTO_CAST6=m \
43 CONFIG_CRYPTO_TEA=m \
44 CONFIG_CRYPTO_ARC4=m \
45 CONFIG_CRYPTO_KHAZAD=m \
46 CONFIG_CRYPTO_ANUBIS=m \
47 CONFIG_CRYPTO_DEFLATE=m \
48 CONFIG_CRYPTO_MICHAEL_MIC=m \
49 CONFIG_CRYPTO_CRC32C=m \
50 CONFIG_CRYPTO_ECB=m \
51 CONFIG_CRYPTO_BLKCIPHER=m
52 FILES:=$(LINUX_DIR)/crypto/*.$(LINUX_KMOD_SUFFIX)
53 endef
54
55 $(eval $(call KernelPackage,crypto))
56
57
58 define KernelPackage/eeprom-93cx6
59 SUBMENU:=$(EMENU)
60 TITLE:=EEPROM 93CX6 support
61 DESCRIPTION:=Kernel module for EEPROM 93CX6 support
62 DEPENDS:=@LINUX_2_6
63 KCONFIG:=CONFIG_EEPROM_93CX6
64 FILES:=$(LINUX_DIR)/drivers/misc/eeprom_93cx6.$(LINUX_KMOD_SUFFIX)
65 AUTOLOAD:=$(call AutoLoad,20,eeprom_93cx6)
66 endef
67
68 $(eval $(call KernelPackage,eeprom-93cx6))
69
70
71 define KernelPackage/lp
72 SUBMENU:=$(EMENU)
73 TITLE:=Parallel port and line printer support
74 DEPENDS:=@LINUX_2_4
75 KCONFIG:= \
76 CONFIG_PARPORT \
77 CONFIG_PRINTER \
78 CONFIG_PPDEV
79 FILES:= \
80 $(LINUX_DIR)/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \
81 $(LINUX_DIR)/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \
82 $(LINUX_DIR)/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX)
83 AUTOLOAD:=$(call AutoLoad,50,parport lp)
84 endef
85
86 $(eval $(call KernelPackage,lp))
87
88
89 define KernelPackage/soundcore
90 SUBMENU:=$(EMENU)
91 TITLE:=Sound support
92 KCONFIG:=CONFIG_SOUND
93 endef
94
95 define KernelPackage/soundcore/2.4
96 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
97 AUTOLOAD:=$(call AutoLoad,30,soundcore)
98 endef
99
100 define KernelPackage/soundcore/2.6
101 KCONFIG+= \
102 CONFIG_SND \
103 CONFIG_SND_HWDEP \
104 CONFIG_SND_RAWMIDI \
105 CONFIG_SND_TIMER \
106 CONFIG_SND_PCM
107 FILES:= \
108 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
109 $(LINUX_DIR)/sound/core/snd.$(LINUX_KMOD_SUFFIX) \
110 $(LINUX_DIR)/sound/core/snd-page-alloc.$(LINUX_KMOD_SUFFIX) \
111 $(LINUX_DIR)/sound/core/snd-hwdep.$(LINUX_KMOD_SUFFIX) \
112 $(LINUX_DIR)/sound/core/snd-rawmidi.$(LINUX_KMOD_SUFFIX) \
113 $(LINUX_DIR)/sound/core/snd-timer.$(LINUX_KMOD_SUFFIX) \
114 $(LINUX_DIR)/sound/core/snd-pcm.$(LINUX_KMOD_SUFFIX) \
115 $(if $(CONFIG_SND_MIXER_OSS),$(LINUX_DIR)/sound/core/oss/snd-mixer-oss.$(LINUX_KMOD_SUFFIX)) \
116 $(if $(CONFIG_SND_PCM_OSS),$(LINUX_DIR)/sound/core/oss/snd-pcm-oss.$(LINUX_KMOD_SUFFIX))
117 AUTOLOAD:=$(call AutoLoad,30, \
118 soundcore \
119 snd \
120 snd-page-alloc \
121 snd-hwdep \
122 snd-rawmidi \
123 snd-timer \
124 snd-pcm \
125 $(if $(CONFIG_SND_MIXER_OSS),snd-mixer-oss) \
126 $(if $(CONFIG_SND_PCM_OSS),snd-pcm-oss) \
127 )
128 endef
129
130 define KernelPackage/soundcore/uml-2.6
131 KCONFIG+= \
132 CONFIG_HOSTAUDIO
133 FILES:= \
134 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
135 $(LINUX_DIR)/arch/um/drivers/hostaudio.$(LINUX_KMOD_SUFFIX)
136 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
137 endef
138
139 define KernelPackage/soundcore/description
140 Kernel modules for sound support
141 endef
142
143 $(eval $(call KernelPackage,soundcore))
144
145
146 define KernelPackage/loop
147 SUBMENU:=$(EMENU)
148 TITLE:=Loopback device support
149 KCONFIG:=CONFIG_BLK_DEV_LOOP
150 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
151 AUTOLOAD:=$(call AutoLoad,30,loop)
152 endef
153
154 define KernelPackage/loop/description
155 Kernel module for loopback device support
156 endef
157
158 $(eval $(call KernelPackage,loop))
159
160
161 define KernelPackage/nbd
162 SUBMENU:=$(EMENU)
163 TITLE:=Network block device support
164 KCONFIG:=CONFIG_BLK_DEV_NBD
165 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
166 AUTOLOAD:=$(call AutoLoad,30,nbd)
167 endef
168
169 define KernelPackage/nbd/description
170 Kernel module for network block device support
171 endef
172
173 $(eval $(call KernelPackage,nbd))
174
175
176 define KernelPackage/capi
177 SUBMENU:=$(EMENU)
178 TITLE:=CAPI Support
179 DEPENDS:=@LINUX_2_6
180 KCONFIG:= \
181 CONFIG_ISDN \
182 CONFIG_ISDN_CAPI \
183 CONFIG_ISDN_CAPI_CAPI20
184 FILES:= \
185 $(LINUX_DIR)/drivers/isdn/capi/kernelcapi.$(LINUX_KMOD_SUFFIX) \
186 $(LINUX_DIR)/drivers/isdn/capi/capi.$(LINUX_KMOD_SUFFIX)
187 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
188 endef
189
190 define KernelPackage/capi/description
191 Kernel module for basic CAPI support
192 endef
193
194 $(eval $(call KernelPackage,capi))
195
196
197 define KernelPackage/pcmcia-core
198 SUBMENU:=$(EMENU)
199 TITLE:=PCMCIA/CardBus support
200 DEPENDS:=@PCMCIA_SUPPORT
201 endef
202
203 define KernelPackage/pcmcia-core/2.4
204 KCONFIG:= \
205 CONFIG_PCMCIA \
206 CONFIG_CARDBUS
207 FILES:= \
208 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
209 $(LINUX_DIR)/drivers/pcmcia/ds.$(LINUX_KMOD_SUFFIX) \
210 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX)
211 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core yenta_socket ds)
212 endef
213
214 define KernelPackage/pcmcia-core/2.6
215 KCONFIG:= \
216 CONFIG_PCCARD \
217 CONFIG_PCMCIA \
218 CONFIG_YENTA \
219 CONFIG_PCCARD_NONSTATIC \
220 PCMCIA_DEBUG=n
221 FILES:= \
222 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
223 $(LINUX_DIR)/drivers/pcmcia/pcmcia.$(LINUX_KMOD_SUFFIX) \
224 $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.$(LINUX_KMOD_SUFFIX) \
225 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX)
226 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core pcmcia rsrc_nonstatic yenta_socket)
227 endef
228
229 define KernelPackage/pcmcia-core/au1000-2.6
230 FILES:= \
231 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
232 $(LINUX_DIR)/drivers/pcmcia/pcmcia.$(LINUX_KMOD_SUFFIX) \
233 $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.$(LINUX_KMOD_SUFFIX) \
234 $(LINUX_DIR)/drivers/pcmcia/au1x00_ss.$(LINUX_KMOD_SUFFIX)
235 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core pcmcia rsrc_nonstatic au1x00_ss)
236 endef
237
238 define KernelPackage/pcmcia-core/description
239 Kernel support for PCMCIA/CardBus controllers
240 endef
241
242 $(eval $(call KernelPackage,pcmcia-core))
243
244
245 define KernelPackage/pcmcia-serial
246 SUBMENU:=$(EMENU)
247 TITLE:=Serial devices support
248 DEPENDS:=kmod-pcmcia-core
249 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
250 endef
251
252 define KernelPackage/pcmcia-serial/2.4
253 KCONFIG:=CONFIG_PCMCIA_SERIAL_CS
254 FILES:=$(LINUX_DIR)/drivers/char/pcmcia/serial_cs.$(LINUX_KMOD_SUFFIX)
255 endef
256
257 define KernelPackage/pcmcia-serial/2.6
258 KCONFIG:=CONFIG_SERIAL_8250_CS
259 FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.$(LINUX_KMOD_SUFFIX)
260 endef
261
262 define KernelPackage/pcmcia-serial/description
263 Kernel support for PCMCIA/CardBus serial devices
264 endef
265
266 $(eval $(call KernelPackage,pcmcia-serial))
267
268
269 define KernelPackage/bluetooth
270 SUBMENU:=$(EMENU)
271 TITLE:=Bluetooth support
272 DEPENDS:=@USB_SUPPORT
273 endef
274
275 define KernelPackage/bluetooth/2.4
276 KCONFIG:= \
277 CONFIG_BLUEZ \
278 CONFIG_BLUEZ_L2CAP \
279 CONFIG_BLUEZ_SCO \
280 CONFIG_BLUEZ_RFCOMM \
281 CONFIG_BLUEZ_BNEP \
282 CONFIG_BLUEZ_HCIUART \
283 CONFIG_BLUEZ_HCIUSB
284 FILES:= \
285 $(LINUX_DIR)/net/bluetooth/bluez.$(LINUX_KMOD_SUFFIX) \
286 $(LINUX_DIR)/net/bluetooth/l2cap.$(LINUX_KMOD_SUFFIX) \
287 $(LINUX_DIR)/net/bluetooth/sco.$(LINUX_KMOD_SUFFIX) \
288 $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.$(LINUX_KMOD_SUFFIX) \
289 $(LINUX_DIR)/net/bluetooth/bnep/bnep.$(LINUX_KMOD_SUFFIX) \
290 $(LINUX_DIR)/drivers/bluetooth/hci_uart.$(LINUX_KMOD_SUFFIX) \
291 $(LINUX_DIR)/drivers/bluetooth/hci_usb.$(LINUX_KMOD_SUFFIX)
292 AUTOLOAD:=$(call AutoLoad,90,bluez l2cap sco rfcomm bnep hci_uart hci_usb)
293 endef
294
295 define KernelPackage/bluetooth/2.6
296 KCONFIG:= \
297 CONFIG_BT \
298 CONFIG_BT_L2CAP \
299 CONFIG_BT_SCO \
300 CONFIG_BT_RFCOMM \
301 CONFIG_BT_BNEP \
302 CONFIG_BT_HCIUSB \
303 CONFIG_BT_HCIUART
304 FILES:= \
305 $(LINUX_DIR)/net/bluetooth/bluetooth.$(LINUX_KMOD_SUFFIX) \
306 $(LINUX_DIR)/net/bluetooth/l2cap.$(LINUX_KMOD_SUFFIX) \
307 $(LINUX_DIR)/net/bluetooth/sco.$(LINUX_KMOD_SUFFIX) \
308 $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.$(LINUX_KMOD_SUFFIX) \
309 $(LINUX_DIR)/net/bluetooth/bnep/bnep.$(LINUX_KMOD_SUFFIX) \
310 $(LINUX_DIR)/drivers/bluetooth/hci_uart.$(LINUX_KMOD_SUFFIX) \
311 $(LINUX_DIR)/drivers/bluetooth/hci_usb.$(LINUX_KMOD_SUFFIX)
312 AUTOLOAD:=$(call AutoLoad,90,bluetooth l2cap sco rfcomm bnep hci_uart hci_usb)
313 endef
314
315 define KernelPackage/bluetooth/description
316 Kernel support for Bluetooth devices
317 endef
318
319 $(eval $(call KernelPackage,bluetooth))
320
321
322 define KernelPackage/mmc
323 SUBMENU:=$(EMENU)
324 TITLE:=MMC/SD Card Support
325 DEPENDS:=@LINUX_2_6_AT91
326 KCONFIG:= \
327 CONFIG_MMC \
328 CONFIG_MMC_BLOCK \
329 CONFIG_MMC_AT91
330 FILES:= \
331 $(LINUX_DIR)/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
332 $(LINUX_DIR)/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
333 $(LINUX_DIR)/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX)
334 AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
335 endef
336
337 define KernelPackage/mmc/description
338 Kernel support for MMC/SD cards
339 endef
340
341 $(eval $(call KernelPackage,mmc))
342
343
344 define KernelPackage/softdog
345 SUBMENU:=$(EMENU)
346 TITLE:=Software watchdog driver
347 KCONFIG:=CONFIG_SOFT_WATCHDOG
348 AUTOLOAD:=$(call AutoLoad,50,softdog)
349 endef
350
351 define KernelPackage/softdog/2.4
352 FILES:=$(LINUX_DIR)/drivers/char/softdog.o
353 endef
354
355 define KernelPackage/softdog/2.6
356 FILES:=$(LINUX_DIR)/drivers/char/watchdog/softdog.ko
357 endef
358
359 define KernelPackage/softdog/description
360 Software watchdog driver
361 endef
362
363 $(eval $(call KernelPackage,softdog))
364
365
366 define KernelPackage/videodev
367 SUBMENU:=$(EMENU)
368 TITLE=Video4Linux support
369 KCONFIG:=CONFIG_VIDEO_DEV
370 endef
371
372 define KernelPackage/videodev/2.4
373 FILES:=$(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
374 AUTOLOAD:=$(call AutoLoad,60,videodev)
375 endef
376
377 define KernelPackage/videodev/2.6
378 FILES:= \
379 $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \
380 $(if $(CONFIG_VIDEO_V4L1_COMPAT),$(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX)) \
381 $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \
382 $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX)
383 AUTOLOAD:=$(call AutoLoad,60, \
384 v4l2-common \
385 $(if $(CONFIG_VIDEO_V4L1_COMPAT),v4l1-compat) \
386 compat_ioctl32 \
387 videodev \
388 )
389 endef
390
391 define KernelPackage/videodev/description
392 Kernel modules for Video4Linux support
393 endef
394
395 $(eval $(call KernelPackage,videodev))
396
397
398 define KernelPackage/leds-net48xx
399 SUBMENU:=$(EMENU)
400 TITLE:=Soekris Net48xx LED support
401 DEPENDS:=@LINUX_2_6_X86
402 KCONFIG:=CONFIG_LEDS_NET48XX
403 FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.$(LINUX_KMOD_SUFFIX)
404 AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
405 endef
406
407 define KernelPackage/leds-net48xx/description
408 Kernel module for Soekris Net48xx LEDs
409 endef
410
411 $(eval $(call KernelPackage,leds-net48xx))
412
413
414 define KernelPackage/nsc-gpio
415 SUBMENU:=$(EMENU)
416 TITLE:=Natsemi GPIO support
417 DEPENDS:=@LINUX_2_6_X86
418 KCONFIG:=CONFIG_NSC_GPIO
419 FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.$(LINUX_KMOD_SUFFIX)
420 AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
421 endef
422
423 define KernelPackage/nsc-gpio/description
424 Kernel module for Natsemi GPIO
425 endef
426
427 $(eval $(call KernelPackage,nsc-gpio))
428
429
430 define KernelPackage/scx200-gpio
431 SUBMENU:=$(EMENU)
432 TITLE:=Natsemi SCX200 GPIO support
433 DEPENDS:=kmod-nsc-gpio @LINUX_2_6_X86
434 KCONFIG:=CONFIG_SCx200_GPIO
435 FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.$(LINUX_KMOD_SUFFIX)
436 AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
437 endef
438
439 define KernelPackage/scx200-gpio/description
440 Kernel module for SCX200 GPIO
441 endef
442
443 $(eval $(call KernelPackage,scx200-gpio))
444
445
446 define KernelPackage/scx200-wdt
447 SUBMENU:=$(EMENU)
448 TITLE:=Natsemi SCX200 Watchdog support
449 DEPENDS:=@LINUX_2_6_X86
450 KCONFIG:=CONFIG_SC1200_WDT
451 FILES:=$(LINUX_DIR)/drivers/char/watchdog/scx200_wdt.$(LINUX_KMOD_SUFFIX)
452 AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
453 endef
454
455 define KernelPackage/scx200-wdt/description
456 Kernel module for SCX200 Watchdog
457 endef
458
459 $(eval $(call KernelPackage,scx200-wdt))
460
461
462 define KernelPackage/hwmon
463 SUBMENU:=$(EMENU)
464 TITLE:=Hardware monitoring support
465 DEPENDS:=@LINUX_2_6
466 KCONFIG:= \
467 CONFIG_HWMON \
468 CONFIG_HWMON_VID \
469 CONFIG_HWMON_DEBUG_CHIP=n
470 FILES:= \
471 $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX) \
472 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX)
473 AUTOLOAD:=$(call AutoLoad,40,hwmon hwmon-vid)
474 endef
475
476 define KernelPackage/hwmon/description
477 Kernel modules for hardware monitoring
478 endef
479
480 $(eval $(call KernelPackage,hwmon))
481
482
483 define KernelPackage/hwmon-pc87360
484 SUBMENU:=$(EMENU)
485 TITLE:=PC87360 monitoring support
486 DEPENDS:=kmod-hwmon
487 KCONFIG:=CONFIG_SENSORS_PC87360
488 FILES:=$(LINUX_DIR)/drivers/hwmon/pc87360.$(LINUX_KMOD_SUFFIX)
489 AUTOLOAD:=$(call AutoLoad,50,pc87360)
490 endef
491
492 define KernelPackage/hwmon-pc87360/description
493 Kernel modules for PC87360 chips
494 endef
495
496 $(eval $(call KernelPackage,hwmon-pc87360))
497
498
499 define KernelPackage/input-core
500 SUBMENU:=$(EMENU)
501 TITLE:=Input device core
502 DEPENDS:=@LINUX_2_6
503 KCONFIG:=CONFIG_INPUT
504 FILES:=$(LINUX_DIR)/drivers/input/input-core.$(LINUX_KMOD_SUFFIX)
505 AUTOLOAD:=$(call AutoLoad,50,input-core)
506 endef
507
508 define KernelPackage/input-core/description
509 Kernel modules for support of input device
510 endef
511
512 $(eval $(call KernelPackage,input-core))
513
514
515 define KernelPackage/input-evdev
516 SUBMENU:=$(EMENU)
517 TITLE:=Input even device
518 DEPENDS:=+kmod-input-core
519 KCONFIG:=CONFIG_INPUT_EVDEV
520 FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX)
521 AUTOLOAD:=$(call AutoLoad,60,evdev)
522 endef
523
524 define KernelPackage/input-evdev/description
525 Kernel modules for support of input device events
526 endef
527
528 $(eval $(call KernelPackage,input-evdev))