update-linux-headers: copy standard-headers files one by one
commiteddb4de3cc1403546b29e260068c4c1397cbd62d
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Sep 2015 13:25:52 +0000 (9 15:25 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 16 Sep 2015 15:33:32 +0000 (16 17:33 +0200)
tree48ce94a5d4f4430928e823bbddd0cd884b32bad6
parent120758fba4c52d1ccf3a8ae1fe3b7495f2b584d8
update-linux-headers: copy standard-headers files one by one

cp_virtio is called for both the asm-s390/ and linux/ directories,
so it looks for pci_regs.h and input.h files in asm-s390/ too.  This
makes little sense.  In the next patch we will have the opposite
problem; we want to add asm-x86/hyperv.h, and there's also a
linux/hyperv.h file with unwanted dependencies on additional Linux
uapi headers.  We do not want to copy linux/hyperv.h.

The solution is to make cp_virtio (now renamed to cp_portable) copy
one file only, instead of using the "find" command, and call it multiple
times.  The new function is really just a reindentation of the old one.

Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/update-linux-headers.sh