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))
31 define KernelPackage/pcmcia-rsrc
32 SUBMENU:=$(PCMCIA_MENU)
33 TITLE:=PCMCIA resource support
34 DEPENDS:=kmod-pcmcia-core
35 KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
37 ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
38 FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
39 AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
41 FILES:=$(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.ko \
42 AUTOLOAD:=$(call AutoLoad,26,rsrc_nonstatic)
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 SUBMENU:=$(PCMCIA_MENU)
55 TITLE:=yenta socket driver
56 DEPENDS:=kmod-pcmcia-rsrc
58 FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
59 AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
62 $(eval $(call KernelPackage,pcmcia-yenta))
65 define KernelPackage/pcmcia-serial
66 SUBMENU:=$(PCMCIA_MENU)
67 TITLE:=Serial devices support
68 DEPENDS:=kmod-pcmcia-core
70 CONFIG_PCMCIA_SERIAL_CS \
72 ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
73 FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
75 FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
77 AUTOLOAD:=$(call AutoLoad,45,serial_cs)
80 define KernelPackage/pcmcia-serial/description
81 Kernel support for PCMCIA/CardBus serial devices
84 $(eval $(call KernelPackage,pcmcia-serial))