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