From 3c2ef71d3871999a51bd65152d29a6d0313e2e9c Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Tue, 29 Mar 2016 11:39:02 -0300 Subject: [PATCH] weston: add DRM compoitor support Signed-off-by: Gustavo Zacarias Signed-off-by: Thomas Petazzoni --- package/weston/Config.in | 10 ++++++++++ package/weston/weston.mk | 10 +++++++++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/package/weston/Config.in b/package/weston/Config.in index aaf1706c1b..8cefa411b4 100644 --- a/package/weston/Config.in +++ b/package/weston/Config.in @@ -37,6 +37,16 @@ if BR2_PACKAGE_WESTON config BR2_PACKAGE_WESTON_HAS_COMPOSITOR bool +config BR2_PACKAGE_WESTON_DRM + bool "DRM compositor" + depends on BR2_PACKAGE_MESA3D_OPENGL_EGL + select BR2_PACKAGE_LIBDRM + select BR2_PACKAGE_WESTON_HAS_COMPOSITOR + +# Uses libgbm from mesa3d +comment "DRM compositor needs an OpenGL EGL backend provided by mesa3d" + depends on !BR2_PACKAGE_MESA3D_OPENGL_EGL + config BR2_PACKAGE_WESTON_FBDEV bool "fbdev compositor" diff --git a/package/weston/weston.mk b/package/weston/weston.mk index 5af23dfab4..d600bc330b 100644 --- a/package/weston/weston.mk +++ b/package/weston/weston.mk @@ -18,7 +18,6 @@ WESTON_CONF_OPTS = \ --disable-simple-egl-clients \ --disable-xwayland \ --disable-x11-compositor \ - --disable-drm-compositor \ --disable-wayland-compositor \ --disable-headless-compositor \ --disable-weston-launch \ @@ -56,6 +55,15 @@ else WESTON_CONF_OPTS += --disable-fbdev-compositor endif +ifeq ($(BR2_PACKAGE_WESTON_DRM),y) +WESTON_CONF_OPTS += \ + --enable-drm-compositor \ + WESTON_NATIVE_BACKEND=drm-backend.so +WESTON_DEPENDENCIES += libdrm +else +WESTON_CONF_OPTS += --disable-drm-compositor +endif + ifeq ($(BR2_PACKAGE_WESTON_RPI),y) WESTON_DEPENDENCIES += rpi-userland WESTON_CONF_OPTS += --enable-rpi-compositor \ -- 2.30.2