input.mk 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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-keys
  56. SUBMENU:=$(INPUT_MODULES_MENU)
  57. TITLE:=GPIO key support
  58. DEPENDS:= @GPIO_SUPPORT
  59. KCONFIG:= \
  60. CONFIG_KEYBOARD_GPIO \
  61. CONFIG_INPUT_KEYBOARD=y
  62. FILES:=$(LINUX_DIR)/drivers/input/keyboard/gpio_keys.ko
  63. AUTOLOAD:=$(call AutoLoad,60,gpio_keys)
  64. $(call AddDepends/input)
  65. endef
  66. define KernelPackage/input-gpio-keys/description
  67. This driver implements support for buttons connected
  68. to GPIO pins of various CPUs (and some other chips).
  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 AutoLoad,62,gpio_keys_polled,1)
  80. $(call AddDepends/input)
  81. endef
  82. define KernelPackage/input-gpio-keys-polled/description
  83. Kernel module for support polled GPIO keys input device
  84. endef
  85. $(eval $(call KernelPackage,input-gpio-keys-polled))
  86. define KernelPackage/input-gpio-encoder
  87. SUBMENU:=$(INPUT_MODULES_MENU)
  88. TITLE:=GPIO rotay encoder
  89. KCONFIG:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
  90. FILES:=$(LINUX_DIR)/drivers/input/misc/rotary_encoder.ko
  91. AUTOLOAD:=$(call AutoLoad,62,rotary_encoder)
  92. $(call AddDepends/input,@GPIO_SUPPORT)
  93. endef
  94. define KernelPackage/gpio-encoder/description
  95. Kernel module to use rotary encoders connected to GPIO pins
  96. endef
  97. $(eval $(call KernelPackage,input-gpio-encoder))
  98. define KernelPackage/input-joydev
  99. SUBMENU:=$(INPUT_MODULES_MENU)
  100. TITLE:=Joystick device support
  101. KCONFIG:=CONFIG_INPUT_JOYDEV
  102. FILES:=$(LINUX_DIR)/drivers/input/joydev.ko
  103. AUTOLOAD:=$(call AutoLoad,62,joydev)
  104. $(call AddDepends/input)
  105. endef
  106. define KernelPackage/input-joydev/description
  107. Kernel module for joystick support
  108. endef
  109. $(eval $(call KernelPackage,input-joydev))
  110. define KernelPackage/input-polldev
  111. SUBMENU:=$(INPUT_MODULES_MENU)
  112. TITLE:=Polled Input device support
  113. KCONFIG:=CONFIG_INPUT_POLLDEV
  114. FILES:=$(LINUX_DIR)/drivers/input/input-polldev.ko
  115. AUTOLOAD:=$(call AutoLoad,20,input-polldev,1)
  116. $(call AddDepends/input)
  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. KCONFIG:=CONFIG_INPUT_MATRIXKMAP
  126. DEPENDS:=@!LINUX_3_3
  127. FILES:=$(LINUX_DIR)/drivers/input/matrix-keymap.ko
  128. AUTOLOAD:=$(call AutoLoad,20,matrix-keymap)
  129. $(call AddDepends/input)
  130. endef
  131. define KernelPackage/input-matrix/description
  132. Kernel module support for input matrix devices
  133. endef
  134. $(eval $(call KernelPackage,input-matrixkmap))
  135. define KernelPackage/acpi-button
  136. SUBMENU:=$(INPUT_MODULES_MENU)
  137. TITLE:=ACPI Button Support
  138. DEPENDS:=@(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu) +kmod-input-evdev
  139. KCONFIG:=CONFIG_ACPI_BUTTON
  140. FILES:=$(LINUX_DIR)/drivers/acpi/button.ko
  141. AUTOLOAD:=$(call AutoLoad,06,button)
  142. endef
  143. define KernelPackage/acpi-button/description
  144. Kernel module for ACPI Button support
  145. endef
  146. $(eval $(call KernelPackage,acpi-button))