Skip to contentSkip to conversation

gst-fsl-plugin: fix build for kernel headers >= 3.10

PATCH In review Gary Bisson 3 participants 4 messages Jul 27, 2014 – Jul 29, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gst-fsl-plugin: fix build for kernel headers >= 3.10

This package couldn't build using a toolchain with kernel headers >= 3.10 because of the use of VIDIOC_DBG_G_CHIP_IDENT. As stated in videodev2.h, this ioctl should never be used.
---
Hi all,
It has been reported that this package couldn't be built using a recent toolchain such as CodeSourcery 2013.11 as its kernel headers are > 3.10. After looking at the source code it appears it comes from the use of VIDIOC_DBG_G_CHIP_IDENT ioctl. Also, nothing justifies the use of that obsolete ioctl. Its only purpose is to get the video device name so this patch actually removes those unnecessary calls.
It'd be great to have those call removed on next package release. Thanks,
Gary

---
 recipes-multimedia/gstreamer/gst-fsl-plugin.inc    |  3 +-
 ...e-use-of-obsolete-VIDIOC_DBG_G_CHIP_IDENT.patch | 69 ++++++++++++++++++++++
 2 files changed, 71 insertions(+), 1 deletion(-)
 create mode 100644 recipes-multimedia/gstreamer/gst-fsl-plugin/Remove-use-of-obsolete-VIDIOC_DBG_G_CHIP_IDENT.patch
recipes-multimedia/gstreamer/gst-fsl-plugin.inc +2 -1
index dca9209..f8685bc 100644
@@ -19,7 +19,8 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552 \
 S = "${WORKDIR}/gst-fsl-plugins-${PV}"
 
 SRC_URI = "${FSL_MIRROR}/gst-fsl-plugins-${PV}.tar.gz \
-           file://build-Fix-out-of-tree-build.patch"
+           file://build-Fix-out-of-tree-build.patch \
+           file://Remove-use-of-obsolete-VIDIOC_DBG_G_CHIP_IDENT.patch"
 
 inherit autotools pkgconfig
 
recipes-multimedia/gstreamer/gst-fsl-plugin/Remove-use-of-obsolete-VIDIOC_DBG_G_CHIP_IDENT.patch new file +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.0.1
#1 lore raw

Hello Gary,

(adding Lauren in Cc)

Quoted 3 lines · Gary Bisson

This package couldn't build using a toolchain with kernel headers >= 3.10 because of the use of VIDIOC_DBG_G_CHIP_IDENT. As stated in videodev2.h, this ioctl should never be used.

The patch seems fine for me. Lauren, can you ask internally for a review?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#2 lore raw

I've forwarded to multimedia team yesterday and waiting on their comment.

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Otavio Salvador
Sent: Monday, July 28, 2014 4:51 PM
To: Gary Bisson; Post Lauren-RAA013
Cc: [email protected]
Subject: Re: [meta-freescale] [meta-fsl-arm][PATCH] gst-fsl-plugin: fix build for kernel headers >= 3.10

Hello Gary,

(adding Lauren in Cc)

Quoted 3 lines · Gary Bisson

This package couldn't build using a toolchain with kernel headers >= 3.10 because of the use of VIDIOC_DBG_G_CHIP_IDENT. As stated in videodev2.h, this ioctl should never be used.

The patch seems fine for me. Lauren, can you ask internally for a review?

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750
#3 lore raw
Quoted 1 line · Lauren Post

I've forwarded to multimedia team yesterday and waiting on their comment.

I have put it in master-next[1] and the build has suceed in all backends.

1. http://ci.ossystems.com.br/job/fsl-community-bsp-master/227/changes

Signature · 3 lines
Otavio Salvador                             O.S. Systems
http://www.ossystems.com.br        http://code.ossystems.com.br
Mobile: +55 (53) 9981-7854            Mobile: +1 (347) 903-9750