utils: update-kernel-headers: Fix destination path
The update-kernel-headers.sh script copies all headers to include/linux/
without creating subdirectories. This behaviour was correct until the
addition of linux/media/v4l2-isp.h, which should be copied to
include/linux/media/v4l2-isp.h, not include/linux/v4l2-isp.h. Fix it.
Fixes: ee8f88fc64 ("include: linux: Add v4l2-isp.h")
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Barnabás Pőcze <barnabas.pocze@ideasonboard.com>
This commit is contained in:
@@ -64,7 +64,7 @@ headers="
|
||||
"
|
||||
|
||||
for header in $headers ; do
|
||||
name=$(basename "${header}")
|
||||
name="${header#*/}"
|
||||
cp "${install_dir}/usr/include/${header}" "${header_dir}/${name}"
|
||||
done
|
||||
|
||||
|
||||
Reference in New Issue
Block a user