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"
--disable-simple-egl-clients \
--disable-xwayland \
--disable-x11-compositor \
- --disable-drm-compositor \
--disable-wayland-compositor \
--disable-headless-compositor \
--disable-weston-launch \
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 \