2 # Copyright (C) 2006-2013 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 INPUT_MODULES_MENU
:=Input modules
10 define KernelPackage
/hid
11 SUBMENU
:=$(INPUT_MODULES_MENU
)
13 KCONFIG
:=CONFIG_HID CONFIG_HIDRAW
=y
14 FILES
:=$(LINUX_DIR
)/drivers
/hid
/hid.ko
15 AUTOLOAD
:=$(call AutoLoad
,61,hid
)
16 $(call AddDepends
/input
,+kmod-input-evdev
)
19 define KernelPackage
/hid
/description
20 Kernel modules for HID devices
23 $(eval
$(call KernelPackage
,hid
))
25 define KernelPackage
/hid-generic
26 SUBMENU
:=$(INPUT_MODULES_MENU
)
27 TITLE
:=Generic HID device support
28 KCONFIG
:=CONFIG_HID_GENERIC
29 FILES
:=$(LINUX_DIR
)/drivers
/hid
/hid-generic.ko
30 AUTOLOAD
:=$(call AutoLoad
,62,hid-generic
)
31 $(call AddDepends
/hid
)
34 define KernelPackage
/hid
/description
35 Kernel modules for generic HID device
(e.g. keyboards and mice
) support
38 $(eval
$(call KernelPackage
,hid-generic
))
40 define KernelPackage
/input-core
41 SUBMENU
:=$(INPUT_MODULES_MENU
)
42 TITLE
:=Input device core
44 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-core.ko
45 AUTOLOAD
:=$(call AutoLoad
,19,input-core
,1)
48 define KernelPackage
/input-core
/description
49 Kernel modules for support of input device
52 $(eval
$(call KernelPackage
,input-core
))
55 define KernelPackage
/input-evdev
56 SUBMENU
:=$(INPUT_MODULES_MENU
)
57 TITLE
:=Input event device
58 KCONFIG
:=CONFIG_INPUT_EVDEV
59 FILES
:=$(LINUX_DIR
)/drivers
/input
/evdev.ko
60 AUTOLOAD
:=$(call AutoLoad
,60,evdev
)
61 $(call AddDepends
/input
)
64 define KernelPackage
/input-evdev
/description
65 Kernel modules for support of input device events
68 $(eval
$(call KernelPackage
,input-evdev
))
71 define KernelPackage
/input-gpio-keys
72 SUBMENU
:=$(INPUT_MODULES_MENU
)
73 TITLE
:=GPIO key support
74 DEPENDS
:= @GPIO_SUPPORT
76 CONFIG_KEYBOARD_GPIO \
77 CONFIG_INPUT_KEYBOARD
=y
78 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys.ko
79 AUTOLOAD
:=$(call AutoLoad
,60,gpio_keys
)
80 $(call AddDepends
/input
)
83 define KernelPackage
/input-gpio-keys
/description
84 This driver implements support for buttons connected
85 to GPIO pins of various CPUs
(and some other chips
).
88 $(eval
$(call KernelPackage
,input-gpio-keys
))
91 define KernelPackage
/input-gpio-keys-polled
92 SUBMENU
:=$(INPUT_MODULES_MENU
)
93 TITLE
:=Polled GPIO key support
94 DEPENDS
:=@GPIO_SUPPORT
+kmod-input-polldev
96 CONFIG_KEYBOARD_GPIO_POLLED \
97 CONFIG_INPUT_KEYBOARD
=y
98 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys_polled.ko
99 AUTOLOAD
:=$(call AutoLoad
,62,gpio_keys_polled
,1)
100 $(call AddDepends
/input
)
103 define KernelPackage
/input-gpio-keys-polled
/description
104 Kernel module for support polled GPIO keys input device
107 $(eval
$(call KernelPackage
,input-gpio-keys-polled
))
110 define KernelPackage
/input-gpio-encoder
111 SUBMENU
:=$(INPUT_MODULES_MENU
)
112 TITLE
:=GPIO rotay encoder
113 KCONFIG
:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
114 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/rotary_encoder.ko
115 AUTOLOAD
:=$(call AutoLoad
,62,rotary_encoder
)
116 $(call AddDepends
/input
,@GPIO_SUPPORT
)
119 define KernelPackage
/gpio-encoder
/description
120 Kernel module to use rotary encoders connected to GPIO pins
123 $(eval
$(call KernelPackage
,input-gpio-encoder
))
126 define KernelPackage
/input-joydev
127 SUBMENU
:=$(INPUT_MODULES_MENU
)
128 TITLE
:=Joystick device support
129 KCONFIG
:=CONFIG_INPUT_JOYDEV
130 FILES
:=$(LINUX_DIR
)/drivers
/input
/joydev.ko
131 AUTOLOAD
:=$(call AutoLoad
,62,joydev
)
132 $(call AddDepends
/input
)
135 define KernelPackage
/input-joydev
/description
136 Kernel module for joystick support
139 $(eval
$(call KernelPackage
,input-joydev
))
142 define KernelPackage
/input-polldev
143 SUBMENU
:=$(INPUT_MODULES_MENU
)
144 TITLE
:=Polled Input device support
145 KCONFIG
:=CONFIG_INPUT_POLLDEV
146 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-polldev.ko
147 AUTOLOAD
:=$(call AutoLoad
,20,input-polldev
,1)
148 $(call AddDepends
/input
)
151 define KernelPackage
/input-polldev
/description
152 Kernel module for support of polled input devices
155 $(eval
$(call KernelPackage
,input-polldev
))
158 define KernelPackage
/input-matrixkmap
159 SUBMENU
:=$(INPUT_MODULES_MENU
)
160 TITLE
:=Input matrix devices support
161 KCONFIG
:=CONFIG_INPUT_MATRIXKMAP
163 FILES
:=$(LINUX_DIR
)/drivers
/input
/matrix-keymap.ko
164 AUTOLOAD
:=$(call AutoLoad
,20,matrix-keymap
)
165 $(call AddDepends
/input
)
168 define KernelPackage
/input-matrix
/description
169 Kernel module support for input matrix devices
172 $(eval
$(call KernelPackage
,input-matrixkmap
))
175 define KernelPackage
/acpi-button
176 SUBMENU
:=$(INPUT_MODULES_MENU
)
177 TITLE
:=ACPI Button Support
178 DEPENDS
:=@
(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu
) +kmod-input-evdev
179 KCONFIG
:=CONFIG_ACPI_BUTTON
180 FILES
:=$(LINUX_DIR
)/drivers
/acpi
/button.ko
181 AUTOLOAD
:=$(call AutoLoad
,06,button
)
184 define KernelPackage
/acpi-button
/description
185 Kernel module for ACPI Button support
188 $(eval
$(call KernelPackage
,acpi-button
))