[PATCH evemu v2 4/4] make-event-names: use input.h from sysroot (instead of host system version)
Peter Hutterer
peter.hutterer at who-t.net
Mon Aug 11 17:24:57 PDT 2014
On Mon, Aug 11, 2014 at 10:26:10PM +0200, Peter Seiderer wrote:
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
>
> ---
> Changes v1 -> v2:
> - update to git head
sorry, still nak on this, I really think we should ship input.h ourselves.
had a quick look to use libevdev for this, but it's quite a bit more
involved than just adding a file and updating a few include paths, so I've
postponed that for now.
Cheers,
Peter
> ---
> python/evemu/make-event-names.py | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/python/evemu/make-event-names.py b/python/evemu/make-event-names.py
> index e1a4f3d..6ce70a9 100755
> --- a/python/evemu/make-event-names.py
> +++ b/python/evemu/make-event-names.py
> @@ -10,8 +10,10 @@ import argparse
> import re
> import sys
> import textwrap
> +import os
>
> -SOURCE_FILE = "/usr/include/linux/input.h"
> +# environment variable SYSROOT set e.g. by buildroot for cross-compilation
> +SOURCE_FILE = os.environ.get('SYSROOT', '') + "/usr/include/linux/input.h"
>
> class Bits(object):
> pass
> --
> 1.8.1.4
>
> _______________________________________________
> Input-tools mailing list
> Input-tools at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/input-tools
More information about the Input-tools
mailing list