2 # Copyright (C) 2006-2010 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 PCMCIA_MENU
:=PCMCIA support
10 define KernelPackage
/pcmcia-core
11 SUBMENU
:=$(PCMCIA_MENU
)
12 TITLE
:=PCMCIA
/CardBus support
13 DEPENDS
:=@PCMCIA_SUPPORT
16 CONFIG_PCMCIA_LOAD_CIS
=y \
21 $(LINUX_DIR
)/drivers
/pcmcia
/pcmcia_core.ko \
22 $(LINUX_DIR
)/drivers
/pcmcia
/pcmcia.ko
23 AUTOLOAD
:=$(call AutoLoad
,25,pcmcia_core pcmcia
)
26 define KernelPackage
/pcmcia-core
/description
27 Kernel support for PCMCIA
/CardBus controllers
30 $(eval
$(call KernelPackage
,pcmcia-core
))
33 define AddDepends
/pcmcia
34 SUBMENU
:=$(PCMCIA_MENU
)
35 DEPENDS
+=kmod-pcmcia-core
$(1)
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
)
47 define KernelPackage
/pcmcia-rsrc
/description
48 Kernel support for PCMCIA resource allocation
51 $(eval
$(call KernelPackage
,pcmcia-rsrc
))
54 define KernelPackage
/pcmcia-yenta
55 TITLE
:=yenta socket driver
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
)
63 $(eval
$(call KernelPackage
,pcmcia-yenta
))
66 define KernelPackage
/pcmcia-serial
67 TITLE
:=Serial devices support
69 CONFIG_PCMCIA_SERIAL_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
)
77 define KernelPackage
/pcmcia-serial
/description
78 Kernel support for PCMCIA
/CardBus serial devices
81 $(eval
$(call KernelPackage
,pcmcia-serial
))
84 define KernelPackage
/pcmcia-pd6729
85 TITLE
:=Cirrus PD6729 compatible bridge support
86 KCONFIG
:=CONFIG_PD6729
87 FILES
:=$(LINUX_DIR
)/drivers
/pcmcia
/pd6729.ko
88 AUTOLOAD
:=$(call AutoLoad
,41,pd6729
)
89 DEPENDS
:=+kmod-pcmcia-rsrc
90 $(call AddDepends
/pcmcia
)
93 define KernelPackage
/pcmcia-pd6729
/description
94 Kernel support for the Cirrus PD6729 PCI-to-PCMCIA bridge
97 $(eval
$(call KernelPackage
,pcmcia-pd6729
))