[PATCH evemu 3/4] make-event-names: use input.h from sysroot (instead of host system version)
Peter Seiderer
ps.report at gmx.net
Fri Aug 8 15:18:10 PDT 2014
Signed-off-by: Peter Seiderer <ps.report at gmx.net>
---
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
--
1.8.1.4
More information about the Input-tools
mailing list