[PATCH evemu v2 4/4] make-event-names: use input.h from sysroot (instead of host system version)
Peter Seiderer
ps.report at gmx.net
Mon Aug 11 13:26:10 PDT 2014
Signed-off-by: Peter Seiderer <ps.report at gmx.net>
---
Changes v1 -> v2:
- update to git head
---
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
More information about the Input-tools
mailing list