source: trunk/package/kernel/modules/pcmcia.mk @ 26239

Last change on this file since 26239 was 26239, checked in by hauke, 5 years ago

kernel: fix some problems with kernel 2.6.38

In some places LINUX_2_6_38 was just missing.
Some kernel modules were moved.

  • Property svn:eol-style set to native
File size: 2.3 KB
Line 
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
8PCMCIA_MENU:=PCMCIA support
9
10define 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
19endef
20
21define KernelPackage/pcmcia-core/2.4
22#  KCONFIG:= \
23#       CONFIG_PCMCIA \
24#       CONFIG_CARDBUS
25  FILES:= \
26        $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
27        $(LINUX_DIR)/drivers/pcmcia/ds.ko \
28        $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
29  AUTOLOAD:=$(call AutoLoad,25,pcmcia_core ds yenta_socket)
30endef
31
32define KernelPackage/pcmcia-core/2.6
33#  KCONFIG:= \
34#       CONFIG_PCCARD \
35#       CONFIG_PCMCIA \
36#       PCMCIA_DEBUG=n
37  FILES:= \
38        $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
39        $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
40  AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
41endef
42
43define KernelPackage/pcmcia-core/description
44 Kernel support for PCMCIA/CardBus controllers
45endef
46
47$(eval $(call KernelPackage,pcmcia-core))
48
49
50define KernelPackage/pcmcia-yenta
51  SUBMENU:=$(PCMCIA_MENU)
52  TITLE:=yenta socket driver
53  DEPENDS:=kmod-pcmcia-core
54  KCONFIG:= \
55        CONFIG_PCCARD_NONSTATIC \
56        CONFIG_YENTA
57# For Linux 2.6.35+
58ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
59  FILES:= \
60        $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko \
61        $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
62  AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
63else
64  FILES:= \
65        $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.ko \
66        $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
67  AUTOLOAD:=$(call AutoLoad,41,rsrc_nonstatic yenta_socket)
68endif
69endef
70
71$(eval $(call KernelPackage,pcmcia-yenta))
72
73
74define KernelPackage/pcmcia-serial
75  SUBMENU:=$(PCMCIA_MENU)
76  TITLE:=Serial devices support
77  DEPENDS:=kmod-pcmcia-core
78  KCONFIG:= \
79        CONFIG_PCMCIA_SERIAL_CS \
80        CONFIG_SERIAL_8250_CS
81  ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.38)),1)
82    FILES:=$(LINUX_DIR)/drivers/tty/serial/serial_cs.ko
83  else
84    FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
85  endif
86  AUTOLOAD:=$(call AutoLoad,45,serial_cs)
87endef
88
89define KernelPackage/pcmcia-serial/description
90 Kernel support for PCMCIA/CardBus serial devices
91endef
92
93$(eval $(call KernelPackage,pcmcia-serial))
Note: See TracBrowser for help on using the repository browser.