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