virtio-input: enable on non-linux hosts
PATCH 1/1 virtio-input: enable on non-linux hosts
As we include a copy of the linux input layer header file in the qemu source tree (include/standard-headers/linux/input.h) the virtio-input bits (except pass-through) should build and work just fine on non-linux hosts too. Tweak Makefile accordingly.
--- hw/input/Makefile.objs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/input/Makefile.objs +1 -1
@@ -8,9 +8,9 @@ common-obj-$(CONFIG_STELLARIS_INPUT) += stellaris_input.o common-obj-$(CONFIG_TSC2005) += tsc2005.o common-obj-$(CONFIG_VMMOUSE) += vmmouse.o -ifeq ($(CONFIG_LINUX),y) common-obj-$(CONFIG_VIRTIO) += virtio-input.o common-obj-$(CONFIG_VIRTIO) += virtio-input-hid.o +ifeq ($(CONFIG_LINUX),y) common-obj-$(CONFIG_VIRTIO) += virtio-input-host.o endif
Signature · 1 line
1.8.3.1
Quoted 4 lines · Gerd Hoffmann
As we include a copy of the linux input layer header file in the qemu source tree (
include/standard-headers/linux/input.h) the virtio-input bits (except pass-through) should build and work just fine on non-linux hosts too. TweakMakefileaccordingly.
Does "should" here mean "I haven't actually tested it" ? :-)
thanks
-- PMM
Quoted 7 lines · Peter Maydell
Quoted 4 lines · Gerd Hoffmann
As we include a copy of the linux input layer header file in the qemu source tree (
include/standard-headers/linux/input.h) the virtio-input bits (except pass-through) should build and work just fine on non-linux hosts too. TweakMakefileaccordingly.Does "should" here mean "I haven't actually tested it" ? :-)
Did a build test on freebsd -- passed.
cheers,
Gerd
Quoted 10 lines · Gerd Hoffmann
Quoted 7 lines · Peter Maydell
Quoted 4 lines · Gerd Hoffmann
As we include a copy of the linux input layer header file in the qemu source tree (
include/standard-headers/linux/input.h) the virtio-input bits (except pass-through) should build and work just fine on non-linux hosts too. TweakMakefileaccordingly.Does "should" here mean "I haven't actually tested it" ? :-)
Did a build test on freebsd -- passed.
Oops, the windows cross builds fails though (due to include/standard-headers/linux/input.h including sys/ioctl.h).
Ok, scratch that one, back to the drawing board ...
sorry,
Gerd
Quoted 6 lines · Gerd Hoffmann
Quoted 2 lines
Quoted 2 lines
Did a build test on freebsd -- passed.
Oops, the windows cross builds fails though (due to
include/standard-headers/linux/input.hincludingsys/ioctl.h).Ok, scratch that one, back to the drawing board ...
The sys/ioctl.h include doesn't seem too useful. This patch compiles:
hw/input/virtio-input-host.c +1 -0
@@ -12,6 +12,7 @@#include "hw/virtio/virtio-input.h" #include "standard-headers/linux/input.h" +#include <sys/ioctl.h> /* ----------------------------------------------------------------- */
(quoted diff) +0 -0
b/include/standard-headers/linux/input.h
index a459dd2..b003c67 100644
include/standard-headers/linux/input.h +0 -1
@@ -10,7 +10,6 @@#include <sys/time.h> -#include <sys/ioctl.h> #include <sys/types.h> #include "standard-headers/linux/types.h"
Perhaps we can drop the include in scripts/update-linux-headers.sh?
Paolo