[PATCH evemu 3/4] make-event-names: use input.h from sysroot (instead of host system version)
Peter Hutterer
peter.hutterer at who-t.net
Sat Aug 9 00:49:31 PDT 2014
On 9/08/2014 08:18 , Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
tbh, it'd be easier if we just ship our own input.h in evemu. that way
we never have to worry about compilation errors with new kernel headers.
Cheers,
Peter
> ---
> src/make-event-names.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/make-event-names.py b/src/make-event-names.py
> index 2d0924d..945d473 100755
> --- a/src/make-event-names.py
> +++ b/src/make-event-names.py
> @@ -10,8 +10,10 @@ from __future__ import print_function
> import argparse
> import re
> import sys
> +import os
>
> -SOURCE_FILE = "/usr/include/linux/input.h"
> +# environment variable SYSROOT set by buildroot for cross-compilation
> +SOURCE_FILE = os.environ.get('SYSROOT', '') + "/usr/include/linux/input.h"
>
> class Bits(object):
> pass
>
More information about the Input-tools
mailing list