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
20 $(LINUX_DIR
)/drivers
/pcmcia
/pcmcia_core.ko \
21 $(LINUX_DIR
)/drivers
/pcmcia
/pcmcia.ko
22 AUTOLOAD
:=$(call AutoLoad
,25,pcmcia_core pcmcia
)
25 define KernelPackage
/pcmcia-core
/description
26 Kernel support for PCMCIA
/CardBus controllers
29 $(eval
$(call KernelPackage
,pcmcia-core
))
32 define AddDepends
/pcmcia
33 SUBMENU
:=$(PCMCIA_MENU
)
34 DEPENDS
+=kmod-pcmcia-core
$(1)
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
)
46 define KernelPackage
/pcmcia-rsrc
/description
47 Kernel support for PCMCIA resource allocation
50 $(eval
$(call KernelPackage
,pcmcia-rsrc
))
53 define KernelPackage
/pcmcia-yenta
54 TITLE
:=yenta socket driver
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
)
62 $(eval
$(call KernelPackage
,pcmcia-yenta
))
65 define KernelPackage
/pcmcia-serial
66 TITLE
:=Serial devices support
68 CONFIG_PCMCIA_SERIAL_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
)
76 define KernelPackage
/pcmcia-serial
/description
77 Kernel support for PCMCIA
/CardBus serial devices
80 $(eval
$(call KernelPackage
,pcmcia-serial
))