Skip to contentSkip to conversation

weston: disable v4l simple dmabuf for headers < 3.8

PATCH New Gustavo Zacarias 2 participants 2 messages Apr 20, 2016 – Apr 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston: disable v4l simple dmabuf for headers < 3.8

It uses VIDIOC_EXPBUF which only came to light with kernel 3.8, so disable it if headers are older. Fixes:
http://autobuild.buildroot.net/results/7fb/7fb9968b13f144c4576b28ecd01c82b74e4ed9d5/

---
 package/weston/weston.mk | 5 +++++
 1 file changed, 5 insertions(+)
package/weston/weston.mk +5 -0
index 1f31097..052784e 100644
@@ -26,6 +26,11 @@ WESTON_CONF_OPTS = \
 WESTON_MAKE_OPTS = \
 	WAYLAND_PROTOCOLS_DATADIR=$(STAGING_DIR)/usr/share/wayland-protocols
 
+# Uses VIDIOC_EXPBUF, only available from 3.8+
+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8),)
+WESTON_CONF_OPTS += --disable-simple-dmabuf-v4l-client
+endif
+
 ifeq ($(BR2_PACKAGE_DBUS),y)
 WESTON_CONF_OPTS += --enable-dbus
 WESTON_DEPENDENCIES += dbus
Signature · 1 line
2.7.3
#1 lore raw

PATCH 1/1 weston: disable v4l simple dmabuf for headers < 3.8

Hello,

Quoted 8 lines · Gustavo Zacarias

It uses VIDIOC_EXPBUF which only came to light with kernel 3.8, so disable it if headers are older. Fixes:
http://autobuild.buildroot.net/results/7fb/7fb9968b13f144c4576b28ecd01c82b74e4ed9d5/

---
 package/weston/weston.mk | 5 +++++
 1 file changed, 5 insertions(+)

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com