input.mk 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  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. DEPENDS:=+kmod-input-core +kmod-input-evdev
  12. KCONFIG:=CONFIG_HID CONFIG_HIDRAW=y CONFIG_HID_BATTERY_STRENGTH=y
  13. FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
  14. AUTOLOAD:=$(call AutoLoad,61,hid)
  15. endef
  16. define KernelPackage/hid/description
  17. Kernel modules for HID devices
  18. endef
  19. $(eval $(call KernelPackage,hid))
  20. define KernelPackage/hid-generic
  21. SUBMENU:=$(INPUT_MODULES_MENU)
  22. TITLE:=Generic HID device support
  23. DEPENDS:=+kmod-hid
  24. KCONFIG:=CONFIG_HID_GENERIC
  25. FILES:=$(LINUX_DIR)/drivers/hid/hid-generic.ko
  26. AUTOLOAD:=$(call AutoProbe,hid-generic)
  27. endef
  28. define KernelPackage/hid/description
  29. Kernel modules for generic HID device (e.g. keyboards and mice) support
  30. endef
  31. $(eval $(call KernelPackage,hid-generic))
  32. define KernelPackage/input-core
  33. SUBMENU:=$(INPUT_MODULES_MENU)
  34. TITLE:=Input device core
  35. KCONFIG:=CONFIG_INPUT
  36. FILES:=$(LINUX_DIR)/drivers/input/input-core.ko
  37. endef
  38. define KernelPackage/input-core/description
  39. Kernel modules for support of input device
  40. endef
  41. $(eval $(call KernelPackage,input-core))
  42. define KernelPackage/input-evdev
  43. SUBMENU:=$(INPUT_MODULES_MENU)
  44. TITLE:=Input event device
  45. DEPENDS:=+kmod-input-core
  46. KCONFIG:=CONFIG_INPUT_EVDEV
  47. FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
  48. AUTOLOAD:=$(call AutoLoad,60,evdev)
  49. endef
  50. define KernelPackage/input-evdev/description
  51. Kernel modules for support of input device events
  52. endef
  53. $(eval $(call KernelPackage,input-evdev))
  54. define KernelPackage/input-gpio-keys
  55. SUBMENU:=$(INPUT_MODULES_MENU)
  56. TITLE:=GPIO key support
  57. DEPENDS:= @GPIO_SUPPORT +kmod-input-core
  58. KCONFIG:= \
  59. CONFIG_KEYBOARD_GPIO \
  60. CONFIG_INPUT_KEYBOARD=y
  61. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
  62. AUTOLOAD:=$(call AutoProbe,gpio_keys,1)
  63. endef
  64. define KernelPackage/input-gpio-keys/description
  65. This driver implements support for buttons connected
  66. to GPIO pins of various CPUs (and some other chips).
  67. See also gpio-button-hotplug which is an alternative, lower overhead
  68. implementation that generates uevents instead of kernel input events.
  69. endef
  70. $(eval $(call KernelPackage,input-gpio-keys))
  71. define KernelPackage/input-gpio-keys-polled
  72. SUBMENU:=$(INPUT_MODULES_MENU)
  73. TITLE:=Polled GPIO key support
  74. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  75. KCONFIG:= \
  76. CONFIG_KEYBOARD_GPIO_POLLED \
  77. CONFIG_INPUT_KEYBOARD=y
  78. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
  79. AUTOLOAD:=$(call AutoProbe,gpio_keys_polled,1)
  80. endef
  81. define KernelPackage/input-gpio-keys-polled/description
  82. Kernel module for support polled GPIO keys input device
  83. See also gpio-button-hotplug which is an alternative, lower overhead
  84. implementation that generates uevents instead of kernel input events.
  85. endef
  86. $(eval $(call KernelPackage,input-gpio-keys-polled))
  87. define KernelPackage/input-gpio-encoder
  88. SUBMENU:=$(INPUT_MODULES_MENU)
  89. TITLE:=GPIO rotary encoder
  90. DEPENDS:=@GPIO_SUPPORT +kmod-input-core
  91. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  92. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  93. AUTOLOAD:=$(call AutoProbe,rotary_encoder)
  94. endef
  95. define KernelPackage/gpio-encoder/description
  96. Kernel module to use rotary encoders connected to GPIO pins
  97. endef
  98. $(eval $(call KernelPackage,input-gpio-encoder))
  99. define KernelPackage/input-joydev
  100. SUBMENU:=$(INPUT_MODULES_MENU)
  101. TITLE:=Joystick device support
  102. DEPENDS:=+kmod-input-core
  103. KCONFIG:=CONFIG_INPUT_JOYDEV
  104. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  105. AUTOLOAD:=$(call AutoProbe,joydev)
  106. endef
  107. define KernelPackage/input-joydev/description
  108. Kernel module for joystick support
  109. endef
  110. $(eval $(call KernelPackage,input-joydev))
  111. define KernelPackage/input-polldev
  112. SUBMENU:=$(INPUT_MODULES_MENU)
  113. TITLE:=Polled Input device support
  114. DEPENDS:=+kmod-input-core
  115. KCONFIG:=CONFIG_INPUT_POLLDEV
  116. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  117. endef
  118. define KernelPackage/input-polldev/description
  119. Kernel module for support of polled input devices
  120. endef
  121. $(eval $(call KernelPackage,input-polldev))
  122. define KernelPackage/input-matrixkmap
  123. SUBMENU:=$(INPUT_MODULES_MENU)
  124. TITLE:=Input matrix devices support
  125. DEPENDS:=+kmod-input-core
  126. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  127. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  128. AUTOLOAD:=$(call AutoProbe,matrix-keymap)
  129. endef
  130. define KernelPackage/input-matrix/description
  131. Kernel module support for input matrix devices
  132. endef
  133. $(eval $(call KernelPackage,input-matrixkmap))
  134. define KernelPackage/input-touchscreen-ads7846
  135. SUBMENU:=$(INPUT_MODULES_MENU)
  136. TITLE:=ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens
  137. DEPENDS:=+kmod-hwmon-core +kmod-input-core +kmod-spi-bitbang
  138. KCONFIG:= \
  139. CONFIG_INPUT_TOUCHSCREEN=y \
  140. CONFIG_TOUCHSCREEN_PROPERTIES=y \
  141. CONFIG_TOUCHSCREEN_ADS7846
  142. FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ads7846.ko
  143. AUTOLOAD:=$(call AutoProbe,ads7846)
  144. endef
  145. define KernelPackage/input-touchscreen-ads7846/description
  146. Kernel module for ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens
  147. endef
  148. $(eval $(call KernelPackage,input-touchscreen-ads7846))
  149. define KernelPackage/keyboard-imx
  150. SUBMENU:=$(INPUT_MODULES_MENU)
  151. TITLE:=IMX keypad support
  152. DEPENDS:=@(TARGET_mxs||TARGET_imx6) +kmod-input-matrixkmap
  153. KCONFIG:= \
  154. CONFIG_KEYBOARD_IMX \
  155. CONFIG_INPUT_KEYBOARD=y
  156. FILES:=$(LINUX_DIR)/drivers/input/keyboard/imx_keypad.ko
  157. AUTOLOAD:=$(call AutoProbe,imx_keypad)
  158. endef
  159. define KernelPackage/keyboard-imx/description
  160. Enable support for IMX keypad port.
  161. endef
  162. $(eval $(call KernelPackage,keyboard-imx))
  163. define KernelPackage/input-uinput
  164. SUBMENU:=$(INPUT_MODULES_MENU)
  165. TITLE:=user input module
  166. DEPENDS:=+kmod-input-core
  167. KCONFIG:= \
  168. CONFIG_INPUT_MISC=y \
  169. CONFIG_INPUT_UINPUT
  170. FILES:=$(LINUX_DIR)/drivers/input/misc/uinput.ko
  171. AUTOLOAD:=$(call AutoProbe,uinput)
  172. endef
  173. define KernelPackage/input-uinput/description
  174. user input modules needed for bluez
  175. endef
  176. $(eval $(call KernelPackage,input-uinput))