fix a kconfig usage bug
[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/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 DEPENDS:=@LINUX_2_4
64 KCONFIG:=CONFIG_BLK_DEV_PDC202XX_OLD
65 FILES:=$(LINUX_DIR)/drivers/ide/pci/pdc202xx_old.$(LINUX_KMOD_SUFFIX)
66 AUTOLOAD:=$(call AutoLoad,30,pdc202xx_old)
67 endef
68 $(eval $(call KernelPackage,ide-pdc202xx))
69
70 define KernelPackage/ide-aec62xx
71 TITLE:=AEC62xx IDE driver
72 SUBMENU:=$(EMENU)
73 KCONFIG:=CONFIG_BLK_DEV_AEC62XX
74 FILES:=$(LINUX_DIR)/drivers/ide/pci/aec62xx.$(LINUX_KMOD_SUFFIX)
75 AUTOLOAD:=$(call AutoLoad,30,aec62xx)
76 endef
77 $(eval $(call KernelPackage,ide-aec62xx))
78
79 define KernelPackage/scsi-core
80 TITLE:=Kernel support for SCSI
81 SUBMENU:=$(EMENU)
82 KCONFIG:=CONFIG_SCSI CONFIG_BLK_DEV_SD
83 FILES:= \
84 $(LINUX_DIR)/drivers/scsi/scsi_mod.$(LINUX_KMOD_SUFFIX) \
85 $(LINUX_DIR)/drivers/scsi/sd_mod.$(LINUX_KMOD_SUFFIX)
86 endef
87 $(eval $(call KernelPackage,scsi-core))
88
89 define KernelPackage/lp
90 TITLE:=Parallel port and line printer support
91 DEPENDS:=@LINUX_2_4
92 KCONFIG:=CONFIG_PARPORT
93 FILES:= \
94 $(LINUX_DIR)/drivers/parport/parport.$(LINUX_KMOD_SUFFIX) \
95 $(LINUX_DIR)/drivers/char/lp.$(LINUX_KMOD_SUFFIX) \
96 $(LINUX_DIR)/drivers/char/ppdev.$(LINUX_KMOD_SUFFIX)
97 SUBMENU:=$(EMENU)
98 AUTOLOAD:=$(call AutoLoad,50, \
99 parport \
100 lp \
101 )
102 endef
103 $(eval $(call KernelPackage,lp))
104
105
106 define KernelPackage/soundcore
107 TITLE:=Sound support
108 DESCRIPTION:=Kernel modules for sound support
109 KCONFIG:=CONFIG_SOUND
110 SUBMENU:=$(EMENU)
111 endef
112
113 define KernelPackage/soundcore/2.4
114 FILES:=$(LINUX_DIR)/drivers/sound/soundcore.$(LINUX_KMOD_SUFFIX)
115 AUTOLOAD:=$(call AutoLoad,30,soundcore)
116 endef
117
118 define KernelPackage/soundcore/2.6
119 FILES:= \
120 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX) \
121 $(LINUX_DIR)/sound/core/*.$(LINUX_KMOD_SUFFIX) \
122 $(if $(CONFIG_SND_MIXER_OSS)$(CONFIG_SND_PCM_OSS),$(LINUX_DIR)/sound/core/oss/*.$(LINUX_KMOD_SUFFIX))
123 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))
124 endef
125
126 define KernelPackage/soundcore/uml-2.6
127 FILES:= \
128 $(LINUX_DIR)/arch/um/drivers/hostaudio.$(LINUX_KMOD_SUFFIX) \
129 $(LINUX_DIR)/sound/soundcore.$(LINUX_KMOD_SUFFIX)
130 AUTOLOAD:=$(call AutoLoad,30,soundcore hostaudio)
131 endef
132
133 $(eval $(call KernelPackage,soundcore))
134
135
136 define KernelPackage/loop
137 TITLE:=Loopback device support
138 DESCRIPTION:=Kernel module for loopback device support
139 KCONFIG:=CONFIG_BLK_DEV_LOOP
140 SUBMENU:=$(EMENU)
141 AUTOLOAD:=$(call AutoLoad,30,loop)
142 FILES:=$(LINUX_DIR)/drivers/block/loop.$(LINUX_KMOD_SUFFIX)
143 endef
144 $(eval $(call KernelPackage,loop))
145
146 define KernelPackage/nbd
147 TITLE:=Network block device support
148 DESCRIPTION:=Kernel module for network block device support
149 KCONFIG:=CONFIG_BLK_DEV_NBD
150 SUBMENU:=$(EMENU)
151 AUTOLOAD:=$(call AutoLoad,30,nbd)
152 FILES:=$(LINUX_DIR)/drivers/block/nbd.$(LINUX_KMOD_SUFFIX)
153 endef
154 $(eval $(call KernelPackage,nbd))
155
156 define KernelPackage/capi
157 TITLE:=CAPI Support
158 DESCRIPTION:=Kernel module for basic CAPI support
159 KCONFIG:=CONFIG_ISDN CONFIG_ISDN_CAPI CONFIG_ISDN_CAPI_CAPI20
160 SUBMENU:=$(EMENU)
161 AUTOLOAD:=$(call AutoLoad,30,kernelcapi capi)
162 FILES:=$(LINUX_DIR)/drivers/isdn/capi/*capi.$(LINUX_KMOD_SUFFIX)
163 endef
164 $(eval $(call KernelPackage,capi))
165
166 define KernelPackage/pcmcia-core
167 TITLE:=PCMCIA/CardBus support
168 DESCRIPTION:=Kernel support for PCMCIA/CardBus controllers
169 SUBMENU:=$(EMENU)
170 KCONFIG:=CONFIG_PCMCIA CONFIG_PCCARD
171 endef
172
173 define KernelPackage/pcmcia-core/2.4
174 FILES:= \
175 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
176 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX) \
177 $(LINUX_DIR)/drivers/pcmcia/ds.$(LINUX_KMOD_SUFFIX)
178 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core yenta_socket ds)
179 endef
180
181 define KernelPackage/pcmcia-core/2.6
182 FILES:= \
183 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.$(LINUX_KMOD_SUFFIX) \
184 $(if $(CONFIG_PCMCIA),$(LINUX_DIR)/drivers/pcmcia/pcmcia.$(LINUX_KMOD_SUFFIX)) \
185 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.$(LINUX_KMOD_SUFFIX) \
186 $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.$(LINUX_KMOD_SUFFIX)
187 AUTOLOAD:=$(call AutoLoad,40,pcmcia_core pcmcia rsrc_nonstatic yenta_socket)
188 endef
189 $(eval $(call KernelPackage,pcmcia-core))
190
191
192 define KernelPackage/pcmcia-serial
193 TITLE:=Serial devices support
194 DESCRIPTION:=Kernel support for PCMCIA/CardBus serial devices
195 DEPENDS:=kmod-pcmcia-core
196 SUBMENU:=$(EMENU)
197 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
198 KCONFIG:=CONFIG_PCMCIA_SERIAL_CS CONFIG_SERIAL_8250_CS
199 endef
200
201 define KernelPackage/pcmcia-serial/2.4
202 FILES:=$(LINUX_DIR)/drivers/char/pcmcia/serial_cs.$(LINUX_KMOD_SUFFIX)
203 endef
204
205 define KernelPackage/pcmcia-serial/2.6
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 KCONFIG:=CONFIG_BLUEZ CONFIG_BT
217 endef
218
219 define KernelPackage/bluetooth/2.4
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 FILES:= \
233 $(LINUX_DIR)/net/bluetooth/bluetooth.$(LINUX_KMOD_SUFFIX) \
234 $(LINUX_DIR)/net/bluetooth/l2cap.$(LINUX_KMOD_SUFFIX) \
235 $(LINUX_DIR)/net/bluetooth/sco.$(LINUX_KMOD_SUFFIX) \
236 $(LINUX_DIR)/net/bluetooth/rfcomm/rfcomm.$(LINUX_KMOD_SUFFIX) \
237 $(LINUX_DIR)/net/bluetooth/bnep/bnep.$(LINUX_KMOD_SUFFIX) \
238 $(LINUX_DIR)/drivers/bluetooth/hci_uart.$(LINUX_KMOD_SUFFIX) \
239 $(LINUX_DIR)/drivers/bluetooth/hci_usb.$(LINUX_KMOD_SUFFIX)
240 AUTOLOAD:=$(call AutoLoad,90,bluetooth l2cap sco rfcomm bnep hci_uart hci_usb)
241 endef
242 $(eval $(call KernelPackage,bluetooth))
243
244 define KernelPackage/mmc
245 TITLE:=MMC/SD Card Support
246 DEPENDS:=@LINUX_2_6_AT91
247 DESCRIPTION:=Kernel support for MMC/SD cards
248 SUBMENU:=$(EMENU)
249 KCONFIG:=CONFIG_MMC
250 FILES:= \
251 $(LINUX_DIR)/drivers/mmc/mmc_core.$(LINUX_KMOD_SUFFIX) \
252 $(LINUX_DIR)/drivers/mmc/mmc_block.$(LINUX_KMOD_SUFFIX) \
253 $(LINUX_DIR)/drivers/mmc/at91_mci.$(LINUX_KMOD_SUFFIX)
254 AUTOLOAD:=$(call AutoLoad,90,mmc_core mmc_block at91_mci)
255 endef
256 $(eval $(call KernelPackage,mmc))
257
258 define KernelPackage/softdog
259 TITLE:=Software watchdog driver
260 DESCRIPTION:=Software watchdog driver
261 SUBMENU:=$(EMENU)
262 KCONFIG:=CONFIG_SOFT_WATCHDOG
263 FILES:=$(LINUX_DIR)/drivers/char/softdog.$(LINUX_KMOD_SUFFIX)
264 AUTOLOAD:=$(call AutoLoad,50,softdog)
265 endef
266
267 define KernelPackage/softdog/2.4
268 FILES:=$(LINUX_DIR)/drivers/char/softdog.o
269 endef
270
271 define KernelPackage/softdog/2.6
272 FILES:=$(LINUX_DIR)/drivers/char/watchdog/softdog.ko
273 endef
274 $(eval $(call KernelPackage,softdog))
275
276
277 define KernelPackage/videodev
278 TITLE=Video4Linux support
279 DESCRIPTION:=Kernel modules for Video4Linux support
280 DEPENDS:=@VIDEO_SUPPORT
281 SUBMENU:=$(EMENU)
282 KCONFIG:=CONFIG_VIDEO_DEV
283 FILES:=$(LINUX_DIR)/drivers/media/video/*.$(LINUX_KMOD_SUFFIX)
284 endef
285
286 define KernelPackage/videodev/2.4
287 AUTOLOAD:=$(call AutoLoad,60,videodev)
288 endef
289
290 define KernelPackage/videodev/2.6
291 AUTOLOAD:=$(call AutoLoad,60,v4l2-common v4l1-compat compat_ioctl32 videodev)
292 endef
293 $(eval $(call KernelPackage,videodev))
294
295 define KernelPackage/leds-net48xx
296 TITLE:=Soekris Net48xx LED support
297 DESCRIPTION:=Kernel module for Soekris Net48xx LEDs
298 DEPENDS:=@LINUX_2_6_X86
299 SUBMENU:=$(EMENU)
300 KCONFIG:=CONFIG_LEDS_NET48XX
301 FILES:=$(LINUX_DIR)/drivers/leds/leds-net48xx.$(LINUX_KMOD_SUFFIX)
302 AUTOLOAD:=$(call AutoLoad,50,leds-net48xx)
303 endef
304 $(eval $(call KernelPackage,leds-net48xx))
305
306 define KernelPackage/nsc-gpio
307 TITLE:=Natsemi GPIO support
308 DESCRIPTION:=Kernel module for Natsemi GPIO
309 DEPENDS:=@LINUX_2_6_X86
310 SUBMENU:=$(EMENU)
311 KCONFIG:=CONFIG_NSC_GPIO
312 FILES:=$(LINUX_DIR)/drivers/char/nsc_gpio.$(LINUX_KMOD_SUFFIX)
313 AUTOLOAD:=$(call AutoLoad,40,nsc_gpio)
314 endef
315 $(eval $(call KernelPackage,nsc-gpio))
316
317 define KernelPackage/scx200-gpio
318 TITLE:=Natsemi SCX200 GPIO support
319 DESCRIPTION:=Kernel module for SCX200 GPIO
320 DEPENDS:=kmod-nsc-gpio @LINUX_2_6_X86
321 SUBMENU:=$(EMENU)
322 KCONFIG:=CONFIG_SCx200_GPIO
323 FILES:=$(LINUX_DIR)/drivers/char/scx200_gpio.$(LINUX_KMOD_SUFFIX)
324 AUTOLOAD:=$(call AutoLoad,50,scx200_gpio)
325 endef
326 $(eval $(call KernelPackage,scx200-gpio))
327
328 define KernelPackage/scx200-wdt
329 TITLE:=Natsemi SCX200 Watchdog support
330 DESCRIPTION:=Kernel module for SCX200 Watchdog
331 DEPENDS:=@LINUX_2_6_X86
332 SUBMENU:=$(EMENU)
333 KCONFIG:=CONFIG_SC1200_WDT
334 FILES:=$(LINUX_DIR)/drivers/char/watchdog/scx200_wdt.$(LINUX_KMOD_SUFFIX)
335 AUTOLOAD:=$(call AutoLoad,50,scx200_wdt)
336 endef
337 $(eval $(call KernelPackage,scx200-wdt))
338
339 define KernelPackage/hwmon
340 TITLE:=Hardware monitoring support
341 DESCRIPTION:=Kernel modules for hardware monitoring
342 SUBMENU:=$(EMENU)
343 KCONFIG:=CONFIG_HWMON_VID
344 FILES:= \
345 $(LINUX_DIR)/drivers/hwmon/hwmon.$(LINUX_KMOD_SUFFIX) \
346 $(LINUX_DIR)/drivers/hwmon/hwmon-vid.$(LINUX_KMOD_SUFFIX)
347 AUTOLOAD:=$(call AutoLoad,40,hwmon hwmon-vid)
348 endef
349 $(eval $(call KernelPackage,hwmon))
350
351 define KernelPackage/hwmon-pc87360
352 TITLE:=PC87360 monitoring support
353 DESCRIPTION:=Kernel modules for PC87360 chips
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 DEPENDS:=+kmod-input-core
376 SUBMENU:=$(EMENU)
377 KCONFIG:=CONFIG_INPUT_EVDEV
378 FILES:=$(LINUX_DIR)/drivers/input/evdev.$(LINUX_KMOD_SUFFIX)
379 AUTOLOAD:=$(call AutoLoad,60,evdev)
380 endef
381 $(eval $(call KernelPackage,input-evdev))
382
This page took 0.066526 seconds and 5 git commands to generate.