@@ -36,4 +36,13 @@ config BR2_PACKAGE_WESTON_FBDEV
bool "fbdev compositor"
default y
+config BR2_PACKAGE_WESTON_RPI
+ bool "RPi compositor"
+ depends on BR2_arm # rpi-userland
+ depends on BR2_INSTALL_LIBSTDCPP # rpi-userland
+ depends on BR2_LARGEFILE # rpi-userland
+ depends on BR2_TOOLCHAIN_HAS_THREADS # rpi-userland
+ select BR2_PACKAGE_RPI_USERLAND
+ select BR2_PACKAGE_WESTON_HAS_COMPOSITOR
+
endif
@@ -23,8 +23,8 @@ WESTON_CONF_OPT = \
--disable-drm-compositor \
--disable-wayland-compositor \
--disable-headless-compositor \
- --disable-rpi-compositor \
--disable-weston-launch \
+ --disable-colord \
--disable-libunwind
ifeq ($(BR2_PACKAGE_WESTON_FBDEV),y)
@@ -33,4 +33,16 @@ else
WESTON_CONF_OPT += --disable-fbdev-compositor
endif
+ifeq ($(BR2_PACKAGE_WESTON_RPI),y)
+WESTON_DEPENDENCIES += rpi-userland
+WESTON_CONF_OPT += --enable-rpi-compositor \
+ --disable-resize-optimization \
+ --disable-setuid-install \
+ --disable-xwayland-test \
+ --disable-simple-egl-clients \
+ WESTON_NATIVE_BACKEND=rpi-backend.so
+else
+WESTON_CONF_OPT += --disable-rpi-compositor
+endif # BR2_PACKAGE_WESTON_RPI
+
$(eval $(autotools-package))