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