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 KernelPackage/pcmcia-yenta
33 SUBMENU:=$(PCMCIA_MENU)
34 TITLE:=yenta socket driver
35 DEPENDS:=kmod-pcmcia-core
37 CONFIG_PCCARD_NONSTATIC \
40 ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
42 $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko \
43 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
44 AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
47 $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.ko \
48 $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
49 AUTOLOAD:=$(call AutoLoad,41,rsrc_nonstatic yenta_socket)
53 $(eval $(call KernelPackage,pcmcia-yenta))
56 define KernelPackage/pcmcia-serial
57 SUBMENU:=$(PCMCIA_MENU)
58 TITLE:=Serial devices support
59 DEPENDS:=kmod-pcmcia-core
61 CONFIG_PCMCIA_SERIAL_CS \
63 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
64 FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
66 FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
68 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
71 define KernelPackage/pcmcia-serial/description
72 Kernel support for PCMCIA/CardBus serial devices
75 $(eval $(call KernelPackage,pcmcia-serial))