pcmcia.mk 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  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. PCMCIA_MENU:=PCMCIA support
  8. define KernelPackage/pcmcia-core
  9. SUBMENU:=$(PCMCIA_MENU)
  10. TITLE:=PCMCIA/CardBus support
  11. DEPENDS:=@PCMCIA_SUPPORT
  12. KCONFIG:= \
  13. CONFIG_PCMCIA \
  14. CONFIG_CARDBUS \
  15. CONFIG_PCCARD \
  16. PCMCIA_DEBUG=n
  17. FILES:= \
  18. $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
  19. $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
  20. AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
  21. endef
  22. define KernelPackage/pcmcia-core/description
  23. Kernel support for PCMCIA/CardBus controllers
  24. endef
  25. $(eval $(call KernelPackage,pcmcia-core))
  26. define KernelPackage/pcmcia-rsrc
  27. SUBMENU:=$(PCMCIA_MENU)
  28. TITLE:=PCMCIA resource support
  29. DEPENDS:=kmod-pcmcia-core
  30. KCONFIG:=CONFIG_PCCARD_NONSTATIC=y
  31. # For Linux 2.6.35+
  32. ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
  33. FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
  34. AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
  35. else
  36. FILES:=$(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.ko
  37. AUTOLOAD:=$(call AutoLoad,26,rsrc_nonstatic)
  38. endif
  39. endef
  40. define KernelPackage/pcmcia-rsrc/description
  41. Kernel support for PCMCIA resource allocation
  42. endef
  43. $(eval $(call KernelPackage,pcmcia-rsrc))
  44. define KernelPackage/pcmcia-yenta
  45. SUBMENU:=$(PCMCIA_MENU)
  46. TITLE:=yenta socket driver
  47. DEPENDS:=kmod-pcmcia-rsrc
  48. KCONFIG:=CONFIG_YENTA
  49. FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
  50. AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
  51. endef
  52. $(eval $(call KernelPackage,pcmcia-yenta))
  53. define KernelPackage/pcmcia-serial
  54. SUBMENU:=$(PCMCIA_MENU)
  55. TITLE:=Serial devices support
  56. DEPENDS:=kmod-pcmcia-core
  57. KCONFIG:= \
  58. CONFIG_PCMCIA_SERIAL_CS \
  59. CONFIG_SERIAL_8250_CS
  60. FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
  61. AUTOLOAD:=$(call AutoLoad,45,serial_cs)
  62. endef
  63. define KernelPackage/pcmcia-serial/description
  64. Kernel support for PCMCIA/CardBus serial devices
  65. endef
  66. $(eval $(call KernelPackage,pcmcia-serial))