Skip to content

Commit

Permalink
Exclude KEY_MIN_INTERESTING from event table
Browse files Browse the repository at this point in the history
This is an identifier for internal use, not a real key name.  It's
aliased to KEY_MUTE.  Which one gets compiled into thd depends on the
order the #defines are output by "cc -dM".
  • Loading branch information
dreiss authored and wertarbyte committed Jun 12, 2016
1 parent b32787b commit 737b853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ linux_input_defs_gen.inc:
echo "#include <linux/input.h>" | $(CC) $(CPPFLAGS) -dM -E - > $@

evtable_%.inc: linux_input_defs_gen.inc
awk '/^#define $*_/ && $$2 !~ /_(MAX|CNT|VERSION)$$/ {print "EV_MAP("$$2"),"}' $< > $@
awk '/^#define $*_/ && $$2 !~ /_(MIN_INTERESTING|MAX|CNT|VERSION)$$/ {print "EV_MAP("$$2"),"}' $< > $@

version.h: version.inc
sed -r 's!(.*)!#define TH_VERSION "\1"!' $< > $@
Expand Down

0 comments on commit 737b853

Please sign in to comment.