pcmcia.mk 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  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. endef
  18. define KernelPackage/pcmcia-core/2.4
  19. # KCONFIG:= \
  20. # CONFIG_PCMCIA \
  21. # CONFIG_CARDBUS
  22. FILES:= \
  23. $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
  24. $(LINUX_DIR)/drivers/pcmcia/ds.ko \
  25. $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
  26. AUTOLOAD:=$(call AutoLoad,25,pcmcia_core ds yenta_socket)
  27. endef
  28. define KernelPackage/pcmcia-core/2.6
  29. # KCONFIG:= \
  30. # CONFIG_PCCARD \
  31. # CONFIG_PCMCIA \
  32. # PCMCIA_DEBUG=n
  33. FILES:= \
  34. $(LINUX_DIR)/drivers/pcmcia/pcmcia_core.ko \
  35. $(LINUX_DIR)/drivers/pcmcia/pcmcia.ko
  36. AUTOLOAD:=$(call AutoLoad,25,pcmcia_core pcmcia)
  37. endef
  38. define KernelPackage/pcmcia-core/description
  39. Kernel support for PCMCIA/CardBus controllers
  40. endef
  41. $(eval $(call KernelPackage,pcmcia-core))
  42. define KernelPackage/pcmcia-yenta
  43. SUBMENU:=$(PCMCIA_MENU)
  44. TITLE:=yenta socket driver
  45. DEPENDS:=kmod-pcmcia-core
  46. KCONFIG:= \
  47. CONFIG_PCCARD_NONSTATIC \
  48. CONFIG_YENTA
  49. # For Linux 2.6.35+
  50. ifneq ($(wildcard $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko),)
  51. FILES:= \
  52. $(LINUX_DIR)/drivers/pcmcia/pcmcia_rsrc.ko \
  53. $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
  54. AUTOLOAD:=$(call AutoLoad,41,pcmcia_rsrc yenta_socket)
  55. else
  56. FILES:= \
  57. $(LINUX_DIR)/drivers/pcmcia/rsrc_nonstatic.ko \
  58. $(LINUX_DIR)/drivers/pcmcia/yenta_socket.ko
  59. AUTOLOAD:=$(call AutoLoad,41,rsrc_nonstatic yenta_socket)
  60. endif
  61. endef
  62. $(eval $(call KernelPackage,pcmcia-yenta))
  63. define KernelPackage/pcmcia-serial
  64. SUBMENU:=$(PCMCIA_MENU)
  65. TITLE:=Serial devices support
  66. DEPENDS:=kmod-pcmcia-core
  67. KCONFIG:= \
  68. CONFIG_PCMCIA_SERIAL_CS \
  69. CONFIG_SERIAL_8250_CS
  70. AUTOLOAD:=$(call AutoLoad,45,serial_cs)
  71. endef
  72. define KernelPackage/pcmcia-serial/2.4
  73. # KCONFIG:=CONFIG_PCMCIA_SERIAL_CS
  74. FILES:=$(LINUX_DIR)/drivers/char/pcmcia/serial_cs.ko
  75. endef
  76. define KernelPackage/pcmcia-serial/2.6
  77. # KCONFIG:=CONFIG_SERIAL_8250_CS
  78. FILES:=$(LINUX_DIR)/drivers/serial/serial_cs.ko
  79. endef
  80. define KernelPackage/pcmcia-serial/description
  81. Kernel support for PCMCIA/CardBus serial devices
  82. endef
  83. $(eval $(call KernelPackage,pcmcia-serial))