input.mk 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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-core
  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/input-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-matrixkmap
  112. SUBMENU:=$(INPUT_MODULES_MENU)
  113. TITLE:=Input matrix devices support
  114. DEPENDS:=+kmod-input-core
  115. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  116. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  117. AUTOLOAD:=$(call AutoProbe,matrix-keymap)
  118. endef
  119. define KernelPackage/input-matrixkmap/description
  120. Kernel module support for input matrix devices
  121. endef
  122. $(eval $(call KernelPackage,input-matrixkmap))
  123. define KernelPackage/input-touchscreen-ads7846
  124. SUBMENU:=$(INPUT_MODULES_MENU)
  125. TITLE:=ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens
  126. DEPENDS:=+kmod-hwmon-core +kmod-input-core +kmod-spi-bitbang
  127. KCONFIG:= \
  128. CONFIG_INPUT_TOUCHSCREEN=y \
  129. CONFIG_TOUCHSCREEN_ADS7846
  130. FILES:=$(LINUX_DIR)/drivers/input/touchscreen/ads7846.ko
  131. AUTOLOAD:=$(call AutoProbe,ads7846)
  132. endef
  133. define KernelPackage/input-touchscreen-ads7846/description
  134. Kernel module for ADS7846/TSC2046/AD7873 and AD(S)7843 based touchscreens
  135. endef
  136. $(eval $(call KernelPackage,input-touchscreen-ads7846))
  137. define KernelPackage/input-touchscreen-edt-ft5x06
  138. SUBMENU:=$(INPUT_MODULES_MENU)
  139. TITLE:=EDT FT5x06 and Focaltech FT6236 based touchscreens
  140. DEPENDS:=+kmod-i2c-core +kmod-input-core
  141. KCONFIG:= \
  142. CONFIG_INPUT_TOUCHSCREEN=y \
  143. CONFIG_TOUCHSCREEN_EDT_FT5X06
  144. FILES:=$(LINUX_DIR)/drivers/input/touchscreen/edt-ft5x06.ko
  145. AUTOLOAD:=$(call AutoProbe,edt-ft5x06)
  146. endef
  147. define KernelPackage/input-touchscreen-edt-ft5x06/description
  148. Kernel module for EDT FT5206, FT5306, FT5406, FT5506, Evervision FT5726 \
  149. and Focaltech FT6236 based touchscreens
  150. endef
  151. $(eval $(call KernelPackage,input-touchscreen-edt-ft5x06))
  152. define KernelPackage/keyboard-imx
  153. SUBMENU:=$(INPUT_MODULES_MENU)
  154. TITLE:=IMX keypad support
  155. DEPENDS:=@(TARGET_mxs||TARGET_imx) +kmod-input-matrixkmap
  156. KCONFIG:= \
  157. CONFIG_KEYBOARD_IMX \
  158. CONFIG_INPUT_KEYBOARD=y
  159. FILES:=$(LINUX_DIR)/drivers/input/keyboard/imx_keypad.ko
  160. AUTOLOAD:=$(call AutoProbe,imx_keypad)
  161. endef
  162. define KernelPackage/keyboard-imx/description
  163. Enable support for IMX keypad port.
  164. endef
  165. $(eval $(call KernelPackage,keyboard-imx))
  166. define KernelPackage/input-uinput
  167. SUBMENU:=$(INPUT_MODULES_MENU)
  168. TITLE:=user input module
  169. DEPENDS:=+kmod-input-core
  170. KCONFIG:= \
  171. CONFIG_INPUT_MISC=y \
  172. CONFIG_INPUT_UINPUT
  173. FILES:=$(LINUX_DIR)/drivers/input/misc/uinput.ko
  174. AUTOLOAD:=$(call AutoProbe,uinput)
  175. endef
  176. define KernelPackage/input-uinput/description
  177. user input modules needed for bluez
  178. endef
  179. $(eval $(call KernelPackage,input-uinput))