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