package/kernel: Remove all 2.4 definitions
[openwrt.git] / package / kernel / 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 KernelPackage/pcmcia-yenta
33   SUBMENU:=$(PCMCIA_MENU)
34   TITLE:=yenta socket driver
35   DEPENDS:=kmod-pcmcia-core
36   KCONFIG:= \
37         CONFIG_PCCARD_NONSTATIC \
38         CONFIG_YENTA
39 # For Linux 2.6.35+
40 ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
41   FILES:= \
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)
45 else
46   FILES:= \
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)
50 endif
51 endef
52
53 $(eval $(call KernelPackage,pcmcia-yenta))
54
55
56 define KernelPackage/pcmcia-serial
57   SUBMENU:=$(PCMCIA_MENU)
58   TITLE:=Serial devices support
59   DEPENDS:=kmod-pcmcia-core
60   KCONFIG:= \
61         CONFIG_PCMCIA_SERIAL_CS \
62         CONFIG_SERIAL_8250_CS
63   ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
64     FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
65   else
66     FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
67   endif
68   AUTOLOAD:=$(call AutoLoad,45,serial_cs)
69 endef
70
71 define KernelPackage/pcmcia-serial/description
72  Kernel support for PCMCIA/CardBus serial devices
73 endef
74
75 $(eval $(call KernelPackage,pcmcia-serial))