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:
Laurent Pinchart
2026-04-04 02:52:23 +03:00
parent 5785d9649f
commit 6c40aa5a20

View File

@@ -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