Patchwork [v2] xf86-input-vmmouse: Make xf86-input-vmmouse available only to x86/x86_64 architectures

login
register
mail settings
Submitter Markos Chandras
Date April 25, 2012, 3:49 p.m.
Message ID <1335368942-20039-1-git-send-email-markos.chandras@imgtec.com>
Download mbox | patch
Permalink /patch/155011/
State Accepted
Commit 07f41187cc8667c92ea5b27d51ddfc0311fcd0f7
Headers show

Comments

Markos Chandras - April 25, 2012, 3:49 p.m.
The xf86-input-vmmouse source code fails to compile intentionally on any
architecture but x86/x86_64. The following error is printed when compiling for a
different architecture:

vmmouse_proto.h:62:2: error: #error The vmmouse protocol is only supported on
x86 architectures.
vmmouse_proto.c:117:2: error: #error "VMMouse is only supported on x86 and
x86-64.

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
---
 package/x11r7/xdriver_xf86-input-vmmouse/Config.in |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Thomas Petazzoni - April 25, 2012, 5:35 p.m.
Le Wed, 25 Apr 2012 16:49:02 +0100,
Markos Chandras <markos.chandras@imgtec.com> a écrit :

> The xf86-input-vmmouse source code fails to compile intentionally on any
> architecture but x86/x86_64. The following error is printed when compiling for a
> different architecture:
> 
> vmmouse_proto.h:62:2: error: #error The vmmouse protocol is only supported on
> x86 architectures.
> vmmouse_proto.c:117:2: error: #error "VMMouse is only supported on x86 and
> x86-64.
> 
> Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>

Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Peter Korsgaard - May 1, 2012, 7:59 p.m.
>>>>> "Markos" == Markos Chandras <markos.chandras@imgtec.com> writes:

 Markos> The xf86-input-vmmouse source code fails to compile
 Markos> intentionally on any architecture but x86/x86_64. The following
 Markos> error is printed when compiling for a different architecture:

Committed, thanks.

Patch

diff --git a/package/x11r7/xdriver_xf86-input-vmmouse/Config.in b/package/x11r7/xdriver_xf86-input-vmmouse/Config.in
index 377e7e4..b2284cd 100644
--- a/package/x11r7/xdriver_xf86-input-vmmouse/Config.in
+++ b/package/x11r7/xdriver_xf86-input-vmmouse/Config.in
@@ -1,5 +1,6 @@ 
 config BR2_PACKAGE_XDRIVER_XF86_INPUT_VMMOUSE
 	bool "xf86-input-vmmouse"
+	depends on BR2_i386 || BR2_x86_64
 	select BR2_PACKAGE_XSERVER_XORG_SERVER
 	select BR2_PACKAGE_XPROTO_INPUTPROTO
 	select BR2_PACKAGE_XPROTO_RANDRPROTO