2
0

input.mk 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209
  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 CONFIG_HIDRAW=y
  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/hid-generic
  21. SUBMENU:=$(INPUT_MODULES_MENU)
  22. TITLE:=Generic HID device support
  23. KCONFIG:=CONFIG_HID_GENERIC
  24. FILES:=$(LINUX_DIR)/drivers/hid/hid-generic.ko
  25. AUTOLOAD:=$(call AutoProbe,hid-generic)
  26. $(call AddDepends/hid)
  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. KCONFIG:=CONFIG_INPUT_EVDEV
  46. FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
  47. AUTOLOAD:=$(call AutoLoad,60,evdev)
  48. $(call AddDepends/input)
  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
  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)
  63. $(call AddDepends/input)
  64. endef
  65. define KernelPackage/input-gpio-keys/description
  66. This driver implements support for buttons connected
  67. to GPIO pins of various CPUs (and some other chips).
  68. See also gpio-button-hotplug which is an alternative, lower overhead
  69. implementation that generates uevents instead of kernel input events.
  70. endef
  71. $(eval $(call KernelPackage,input-gpio-keys))
  72. define KernelPackage/input-gpio-keys-polled
  73. SUBMENU:=$(INPUT_MODULES_MENU)
  74. TITLE:=Polled GPIO key support
  75. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  76. KCONFIG:= \
  77. CONFIG_KEYBOARD_GPIO_POLLED \
  78. CONFIG_INPUT_KEYBOARD=y
  79. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
  80. AUTOLOAD:=$(call AutoProbe,gpio_keys_polled,1)
  81. $(call AddDepends/input)
  82. endef
  83. define KernelPackage/input-gpio-keys-polled/description
  84. Kernel module for support polled GPIO keys input device
  85. See also gpio-button-hotplug which is an alternative, lower overhead
  86. implementation that generates uevents instead of kernel input events.
  87. endef
  88. $(eval $(call KernelPackage,input-gpio-keys-polled))
  89. define KernelPackage/input-gpio-encoder
  90. SUBMENU:=$(INPUT_MODULES_MENU)
  91. TITLE:=GPIO rotay encoder
  92. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  93. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  94. AUTOLOAD:=$(call AutoProbe,rotary_encoder)
  95. $(call AddDepends/input,@GPIO_SUPPORT)
  96. endef
  97. define KernelPackage/gpio-encoder/description
  98. Kernel module to use rotary encoders connected to GPIO pins
  99. endef
  100. $(eval $(call KernelPackage,input-gpio-encoder))
  101. define KernelPackage/input-joydev
  102. SUBMENU:=$(INPUT_MODULES_MENU)
  103. TITLE:=Joystick device support
  104. KCONFIG:=CONFIG_INPUT_JOYDEV
  105. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  106. AUTOLOAD:=$(call AutoProbe,joydev)
  107. $(call AddDepends/input)
  108. endef
  109. define KernelPackage/input-joydev/description
  110. Kernel module for joystick support
  111. endef
  112. $(eval $(call KernelPackage,input-joydev))
  113. define KernelPackage/input-polldev
  114. SUBMENU:=$(INPUT_MODULES_MENU)
  115. TITLE:=Polled Input device support
  116. KCONFIG:=CONFIG_INPUT_POLLDEV
  117. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  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. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  129. AUTOLOAD:=$(call AutoProbe,matrix-keymap)
  130. $(call AddDepends/input)
  131. endef
  132. define KernelPackage/input-matrix/description
  133. Kernel module support for input matrix devices
  134. endef
  135. $(eval $(call KernelPackage,input-matrixkmap))
  136. define KernelPackage/acpi-button
  137. SUBMENU:=$(INPUT_MODULES_MENU)
  138. TITLE:=ACPI Button Support
  139. DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
  140. KCONFIG:=CONFIG_ACPI_BUTTON
  141. FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
  142. AUTOLOAD:=$(call AutoLoad,06,button)
  143. endef
  144. define KernelPackage/acpi-button/description
  145. Kernel module for ACPI Button support
  146. endef
  147. $(eval $(call KernelPackage,acpi-button))
  148. define KernelPackage/keyboard-imx
  149. SUBMENU:=$(INPUT_MODULES_MENU)
  150. TITLE:=IMX keypad support
  151. DEPENDS:=@(TARGET_mxs||TARGET_imx6) +kmod-input-matrixkmap
  152. KCONFIG:= \
  153. CONFIG_KEYBOARD_IMX \
  154. CONFIG_INPUT_KEYBOARD=y
  155. FILES:=$(LINUX_DIR)/drivers/input/keyboard/imx_keypad.ko
  156. AUTOLOAD:=$(call AutoProbe,imx_keypad)
  157. endef
  158. define KernelPackage/keyboard-imx/description
  159. Enable support for IMX keypad port.
  160. endef
  161. $(eval $(call KernelPackage,keyboard-imx))