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-buttons
72 SUBMENU
:=$(INPUT_MODULES_MENU
)
73 TITLE
:=Polled GPIO buttons input device
74 DEPENDS
:=@GPIO_SUPPORT
+kmod-input-polldev
76 CONFIG_INPUT_GPIO_BUTTONS \
78 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/gpio_buttons.ko
79 AUTOLOAD
:=$(call AutoLoad
,62,gpio_buttons
,1)
82 define KernelPackage
/input-gpio-buttons
/description
83 Kernel module for support polled GPIO buttons input device
86 $(eval
$(call KernelPackage
,input-gpio-buttons
))
89 define KernelPackage
/input-gpio-keys
90 SUBMENU
:=$(INPUT_MODULES_MENU
)
91 TITLE
:=GPIO key support
92 DEPENDS
:= @GPIO_SUPPORT
94 CONFIG_KEYBOARD_GPIO \
95 CONFIG_INPUT_KEYBOARD
=y
96 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys.ko
97 AUTOLOAD
:=$(call AutoLoad
,60,gpio_keys
)
98 $(call AddDepends
/input
)
101 define KernelPackage
/input-gpio-keys
/description
102 This driver implements support for buttons connected
103 to GPIO pins of various CPUs
(and some other chips
).
106 $(eval
$(call KernelPackage
,input-gpio-keys
))
109 define KernelPackage
/input-gpio-keys-polled
110 SUBMENU
:=$(INPUT_MODULES_MENU
)
111 TITLE
:=Polled GPIO key support
112 DEPENDS
:=@GPIO_SUPPORT
+kmod-input-polldev
114 CONFIG_KEYBOARD_GPIO_POLLED \
115 CONFIG_INPUT_KEYBOARD
=y
116 FILES
:=$(LINUX_DIR
)/drivers
/input
/keyboard
/gpio_keys_polled.ko
117 AUTOLOAD
:=$(call AutoLoad
,62,gpio_keys_polled
,1)
118 $(call AddDepends
/input
)
121 define KernelPackage
/input-gpio-keys-polled
/description
122 Kernel module for support polled GPIO keys input device
125 $(eval
$(call KernelPackage
,input-gpio-keys-polled
))
128 define KernelPackage
/input-gpio-encoder
129 SUBMENU
:=$(INPUT_MODULES_MENU
)
130 TITLE
:=GPIO rotay encoder
131 KCONFIG
:=CONFIG_INPUT_GPIO_ROTARY_ENCODER
132 FILES
:=$(LINUX_DIR
)/drivers
/input
/misc
/rotary_encoder.ko
133 AUTOLOAD
:=$(call AutoLoad
,62,rotary_encoder
)
134 $(call AddDepends
/input
,@GPIO_SUPPORT
)
137 define KernelPackage
/gpio-encoder
/description
138 Kernel module to use rotary encoders connected to GPIO pins
141 $(eval
$(call KernelPackage
,input-gpio-encoder
))
144 define KernelPackage
/input-joydev
145 SUBMENU
:=$(INPUT_MODULES_MENU
)
146 TITLE
:=Joystick device support
147 KCONFIG
:=CONFIG_INPUT_JOYDEV
148 FILES
:=$(LINUX_DIR
)/drivers
/input
/joydev.ko
149 AUTOLOAD
:=$(call AutoLoad
,62,joydev
)
150 $(call AddDepends
/input
)
153 define KernelPackage
/input-joydev
/description
154 Kernel module for joystick support
157 $(eval
$(call KernelPackage
,input-joydev
))
160 define KernelPackage
/input-polldev
161 SUBMENU
:=$(INPUT_MODULES_MENU
)
162 TITLE
:=Polled Input device support
163 KCONFIG
:=CONFIG_INPUT_POLLDEV
164 FILES
:=$(LINUX_DIR
)/drivers
/input
/input-polldev.ko
165 AUTOLOAD
:=$(call AutoLoad
,20,input-polldev
,1)
166 $(call AddDepends
/input
)
169 define KernelPackage
/input-polldev
/description
170 Kernel module for support of polled input devices
173 $(eval
$(call KernelPackage
,input-polldev
))
176 define KernelPackage
/input-matrixkmap
177 SUBMENU
:=$(INPUT_MODULES_MENU
)
178 TITLE
:=Input matrix devices support
179 KCONFIG
:=CONFIG_INPUT_MATRIXKMAP
181 FILES
:=$(LINUX_DIR
)/drivers
/input
/matrix-keymap.ko
182 AUTOLOAD
:=$(call AutoLoad
,20,matrix-keymap
)
183 $(call AddDepends
/input
)
186 define KernelPackage
/input-matrix
/description
187 Kernel module support for input matrix devices
190 $(eval
$(call KernelPackage
,input-matrixkmap
))
193 define KernelPackage
/acpi-button
194 SUBMENU
:=$(INPUT_MODULES_MENU
)
195 TITLE
:=ACPI Button Support
196 DEPENDS
:=@
(TARGET_x86_generic||TARGET_x86_kvm_guest||TARGET_x86_xen_domu
) +kmod-input-evdev
197 KCONFIG
:=CONFIG_ACPI_BUTTON
198 FILES
:=$(LINUX_DIR
)/drivers
/acpi
/button.ko
199 AUTOLOAD
:=$(call AutoLoad
,06,button
)
202 define KernelPackage
/acpi-button
/description
203 Kernel module for ACPI Button support
206 $(eval
$(call KernelPackage
,acpi-button
))