diff options
author | Elliott Hughes <enh@google.com> | 2016-02-08 14:09:10 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2016-02-08 14:56:03 -0800 |
commit | bd02a47b227430e7e9702dcfb11d4eb445847817 (patch) | |
tree | 1565de4aaf87f98743e4f3887f8db8447a5e6b6f /toolbox/generate-input.h-labels.py | |
parent | ead369bdf03e7b0f065dcf115f609e41c634429a (diff) |
Fix generation of event labels for getevent.
The recent uapi header update moved all the interesting constants
out into another file. Track that, and add the missing makefile
dependency.
Bug: http://b/27073568
Change-Id: I8ac1dd1122865479f69a76cbf427d4aacdf7b790
Diffstat (limited to 'toolbox/generate-input.h-labels.py')
-rwxr-xr-x | toolbox/generate-input.h-labels.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/toolbox/generate-input.h-labels.py b/toolbox/generate-input.h-labels.py index ebb95887a..30485a0e6 100755 --- a/toolbox/generate-input.h-labels.py +++ b/toolbox/generate-input.h-labels.py @@ -18,6 +18,7 @@ import os import re +import sys input_prop_list = [] ev_list = [] @@ -36,7 +37,7 @@ ff_list = [] r = re.compile(r'#define\s+(\S+)\s+((?:0x)?\d+)') -with open('bionic/libc/kernel/uapi/linux/input.h', 'r') as f: +with open(sys.argv[1], 'r') as f: for line in f: m = r.match(line) if m: |