From 1d13fccac5bf57cc9d54c5f61a32c0c1a2b62399 Mon Sep 17 00:00:00 2001 From: Hans Verkuil Date: Tue, 8 Jun 2021 14:19:48 +0200 Subject: v4l-utils: patch v4l2-controls.h Very old kernels do not have the _BITUL define. Test for this. Signed-off-by: Hans Verkuil --- sync-with-kernel.sh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sync-with-kernel.sh') diff --git a/sync-with-kernel.sh b/sync-with-kernel.sh index fa881949..e3a70a0b 100755 --- a/sync-with-kernel.sh +++ b/sync-with-kernel.sh @@ -29,6 +29,7 @@ fi cp -a ${KERNEL_DIR}/usr/include/linux/videodev2.h ${TOPSRCDIR}/include/linux cp -a ${KERNEL_DIR}/usr/include/linux/fb.h ${TOPSRCDIR}/include/linux cp -a ${KERNEL_DIR}/usr/include/linux/v4l2-controls.h ${TOPSRCDIR}/include/linux +patch -d ${TOPSRCDIR} --no-backup-if-mismatch -p1 <${TOPSRCDIR}/utils/common/v4l2-controls.patch cp -a ${KERNEL_DIR}/usr/include/linux/v4l2-common.h ${TOPSRCDIR}/include/linux cp -a ${KERNEL_DIR}/usr/include/linux/v4l2-subdev.h ${TOPSRCDIR}/include/linux cp -a ${KERNEL_DIR}/usr/include/linux/v4l2-mediabus.h ${TOPSRCDIR}/include/linux @@ -103,6 +104,7 @@ function freebsd { mkdir -p include/linux/$(dirname $i) cp ${KERNEL_DIR}/usr/include/linux/$i include/linux/$i done + patch -d ${SRCDIR} --no-backup-if-mismatch -p1 <${TOPSRCDIR}/utils/common/v4l2-controls.patch for i in ivtv.h uinput.h videodev2.h v4l2-common.h; do sed -e 's/__u8/uint8_t/g' -e 's/__u16/uint16_t/g' -e 's/__u32/uint32_t/g' -e 's/__u64/uint64_t/g' -e 's/__s8/int8_t/g' -e 's/__s16/int16_t/g' -e 's/__s32/int32_t/g' -e 's/__s64/int64_t/g' -e 's/__le32/uint32_t/g' -e 's/__user//g' -i include/linux/$i -- cgit v1.2.1