diff options
author | David Herrmann <dh.herrmann@googlemail.com> | 2012-06-10 13:16:27 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-06-18 11:42:03 (GMT) |
commit | 5148fa52a12fa1b97c730b2fe321f2aad7ea041c (patch) | |
tree | 4d0db495f3c5b34dad9cb0dd47043c77bc48e617 /samples/uhid/Makefile | |
parent | d99b8bad7663c8b920b366877a27b4176dece062 (diff) | |
download | linux-fsl-qoriq-5148fa52a12fa1b97c730b2fe321f2aad7ea041c.tar.xz |
HID: uhid: add example program
This adds an example user-space program that emulates a 3 button mouse
with wheel. It detects keyboard presses and moves the mouse accordingly.
It register a fake HID device to feed the raw HID reports into the kernel.
In this example, you could use uinput to get the same result, but this
shows how to get the same behavior with uhid so you don't need HID parsers
in user-space.
Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'samples/uhid/Makefile')
-rw-r--r-- | samples/uhid/Makefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/samples/uhid/Makefile b/samples/uhid/Makefile new file mode 100644 index 0000000..c95a696 --- /dev/null +++ b/samples/uhid/Makefile @@ -0,0 +1,10 @@ +# kbuild trick to avoid linker error. Can be omitted if a module is built. +obj- := dummy.o + +# List of programs to build +hostprogs-y := uhid-example + +# Tell kbuild to always build the programs +always := $(hostprogs-y) + +HOSTCFLAGS_uhid-example.o += -I$(objtree)/usr/include |