input.mk 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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. endef
  69. $(eval $(call KernelPackage,input-gpio-keys))
  70. define KernelPackage/input-gpio-keys-polled
  71. SUBMENU:=$(INPUT_MODULES_MENU)
  72. TITLE:=Polled GPIO key support
  73. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  74. KCONFIG:= \
  75. CONFIG_KEYBOARD_GPIO_POLLED \
  76. CONFIG_INPUT_KEYBOARD=y
  77. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
  78. AUTOLOAD:=$(call AutoProbe,gpio_keys_polled,1)
  79. $(call AddDepends/input)
  80. endef
  81. define KernelPackage/input-gpio-keys-polled/description
  82. Kernel module for support polled GPIO keys input device
  83. endef
  84. $(eval $(call KernelPackage,input-gpio-keys-polled))
  85. define KernelPackage/input-gpio-encoder
  86. SUBMENU:=$(INPUT_MODULES_MENU)
  87. TITLE:=GPIO rotay encoder
  88. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  89. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  90. AUTOLOAD:=$(call AutoProbe,rotary_encoder)
  91. $(call AddDepends/input,@GPIO_SUPPORT)
  92. endef
  93. define KernelPackage/gpio-encoder/description
  94. Kernel module to use rotary encoders connected to GPIO pins
  95. endef
  96. $(eval $(call KernelPackage,input-gpio-encoder))
  97. define KernelPackage/input-joydev
  98. SUBMENU:=$(INPUT_MODULES_MENU)
  99. TITLE:=Joystick device support
  100. KCONFIG:=CONFIG_INPUT_JOYDEV
  101. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  102. AUTOLOAD:=$(call AutoProbe,joydev)
  103. $(call AddDepends/input)
  104. endef
  105. define KernelPackage/input-joydev/description
  106. Kernel module for joystick support
  107. endef
  108. $(eval $(call KernelPackage,input-joydev))
  109. define KernelPackage/input-polldev
  110. SUBMENU:=$(INPUT_MODULES_MENU)
  111. TITLE:=Polled Input device support
  112. KCONFIG:=CONFIG_INPUT_POLLDEV
  113. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  114. $(call AddDepends/input)
  115. endef
  116. define KernelPackage/input-polldev/description
  117. Kernel module for support of polled input devices
  118. endef
  119. $(eval $(call KernelPackage,input-polldev))
  120. define KernelPackage/input-matrixkmap
  121. SUBMENU:=$(INPUT_MODULES_MENU)
  122. TITLE:=Input matrix devices support
  123. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  124. DEPENDS:=@!LINUX_3_3
  125. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  126. AUTOLOAD:=$(call AutoProbe,matrix-keymap)
  127. $(call AddDepends/input)
  128. endef
  129. define KernelPackage/input-matrix/description
  130. Kernel module support for input matrix devices
  131. endef
  132. $(eval $(call KernelPackage,input-matrixkmap))
  133. define KernelPackage/acpi-button
  134. SUBMENU:=$(INPUT_MODULES_MENU)
  135. TITLE:=ACPI Button Support
  136. DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
  137. KCONFIG:=CONFIG_ACPI_BUTTON
  138. FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
  139. AUTOLOAD:=$(call AutoLoad,06,button)
  140. endef
  141. define KernelPackage/acpi-button/description
  142. Kernel module for ACPI Button support
  143. endef
  144. $(eval $(call KernelPackage,acpi-button))
  145. define KernelPackage/keyboard-imx
  146. SUBMENU:=$(INPUT_MODULES_MENU)
  147. TITLE:=IMX keypad support
  148. DEPENDS:=@(TARGET_mxs||TARGET_imx6) +kmod-input-matrixkmap
  149. KCONFIG:= \
  150. CONFIG_KEYBOARD_IMX \
  151. CONFIG_INPUT_KEYBOARD=y
  152. FILES:=$(LINUX_DIR)/drivers/input/keyboard/imx_keypad.ko
  153. AUTOLOAD:=$(call AutoProbe,imx_keypad)
  154. endef
  155. define KernelPackage/keyboard-imx/description
  156. Enable support for IMX keypad port.
  157. endef
  158. $(eval $(call KernelPackage,keyboard-imx))