input.mk 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  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 AutoLoad,62,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. AUTOLOAD:=$(call AutoLoad,19,input-core,1)
  38. endef
  39. define KernelPackage/input-core/description
  40. Kernel modules for support of input device
  41. endef
  42. $(eval $(call KernelPackage,input-core))
  43. define KernelPackage/input-evdev
  44. SUBMENU:=$(INPUT_MODULES_MENU)
  45. TITLE:=Input event device
  46. KCONFIG:=CONFIG_INPUT_EVDEV
  47. FILES:=$(LINUX_DIR)/drivers/input/evdev.ko
  48. AUTOLOAD:=$(call AutoLoad,60,evdev)
  49. $(call AddDepends/input)
  50. endef
  51. define KernelPackage/input-evdev/description
  52. Kernel modules for support of input device events
  53. endef
  54. $(eval $(call KernelPackage,input-evdev))
  55. define KernelPackage/input-gpio-buttons
  56. SUBMENU:=$(INPUT_MODULES_MENU)
  57. TITLE:=Polled GPIO buttons input device
  58. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  59. KCONFIG:= \
  60. CONFIG_INPUT_GPIO_BUTTONS \
  61. CONFIG_INPUT_MISC=y
  62. FILES:=$(LINUX_DIR)/drivers/input/misc/gpio_buttons.ko
  63. AUTOLOAD:=$(call AutoLoad,62,gpio_buttons,1)
  64. endef
  65. define KernelPackage/input-gpio-buttons/description
  66. Kernel module for support polled GPIO buttons input device
  67. endef
  68. $(eval $(call KernelPackage,input-gpio-buttons))
  69. define KernelPackage/input-gpio-keys
  70. SUBMENU:=$(INPUT_MODULES_MENU)
  71. TITLE:=GPIO key support
  72. DEPENDS:= @GPIO_SUPPORT
  73. KCONFIG:= \
  74. CONFIG_KEYBOARD_GPIO \
  75. CONFIG_INPUT_KEYBOARD=y
  76. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
  77. AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
  78. $(call AddDepends/input)
  79. endef
  80. define KernelPackage/input-gpio-keys/description
  81. This driver implements support for buttons connected
  82. to GPIO pins of various CPUs (and some other chips).
  83. endef
  84. $(eval $(call KernelPackage,input-gpio-keys))
  85. define KernelPackage/input-gpio-keys-polled
  86. SUBMENU:=$(INPUT_MODULES_MENU)
  87. TITLE:=Polled GPIO key support
  88. DEPENDS:=@GPIO_SUPPORT +kmod-input-polldev
  89. KCONFIG:= \
  90. CONFIG_KEYBOARD_GPIO_POLLED \
  91. CONFIG_INPUT_KEYBOARD=y
  92. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys_polled.ko
  93. AUTOLOAD:=$(call AutoLoad,62,gpio_keys_polled,1)
  94. $(call AddDepends/input)
  95. endef
  96. define KernelPackage/input-gpio-keys-polled/description
  97. Kernel module for support polled GPIO keys input device
  98. endef
  99. $(eval $(call KernelPackage,input-gpio-keys-polled))
  100. define KernelPackage/input-gpio-encoder
  101. SUBMENU:=$(INPUT_MODULES_MENU)
  102. TITLE:=GPIO rotay encoder
  103. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  104. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  105. AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
  106. $(call AddDepends/input,@GPIO_SUPPORT)
  107. endef
  108. define KernelPackage/gpio-encoder/description
  109. Kernel module to use rotary encoders connected to GPIO pins
  110. endef
  111. $(eval $(call KernelPackage,input-gpio-encoder))
  112. define KernelPackage/input-joydev
  113. SUBMENU:=$(INPUT_MODULES_MENU)
  114. TITLE:=Joystick device support
  115. KCONFIG:=CONFIG_INPUT_JOYDEV
  116. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  117. AUTOLOAD:=$(call AutoLoad,62,joydev)
  118. $(call AddDepends/input)
  119. endef
  120. define KernelPackage/input-joydev/description
  121. Kernel module for joystick support
  122. endef
  123. $(eval $(call KernelPackage,input-joydev))
  124. define KernelPackage/input-polldev
  125. SUBMENU:=$(INPUT_MODULES_MENU)
  126. TITLE:=Polled Input device support
  127. KCONFIG:=CONFIG_INPUT_POLLDEV
  128. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  129. AUTOLOAD:=$(call AutoLoad,20,input-polldev,1)
  130. $(call AddDepends/input)
  131. endef
  132. define KernelPackage/input-polldev/description
  133. Kernel module for support of polled input devices
  134. endef
  135. $(eval $(call KernelPackage,input-polldev))
  136. define KernelPackage/input-matrixkmap
  137. SUBMENU:=$(INPUT_MODULES_MENU)
  138. TITLE:=Input matrix devices support
  139. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  140. DEPENDS:=@!LINUX_3_3
  141. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  142. AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
  143. $(call AddDepends/input)
  144. endef
  145. define KernelPackage/input-matrix/description
  146. Kernel module support for input matrix devices
  147. endef
  148. $(eval $(call KernelPackage,input-matrixkmap))
  149. define KernelPackage/acpi-button
  150. SUBMENU:=$(INPUT_MODULES_MENU)
  151. TITLE:=ACPI Button Support
  152. DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
  153. KCONFIG:=CONFIG_ACPI_BUTTON
  154. FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
  155. AUTOLOAD:=$(call AutoLoad,06,button)
  156. endef
  157. define KernelPackage/acpi-button/description
  158. Kernel module for ACPI Button support
  159. endef
  160. $(eval $(call KernelPackage,acpi-button))