1
0

pcmcia.mk 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. FILES:=$(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko
  32. AUTOLOAD:=$(call AutoLoad,26,pcmcia_rsrc)
  33. endef
  34. define KernelPackage/pcmcia-rsrc/description
  35. Kernel support for PCMCIA resource allocation
  36. endef
  37. $(eval $(call KernelPackage,pcmcia-rsrc))
  38. define KernelPackage/pcmcia-yenta
  39. SUBMENU:=$(PCMCIA_MENU)
  40. TITLE:=yenta socket driver
  41. DEPENDS:=kmod-pcmcia-rsrc
  42. KCONFIG:=CONFIG_YENTA
  43. FILES:=$(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
  44. AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
  45. endef
  46. $(eval $(call KernelPackage,pcmcia-yenta))
  47. define KernelPackage/pcmcia-serial
  48. SUBMENU:=$(PCMCIA_MENU)
  49. TITLE:=Serial devices support
  50. DEPENDS:=kmod-pcmcia-core +kmod-serial-8250
  51. KCONFIG:= \
  52. CONFIG_PCMCIA_SERIAL_CS \
  53. CONFIG_SERIAL_8250_CS
  54. FILES:=$(LINUX_DIR)/drivers/tty/serial/8250/serial_cs.ko
  55. AUTOLOAD:=$(call AutoLoad,45,serial_cs)
  56. endef
  57. define KernelPackage/pcmcia-serial/description
  58. Kernel support for PCMCIA/CardBus serial devices
  59. endef
  60. $(eval $(call KernelPackage,pcmcia-serial))