From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@xxxxxxx> generate-keynames.sh reads /usr/include/linux to find the keyname symbols. However, when cross-compiling, the include path points somewhere else. Allow the user to pass CROSS_ROOT to point to the root of the cross-compilation environment. Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@xxxxxxx> --- util/av7110_loadkeys/generate-keynames.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/av7110_loadkeys/generate-keynames.sh b/util/av7110_loadkeys/generate-keynames.sh index 49d2b71..cb8f5c5 100644 --- a/util/av7110_loadkeys/generate-keynames.sh +++ b/util/av7110_loadkeys/generate-keynames.sh @@ -18,7 +18,7 @@ echo "};" >> $1 echo >> $1 echo >> $1 echo "static struct input_key_name key_name [] = {" >> $1 -for x in $(cat /usr/include/linux/input.h input_fake.h | \ +for x in $(cat ${CROSS_ROOT}/usr/include/linux/input.h input_fake.h | \ egrep "#define[ \t]+KEY_" | grep -v KEY_MAX | \ cut -f 1 | cut -f 2 -d " " | sort -u) ; do echo " { \"$(echo $x | cut -b 5-)\", $x }," >> $1 @@ -26,7 +26,7 @@ done echo "};" >> $1 echo >> $1 echo "static struct input_key_name btn_name [] = {" >> $1 -for x in $(cat /usr/include/linux/input.h input_fake.h | \ +for x in $(cat ${CROSS_ROOT}/usr/include/linux/input.h input_fake.h | \ egrep "#define[ \t]+BTN_" | \ cut -f 1 | cut -f 2 -d " " | sort -u) ; do echo " { \"$(echo $x | cut -b 5-)\", $x }," >> $1 -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html