b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame] | 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_PCMCIA_LOAD_CIS=y \ |
| 17 | CONFIG_CARDBUS \ |
| 18 | CONFIG_PCCARD \ |
| 19 | PCMCIA_DEBUG=n |
| 20 | FILES:= \ |
| 21 | $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \ |
| 22 | $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko |
| 23 | AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia) |
| 24 | endef |
| 25 | |
| 26 | define KernelPackage/pcmcia-core/description |
| 27 | Kernel support for PCMCIA/CardBus controllers |
| 28 | endef |
| 29 | |
| 30 | $(eval $(call KernelPackage,pcmcia-core)) |
| 31 | |
| 32 | |
| 33 | define AddDepends/pcmcia |
| 34 | SUBMENU:=$(PCMCIA_MENU) |
| 35 | DEPENDS+=kmod-pcmcia-core $(1) |
| 36 | endef |
| 37 | |
| 38 | |
| 39 | define KernelPackage/pcmcia-rsrc |
| 40 | TITLE:=PCMCIA resource support |
| 41 | KCONFIG:=CONFIG_PCCARD_NONSTATIC=y |
| 42 | FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko |
| 43 | AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc) |
| 44 | $(call AddDepends/pcmcia) |
| 45 | endef |
| 46 | |
| 47 | define KernelPackage/pcmcia-rsrc/description |
| 48 | Kernel support for PCMCIA resource allocation |
| 49 | endef |
| 50 | |
| 51 | $(eval $(call KernelPackage,pcmcia-rsrc)) |
| 52 | |
| 53 | |
| 54 | define KernelPackage/pcmcia-yenta |
| 55 | TITLE:=yenta socket driver |
| 56 | KCONFIG:=CONFIG_YENTA |
| 57 | FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko |
| 58 | AUTOLOAD:=$(call AutoLoad,41,yenta_socket) |
| 59 | DEPENDS:=+kmod-pcmcia-rsrc |
| 60 | $(call AddDepends/pcmcia) |
| 61 | endef |
| 62 | |
| 63 | $(eval $(call KernelPackage,pcmcia-yenta)) |
| 64 | |
| 65 | |
| 66 | define KernelPackage/pcmcia-serial |
| 67 | TITLE:=Serial devices support |
| 68 | KCONFIG:= \ |
| 69 | CONFIG_PCMCIA_SERIAL_CS \ |
| 70 | CONFIG_SERIAL_8250_CS |
| 71 | FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko |
| 72 | AUTOLOAD:=$(call AutoLoad,45,serial_cs) |
| 73 | DEPENDS:=+kmod-serial-8250 |
| 74 | $(call AddDepends/pcmcia) |
| 75 | endef |
| 76 | |
| 77 | define KernelPackage/pcmcia-serial/description |
| 78 | Kernel support for PCMCIA/CardBus serial devices |
| 79 | endef |
| 80 | |
| 81 | $(eval $(call KernelPackage,pcmcia-serial)) |
| 82 | |
| 83 | |
| 84 | define KernelPackage/pcmcia-pd6729 |
| 85 | TITLE:=Cirrus PD6729 compatible bridge support |
| 86 | KCONFIG:=CONFIG_PD6729 |
| 87 | FILES:=$(LINUX_DIR)/drivers/pcmcia/pd6729.ko |
| 88 | AUTOLOAD:=$(call AutoLoad,41,pd6729) |
| 89 | DEPENDS:=+kmod-pcmcia-rsrc |
| 90 | $(call AddDepends/pcmcia) |
| 91 | endef |
| 92 | |
| 93 | define KernelPackage/pcmcia-pd6729/description |
| 94 | Kernel support for the Cirrus PD6729 PCI-to-PCMCIA bridge |
| 95 | endef |
| 96 | |
| 97 | $(eval $(call KernelPackage,pcmcia-pd6729)) |
| 98 | |
| 99 | |
| 100 | define KernelPackage/pcmcia-nozomi |
| 101 | TITLE:=Option Fusion+ card |
| 102 | KCONFIG:=CONFIG_NOZOMI |
| 103 | FILES:=$(LINUX_DIR)/drivers/tty/nozomi.ko |
| 104 | AUTOLOAD:=$(call AutoLoad,60,nozomi) |
| 105 | DEPENDS:=+kmod-pcmcia-rsrc |
| 106 | $(call AddDepends/pcmcia) |
| 107 | endef |
| 108 | |
| 109 | define KernelPackage/pcmcia-nozomi/description |
| 110 | Kernel support for Option Fusion+ card |
| 111 | endef |
| 112 | |
| 113 | $(eval $(call KernelPackage,pcmcia-nozomi)) |