2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
11 define KernelPackage
/crypto
12 TITLE
:=CryptoAPI modules
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
)
42 $(eval
$(call KernelPackage
,crypto
))
44 define KernelPackage
/ide-core
45 TITLE
:=Kernel support for IDE
47 Useful for usb mass storage devices
(e.g. on WL-HDD
)\\\
53 KCONFIG
:=$(CONFIG_IDE
)
54 FILES
:=$(LINUX_DIR
)/drivers
/ide
/*.
$(LINUX_KMOD_SUFFIX
)
56 AUTOLOAD
:=$(call AutoLoad
,20,ide-core
) $(call AutoLoad
,90,ide-generic ide-detect ide-disk
)
58 $(eval
$(call KernelPackage
,ide-core
))
60 define KernelPackage
/ide-pdc202xx
61 TITLE
:=PDC202xx IDE driver
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
)
67 $(eval
$(call KernelPackage
,ide-pdc202xx
))
69 define KernelPackage
/ide-aec62xx
70 TITLE
:=AEC62xx IDE driver
72 KCONFIG
:=$(CONFIG_BLK_DEV_AEC62XX
)
73 FILES
:=$(LINUX_DIR
)/drivers
/ide
/pci
/aec62xx.
$(LINUX_KMOD_SUFFIX
)
74 AUTOLOAD
:=$(call AutoLoad
,30,aec62xx
)
76 $(eval
$(call KernelPackage
,ide-aec62xx
))
78 define KernelPackage
/scsi-core
79 TITLE
:=Kernel support for SCSI
81 KCONFIG
:=$(CONFIG_BLK_DEV_SD
)
83 $(LINUX_DIR
)/drivers
/scsi
/scsi_mod.
$(LINUX_KMOD_SUFFIX
) \
84 $(LINUX_DIR
)/drivers
/scsi
/sd_mod.
$(LINUX_KMOD_SUFFIX
)
86 $(eval
$(call KernelPackage
,scsi-core
))
88 define KernelPackage
/lp
89 TITLE
:=Parallel port and line printer support
90 KCONFIG
:=$(CONFIG_PARPORT
)
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
)
96 AUTOLOAD
:=$(call AutoLoad
,50, \
101 $(eval
$(call KernelPackage
,lp
))
104 define KernelPackage
/soundcore
106 DESCRIPTION
:=Kernel modules for sound support
107 KCONFIG
:=$(CONFIG_SOUND
)
111 define KernelPackage
/soundcore
/2.4
112 FILES
:=$(LINUX_DIR
)/drivers
/sound
/soundcore.
$(LINUX_KMOD_SUFFIX
)
113 AUTOLOAD
:=$(call AutoLoad
,30,soundcore
)
116 define KernelPackage
/soundcore
/2.6
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
)
124 define KernelPackage
/soundcore
/uml-2.6
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
)
131 $(eval
$(call KernelPackage
,soundcore
))
134 define KernelPackage
/loop
135 TITLE
:=Loopback device support
136 DESCRIPTION
:=Kernel module for loopback device support
137 KCONFIG
:=$(CONFIG_BLK_DEV_LOOP
)
139 AUTOLOAD
:=$(call AutoLoad
,30,loop
)
140 FILES
:=$(LINUX_DIR
)/drivers
/block
/loop.
$(LINUX_KMOD_SUFFIX
)
142 $(eval
$(call KernelPackage
,loop
))
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
)
149 AUTOLOAD
:=$(call AutoLoad
,30,nbd
)
150 FILES
:=$(LINUX_DIR
)/drivers
/block
/nbd.
$(LINUX_KMOD_SUFFIX
)
152 $(eval
$(call KernelPackage
,nbd
))
154 define KernelPackage
/capi
156 DESCRIPTION
:=Kernel module for basic CAPI support
157 KCONFIG
:=$(CONFIG_ISDN
) $(CONFIG_ISDN_CAPI
) $(CONFIG_ISDN_CAPI_CAPI20
)
159 AUTOLOAD
:=$(call AutoLoad
,30,kernelcapi capi
)
160 FILES
:=$(LINUX_DIR
)/drivers
/isdn
/capi
/*capi.
$(LINUX_KMOD_SUFFIX
)
162 $(eval
$(call KernelPackage
,capi
))
164 define KernelPackage
/pcmcia-core
165 TITLE
:=PCMCIA
/CardBus support
166 DESCRIPTION
:=Kernel support for PCMCIA
/CardBus controllers
170 define KernelPackage
/pcmcia-core
/2.4
171 KCONFIG
:=$(CONFIG_PCMCIA
)
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
)
179 define KernelPackage
/pcmcia-core
/2.6
180 KCONFIG
:=$(CONFIG_PCCARD
)
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
)
188 $(eval
$(call KernelPackage
,pcmcia-core
))
191 define KernelPackage
/pcmcia-serial
192 TITLE
:=Serial devices support
193 DESCRIPTION
:=Kernel support for PCMCIA
/CardBus serial devices
194 DEPENDS
:=kmod-pcmcia-core
196 AUTOLOAD
:=$(call AutoLoad
,45,serial_cs
)
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
)
204 define KernelPackage
/pcmcia-serial
/2.6
205 KCONFIG
:=$(CONFIG_SERIAL_8250_CS
)
206 FILES
:=$(LINUX_DIR
)/drivers
/serial
/serial_cs.
$(LINUX_KMOD_SUFFIX
)
208 $(eval
$(call KernelPackage
,pcmcia-serial
))
211 define KernelPackage
/bluetooth
212 TITLE
:=Bluetooth support
213 DEPENDS
:=@USB_SUPPORT
214 DESCRIPTION
:=Kernel support for Bluetooth devices
218 define KernelPackage
/bluetooth
/2.4
219 KCONFIG
:=$(CONFIG_BLUEZ
)
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
)
231 define KernelPackage
/bluetooth
/2.6
232 KCONFIG
:=$(CONFIG_BT
)
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
)
243 $(eval
$(call KernelPackage
,bluetooth
))
245 define KernelPackage
/mmc
246 TITLE
:=MMC
/SD Card Support
247 DEPENDS
:=@LINUX_2_6_AT91
248 DESCRIPTION
:=Kernel support for MMC
/SD cards
252 define KernelPackage
/mmc
/2.6
253 KCONFIG
:=$(CONFIG_MMC
)
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
)
260 $(eval
$(call KernelPackage
,mmc
))
262 define KernelPackage
/softdog
263 TITLE
:=Software watchdog driver
264 DESCRIPTION
:=Software watchdog driver
266 KCONFIG
:=$(CONFIG_SOFT_WATCHDOG
)
267 FILES
:=$(LINUX_DIR
)/drivers
/char
/softdog.
$(LINUX_KMOD_SUFFIX
)
268 AUTOLOAD
:=$(call AutoLoad
,50,softdog
)
271 define KernelPackage
/softdog
/2.4
272 FILES
:=$(LINUX_DIR
)/drivers
/char
/softdog.o
275 define KernelPackage
/softdog
/2.6
276 FILES
:=$(LINUX_DIR
)/drivers
/char
/watchdog
/softdog.ko
279 $(eval
$(call KernelPackage
,softdog
))
282 define KernelPackage
/videodev
283 TITLE
=Video4Linux support
284 DESCRIPTION
:=Kernel modules for Video4Linux support
285 DEPENDS
:=@VIDEO_SUPPORT
287 KCONFIG
:=$(CONFIG_VIDEO_DEV
)
288 FILES
:=$(LINUX_DIR
)/drivers
/media
/video
/*.
$(LINUX_KMOD_SUFFIX
)
291 define KernelPackage
/videodev
/2.4
292 AUTOLOAD
:=$(call AutoLoad
,60,videodev
)
295 define KernelPackage
/videodev
/2.6
296 AUTOLOAD
:=$(call AutoLoad
,60,v4l2-common v4l1-compat compat_ioctl32 videodev
)
298 $(eval
$(call KernelPackage
,videodev
))
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
306 KCONFIG
:=$(CONFIG_LEDS_NET48XX
)
307 FILES
:=$(LINUX_DIR
)/drivers
/leds
/leds-net48xx.
$(LINUX_KMOD_SUFFIX
)
308 AUTOLOAD
:=$(call AutoLoad
,50,leds-net48xx
)
310 $(eval
$(call KernelPackage
,leds-net48xx
))
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
318 KCONFIG
:=$(CONFIG_NSC_GPIO
)
319 FILES
:=$(LINUX_DIR
)/drivers
/char
/nsc_gpio.
$(LINUX_KMOD_SUFFIX
)
320 AUTOLOAD
:=$(call AutoLoad
,40,nsc_gpio
)
322 $(eval
$(call KernelPackage
,nsc-gpio
))
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
330 KCONFIG
:=$(CONFIG_SCx200_GPIO
)
331 FILES
:=$(LINUX_DIR
)/drivers
/char
/scx200_gpio.
$(LINUX_KMOD_SUFFIX
)
332 AUTOLOAD
:=$(call AutoLoad
,50,scx200_gpio
)
334 $(eval
$(call KernelPackage
,scx200-gpio
))
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
342 KCONFIG
:=$(CONFIG_SC1200_WDT
)
343 FILES
:=$(LINUX_DIR
)/drivers
/char
/watchdog
/scx200_wdt.
$(LINUX_KMOD_SUFFIX
)
344 AUTOLOAD
:=$(call AutoLoad
,50,scx200_wdt
)
346 $(eval
$(call KernelPackage
,scx200-wdt
))
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
353 KCONFIG
:=$(CONFIG_HWMON_VID
)
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
)
359 $(eval
$(call KernelPackage
,hwmon
))
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
367 KCONFIG
:=$(CONFIG_SENSORS_PC87360
)
368 FILES
:=$(LINUX_DIR
)/drivers
/hwmon
/pc87360.
$(LINUX_KMOD_SUFFIX
)
369 AUTOLOAD
:=$(call AutoLoad
,50,pc87360
)
371 $(eval
$(call KernelPackage
,hwmon-pc87360
))
373 define KernelPackage
/input-core
374 TITLE
:=Input device core
375 DESCRIPTION
:=Kernel modules for support of input device
377 KCONFIG
:=$(CONFIG_INPUT
)
378 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-core.
$(LINUX_KMOD_SUFFIX
)
379 AUTOLOAD
:=$(call AutoLoad
,50,input-core
)
381 $(eval
$(call KernelPackage
,input-core
))
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
388 KCONFIG
:=$(CONFIG_INPUT_EVDEV
)
389 FILES
:=$(LINUX_DIR
)/drivers
/input
/evdev.
$(LINUX_KMOD_SUFFIX
)
390 AUTOLOAD
:=$(call AutoLoad
,60,evdev
)
392 $(eval
$(call KernelPackage
,input-evdev
))