update-linux-headers.sh (fd1a9ef9c2493b5bc98e8e041333a57b635c5d71) | update-linux-headers.sh (120758fba4c52d1ccf3a8ae1fe3b7495f2b584d8) |
---|---|
1#!/bin/sh -e 2# 3# Update Linux kernel headers QEMU requires from a specified kernel tree. 4# 5# Copyright (C) 2011 Siemens AG 6# 7# Authors: 8# Jan Kiszka <jan.kiszka@siemens.com> --- 25 unchanged lines hidden (view full) --- 34 virtio=$(find "$from" -name '*virtio*h' -o -name "input.h" -o -name "pci_regs.h") 35 if [ "$virtio" ]; then 36 rm -rf "$to" 37 mkdir -p "$to" 38 for f in $virtio; do 39 if 40 grep '#include' "$f" | grep -v -e 'linux/virtio' \ 41 -e 'linux/types' \ | 1#!/bin/sh -e 2# 3# Update Linux kernel headers QEMU requires from a specified kernel tree. 4# 5# Copyright (C) 2011 Siemens AG 6# 7# Authors: 8# Jan Kiszka <jan.kiszka@siemens.com> --- 25 unchanged lines hidden (view full) --- 34 virtio=$(find "$from" -name '*virtio*h' -o -name "input.h" -o -name "pci_regs.h") 35 if [ "$virtio" ]; then 36 rm -rf "$to" 37 mkdir -p "$to" 38 for f in $virtio; do 39 if 40 grep '#include' "$f" | grep -v -e 'linux/virtio' \ 41 -e 'linux/types' \ |
42 -e 'stdint' \ |
|
42 -e 'linux/if_ether' \ 43 -e 'sys/' \ 44 > /dev/null 45 then 46 echo "Unexpected #include in input file $f". 47 exit 2 48 fi 49 --- 83 unchanged lines hidden --- | 43 -e 'linux/if_ether' \ 44 -e 'sys/' \ 45 > /dev/null 46 then 47 echo "Unexpected #include in input file $f". 48 exit 2 49 fi 50 --- 83 unchanged lines hidden --- |