input.mk 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. #
  2. # Copyright (C) 2006-2013 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. INPUT_MODULES_MENU:=Input modules
  8. define KernelPackage/hid
  9. SUBMENU:=$(INPUT_MODULES_MENU)
  10. TITLE:=HID Devices
  11. KCONFIG:=CONFIG_HID
  12. FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
  13. AUTOLOAD:=$(call AutoLoad,61,hid)
  14. $(call AddDepends/input,+kmod-input-evdev)
  15. endef
  16. define KernelPackage/hid/description
  17. Kernel modules for HID devices
  18. endef
  19. $(eval $(call KernelPackage,hid))
  20. define KernelPackage/input-core
  21. SUBMENU:=$(INPUT_MODULES_MENU)
  22. TITLE:=Input device core
  23. KCONFIG:=CONFIG_INPUT
  24. FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
  25. AUTOLOAD:=$(call AutoLoad,19,input-core)
  26. endef
  27. define KernelPackage/input-core/description
  28. Kernel modules for support of input device
  29. endef
  30. $(eval $(call KernelPackage,input-core))
  31. define KernelPackage/input-evdev
  32. SUBMENU:=$(INPUT_MODULES_MENU)
  33. TITLE:=Input event device
  34. KCONFIG:=CONFIG_INPUT_EVDEV
  35. FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
  36. AUTOLOAD:=$(call AutoLoad,60,evdev)
  37. $(call AddDepends/input)
  38. endef
  39. define KernelPackage/input-evdev/description
  40. Kernel modules for support of input device events
  41. endef
  42. $(eval $(call KernelPackage,input-evdev))
  43. define KernelPackage/input-gpio-buttons
  44. SUBMENU:=$(INPUT_MODULES_MENU)
  45. TITLE:=Polled GPIO buttons input device
  46. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  47. KCONFIG:= \
  48. CONFIG_INPUT_GPIO_BUTTONS \
  49. CONFIG_INPUT_MISC=y
  50. FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
  51. AUTOLOAD:=$(call AutoLoad,62,gpio_buttons)
  52. endef
  53. define KernelPackage/input-gpio-buttons/description
  54. Kernel module for support polled GPIO buttons input device
  55. endef
  56. $(eval $(call KernelPackage,input-gpio-buttons))
  57. define KernelPackage/input-gpio-keys
  58. SUBMENU:=$(INPUT_MODULES_MENU)
  59. TITLE:=GPIO key support
  60. DEPENDS:= @GPIO_SUPPORT
  61. KCONFIG:= \
  62. CONFIG_KEYBOARD_GPIO \
  63. CONFIG_INPUT_KEYBOARD=y
  64. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
  65. AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
  66. $(call AddDepends/input)
  67. endef
  68. define KernelPackage/input-gpio-keys/description
  69. This driver implements support for buttons connected
  70. to GPIO pins of various CPUs (and some other chips).
  71. endef
  72. $(eval $(call KernelPackage,input-gpio-keys))
  73. define KernelPackage/input-gpio-keys-polled
  74. SUBMENU:=$(INPUT_MODULES_MENU)
  75. TITLE:=Polled GPIO key support
  76. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  77. KCONFIG:= \
  78. CONFIG_KEYBOARD_GPIO_POLLED \
  79. CONFIG_INPUT_KEYBOARD=y
  80. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
  81. AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled)
  82. $(call AddDepends/input)
  83. endef
  84. define KernelPackage/input-gpio-keys-polled/description
  85. Kernel module for support polled GPIO keys input device
  86. endef
  87. $(eval $(call KernelPackage,input-gpio-keys-polled))
  88. define KernelPackage/input-gpio-encoder
  89. SUBMENU:=$(INPUT_MODULES_MENU)
  90. TITLE:=GPIO rotay encoder
  91. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  92. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  93. AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
  94. $(call AddDepends/input,@GPIO_SUPPORT)
  95. endef
  96. define KernelPackage/gpio-encoder/description
  97. Kernel module to use rotary encoders connected to GPIO pins
  98. endef
  99. $(eval $(call KernelPackage,input-gpio-encoder))
  100. define KernelPackage/input-joydev
  101. SUBMENU:=$(INPUT_MODULES_MENU)
  102. TITLE:=Joystick device support
  103. KCONFIG:=CONFIG_INPUT_JOYDEV
  104. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  105. AUTOLOAD:=$(call AutoLoad,62,joydev)
  106. $(call AddDepends/input)
  107. endef
  108. define KernelPackage/input-joydev/description
  109. Kernel module for joystick support
  110. endef
  111. $(eval $(call KernelPackage,input-joydev))
  112. define KernelPackage/input-polldev
  113. SUBMENU:=$(INPUT_MODULES_MENU)
  114. TITLE:=Polled Input device support
  115. KCONFIG:=CONFIG_INPUT_POLLDEV
  116. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  117. AUTOLOAD:=$(call AutoLoad,20,input-polldev)
  118. $(call AddDepends/input)
  119. endef
  120. define KernelPackage/input-polldev/description
  121. Kernel module for support of polled input devices
  122. endef
  123. $(eval $(call KernelPackage,input-polldev))
  124. define KernelPackage/input-matrixkmap
  125. SUBMENU:=$(INPUT_MODULES_MENU)
  126. TITLE:=Input matrix devices support
  127. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  128. DEPENDS:=@!LINUX_3_3
  129. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  130. AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
  131. $(call AddDepends/input)
  132. endef
  133. define KernelPackage/input-matrix/description
  134. Kernel module support for input matrix devices
  135. endef
  136. $(eval $(call KernelPackage,input-matrixkmap))
  137. define KernelPackage/acpi-button
  138. SUBMENU:=$(INPUT_MODULES_MENU)
  139. TITLE:=ACPI Button Support
  140. DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
  141. KCONFIG:=CONFIG_ACPI_BUTTON
  142. FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
  143. AUTOLOAD:=$(call AutoLoad,06,button)
  144. endef
  145. define KernelPackage/acpi-button/description
  146. Kernel module for ACPI Button support
  147. endef
  148. $(eval $(call KernelPackage,acpi-button))