51668facf075e2d0af928ebfcc842fe6e14cff24
[openwrt/openwrt.git] / package / kernel / linux / modules / pcmcia.mk
1 #
2 # Copyright (C) 2006-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 PCMCIA_MENU:=PCMCIA support
9
10 define KernelPackage/pcmcia-core
11 SUBMENU:=$(PCMCIA_MENU)
12 TITLE:=PCMCIA/CardBus support
13 DEPENDS:=@PCMCIA_SUPPORT
14 KCONFIG:= \
15 CONFIG_PCMCIA \
16 CONFIG_CARDBUS \
17 CONFIG_PCCARD \
18 PCMCIA_DEBUG=n
19 FILES:= \
20 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
21 $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
22 AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
23 endef
24
25 define KernelPackage/pcmcia-core/description
26 Kernel support for PCMCIA/CardBus controllers
27 endef
28
29 $(eval $(call KernelPackage,pcmcia-core))
30
31 define KernelPackage/pcmcia-rsrc
32 SUBMENU:=$(PCMCIA_MENU)
33 TITLE:=PCMCIA resource support
34 DEPENDS:=kmod-pcmcia-core
35 KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
36 FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
37 AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
38 endef
39
40 define KernelPackage/pcmcia-rsrc/description
41 Kernel support for PCMCIA resource allocation
42 endef
43
44 $(eval $(call KernelPackage,pcmcia-rsrc))
45
46
47 define KernelPackage/pcmcia-yenta
48 SUBMENU:=$(PCMCIA_MENU)
49 TITLE:=yenta socket driver
50 DEPENDS:=kmod-pcmcia-rsrc
51 KCONFIG:=CONFIG_YENTA
52 FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
53 AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
54 endef
55
56 $(eval $(call KernelPackage,pcmcia-yenta))
57
58
59 define KernelPackage/pcmcia-serial
60 SUBMENU:=$(PCMCIA_MENU)
61 TITLE:=Serial devices support
62 DEPENDS:=kmod-pcmcia-core +kmod-serial-8250
63 KCONFIG:= \
64 CONFIG_PCMCIA_SERIAL_CS \
65 CONFIG_SERIAL_8250_CS
66 FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
67 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
68 endef
69
70 define KernelPackage/pcmcia-serial/description
71 Kernel support for PCMCIA/CardBus serial devices
72 endef
73
74 $(eval $(call KernelPackage,pcmcia-serial))