kernel: enable CONFIG_PCMCIA_LOAD_CIS
[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_PCMCIA_LOAD_CIS=y \
17 CONFIG_CARDBUS \
18 CONFIG_PCCARD \
19 PCMCIA_DEBUG=n
20 FILES:= \
21 $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
22 $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
23 AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
24 endef
25
26 define KernelPackage/pcmcia-core/description
27 Kernel support for PCMCIA/CardBus controllers
28 endef
29
30 $(eval $(call KernelPackage,pcmcia-core))
31
32
33 define AddDepends/pcmcia
34 SUBMENU:=$(PCMCIA_MENU)
35 DEPENDS+=kmod-pcmcia-core $(1)
36 endef
37
38
39 define KernelPackage/pcmcia-rsrc
40 TITLE:=PCMCIA resource support
41 KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
42 FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
43 AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
44 $(call AddDepends/pcmcia)
45 endef
46
47 define KernelPackage/pcmcia-rsrc/description
48 Kernel support for PCMCIA resource allocation
49 endef
50
51 $(eval $(call KernelPackage,pcmcia-rsrc))
52
53
54 define KernelPackage/pcmcia-yenta
55 TITLE:=yenta socket driver
56 KCONFIG:=CONFIG_YENTA
57 FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
58 AUTOLOAD:=$(call AutoLoad,41,yenta_socket)
59 DEPENDS:=+kmod-pcmcia-rsrc
60 $(call AddDepends/pcmcia)
61 endef
62
63 $(eval $(call KernelPackage,pcmcia-yenta))
64
65
66 define KernelPackage/pcmcia-serial
67 TITLE:=Serial devices support
68 KCONFIG:= \
69 CONFIG_PCMCIA_SERIAL_CS \
70 CONFIG_SERIAL_8250_CS
71 FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
72 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
73 DEPENDS:=+kmod-serial-8250
74 $(call AddDepends/pcmcia)
75 endef
76
77 define KernelPackage/pcmcia-serial/description
78 Kernel support for PCMCIA/CardBus serial devices
79 endef
80
81 $(eval $(call KernelPackage,pcmcia-serial))