summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2015-03-19 11:55:24 +0100
committerGerd Hoffmann <kraxel@redhat.com>2015-05-29 10:30:06 +0200
commit2fe7c31832a345cdc34314cdcd5478d06b884842 (patch)
tree38850d343d948fb1fdb4f46002541a9addd1d4d5 /scripts
parent33aa30cafcce053b833f9fe09fbb88e2f54b93aa (diff)
virtio-input: add linux/input.h
Linux input layer (evdev) header file. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/update-linux-headers.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index f208ec9c51..baf4220b84 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -31,7 +31,7 @@ fi
cp_virtio() {
from=$1
to=$2
- virtio=$(find "$from" -name '*virtio*h')
+ virtio=$(find "$from" -name '*virtio*h' -o -name "input.h")
if [ "$virtio" ]; then
rm -rf "$to"
mkdir -p "$to"
@@ -40,6 +40,7 @@ cp_virtio() {
grep '#include' "$f" | grep -v -e 'linux/virtio' \
-e 'linux/types' \
-e 'linux/if_ether' \
+ -e 'sys/' \
> /dev/null
then
echo "Unexpected #include in input file $f".
@@ -48,6 +49,7 @@ cp_virtio() {
header=$(basename "$f");
sed -e 's/__u\([0-9][0-9]*\)/uint\1_t/g' \
+ -e 's/__s\([0-9][0-9]*\)/int\1_t/g' \
-e 's/__le\([0-9][0-9]*\)/uint\1_t/g' \
-e 's/__be\([0-9][0-9]*\)/uint\1_t/g' \
-e 's/<linux\/\([^>]*\)>/"standard-headers\/linux\/\1"/' \