configs/bananapro: bump Linux to 4.10.4
[buildroot-gz.git] / package / dvb-apps / 0001-Fix-generate-keynames.patch
blob498607d97db26c166381c615aa59487f92a5575c
1 Fix generate-keynames.sh script for cross-compilation
3 generate-keynames.sh reads /usr/include/linux to find the keyname
4 symbols. However, when cross-compiling, the include path points
5 somewhere else. Allow the user to pass CROSS_ROOT to point to the
6 root of the cross-compilation environment.
8 Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
9 ---
10 diff -rup dvb-apps-83c746462ccb.orig/util/av7110_loadkeys/generate-keynames.sh dvb-apps-83c746462ccb/util/av7110_loadkeys/generate-keynames.sh
11 --- dvb-apps-83c746462ccb.orig/util/av7110_loadkeys/generate-keynames.sh 2012-12-06 10:38:07.000000000 +0100
12 +++ dvb-apps-83c746462ccb/util/av7110_loadkeys/generate-keynames.sh 2013-08-29 21:47:09.717991439 +0200
13 @@ -18,7 +18,7 @@ echo "};" >> $1
14 echo >> $1
15 echo >> $1
16 echo "static struct input_key_name key_name [] = {" >> $1
17 -for x in $(cat /usr/include/linux/input.h input_fake.h | \
18 +for x in $(cat ${CROSS_ROOT}/usr/include/linux/input.h input_fake.h | \
19 egrep "#define[ \t]+KEY_" | grep -v KEY_MAX | \
20 cut -f 1 | cut -f 2 -d " " | sort -u) ; do
21 echo " { \"$(echo $x | cut -b 5-)\", $x }," >> $1
22 @@ -26,7 +26,7 @@ done
23 echo "};" >> $1
24 echo >> $1
25 echo "static struct input_key_name btn_name [] = {" >> $1
26 -for x in $(cat /usr/include/linux/input.h input_fake.h | \
27 +for x in $(cat ${CROSS_ROOT}/usr/include/linux/input.h input_fake.h | \
28 egrep "#define[ \t]+BTN_" | \
29 cut -f 1 | cut -f 2 -d " " | sort -u) ; do
30 echo " { \"$(echo $x | cut -b 5-)\", $x }," >> $1