Skip to contentSkip to conversation

weston: revive 1.6.0 while HDMI frame tearing/duplication is resolved

PATCH New Denys Dmytriyenko 1 participant 1 message Mar 21, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 weston: revive 1.6.0 while HDMI frame tearing/duplication is resolved

From: Denys Dmytriyenko <[email protected]>

[LCPD-6378]

---
 meta-arago-distro/conf/distro/arago.conf           |  9 +-------
 .../conf/distro/include/arago-prefs.inc            |  4 ++++
 ...abling-DRM-backend-with-multiple-displays.patch |  0
 .../wayland/weston-1.6.0/wayland_env.sh            | 13 ++++++++++++
 .../wayland/weston-1.6.0/weston.ini                | 10 +++++++++
 .../recipes-graphics/wayland/weston_1.6.0.bbappend | 24 ++++++++++++++++++++++
 6 files changed, 52 insertions(+), 8 deletions(-)
 rename meta-arago-distro/recipes-graphics/wayland/{weston => weston-1.6.0}/0001-weston-Enabling-DRM-backend-with-multiple-displays.patch (100%)
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/wayland_env.sh
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/weston.ini
 create mode 100644 meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend
meta-arago-distro/conf/distro/arago.conf +1 -8
index 526e1a9..88aa6df 100644
@@ -41,14 +41,7 @@ GST_PROVIDER ?= "1.0"
 QT_PROVIDER ?= "qt5"
 
 # Distro-specific package configuration
-PACKAGECONFIG_pn-weston = "fbdev kms launch libinput"
-PACKAGECONFIG_append_pn-weston_omap-a15 = " egl"
-PACKAGECONFIG_remove_pn-weston_omap-a15 = "fbdev"
-PACKAGECONFIG_append_pn-weston_ti43x    = " egl"
-PACKAGECONFIG_remove_pn-weston_ti43x    = "fbdev"
-PACKAGECONFIG_append_pn-weston_ti33x    = " egl"
-PACKAGECONFIG_remove_pn-weston_ti33x    = "fbdev"
-
+PACKAGECONFIG_pn-weston = "egl kms launch libinput"
 
 # Configure Qt5 flags (GLES is still required for qtdeclarative and qtwebkit)
 PACKAGECONFIG_GL_pn-qtbase = "gles2 linuxfb"
meta-arago-distro/conf/distro/include/arago-prefs.inc +4 -0
index 8acd156..b09bbba 100644
@@ -102,6 +102,10 @@ PREFERRED_VERSION_gettext = "0.16.1"
 PREFERRED_VERSION_elfutils = "0.148"
 PREFERRED_VERSION_m4 = "1.4.9"
 
+PREFERRED_PROVIDER_weston-conf = "weston"
+PREFERRED_VERSION_wayland = "1.6.0"
+PREFERRED_VERSION_weston = "1.6.0"
+
 PREFERRED_PROVIDER_wpa-supplicant = "wpa-supplicant"
 PREFERRED_PROVIDER_wpa-supplicant_ti33x = "wpa-supplicant-wl18xx"
 PREFERRED_PROVIDER_wpa-supplicant_ti43x = "wpa-supplicant-wl18xx"
meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/0001-weston-Enabling-DRM-backend-with-multiple-displays.patch renamed from meta-arago-distro/recipes-graphics/wayland/weston/0001-weston-Enabling-DRM-backend-with-multiple-displays.patch +0 -0
similarity index 100%
rename from meta-arago-distro/recipes-graphics/wayland/weston/0001-weston-Enabling-DRM-backend-with-multiple-displays.patch
rename to meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/0001-weston-Enabling-DRM-backend-with-multiple-displays.patch
meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/wayland_env.sh new file +13 -0
new file mode 100644
index 0000000..b885337
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+### Wayland Environment Variables ###
+
+export XDG_CONFIG_HOME=/etc/
+export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
+export WAYLAND_DISPLAY=wayland-0
+export WS_CALUDEV_FILE=/etc/udev/rules.d/ws-calibrate.rules
+
+if ! test -d "${XDG_RUNTIME_DIR}"; then
+       mkdir -p "${XDG_RUNTIME_DIR}"
+       chmod 0700 "${XDG_RUNTIME_DIR}"
+fi
meta-arago-distro/recipes-graphics/wayland/weston-1.6.0/weston.ini new file +10 -0
new file mode 100644
index 0000000..615a604
@@ -0,0 +1,10 @@
+[shell]
+locking=false
+animation=zoom
+panel-location=top
+startup-animation=fade
+
+[screensaver]
+# Uncomment path to disable screensaver
+#path=@libexecdir@/weston-screensaver
+
meta-arago-distro/recipes-graphics/wayland/weston_1.6.0.bbappend new file +24 -0
new file mode 100644
index 0000000..45e7024
@@ -0,0 +1,24 @@
+# When configured for fbdev compositor, make it the default
+PACKAGECONFIG[fbdev] = "--enable-fbdev-compositor WESTON_NATIVE_BACKEND="fbdev-backend.so",--disable-fbdev-compositor,udev mtdev"
+PACKAGECONFIG[kms] = "--enable-drm-compositor,--disable-drm-compositor,drm udev libgbm mtdev"
+
+PR_append = "-arago7"
+
+FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:${THISDIR}/${PN}:"
+
+SRC_URI += "file://wayland_env.sh \
+            file://weston.ini \
+            file://0001-weston-Enabling-DRM-backend-with-multiple-displays.patch \
+"
+
+# Add custom Arago Wayland Environment script file
+do_install_append () {
+    install -d ${D}${sysconfdir}/profile.d
+    install -m 0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}
+    install -m 0644 ${WORKDIR}/wayland_env.sh ${D}${sysconfdir}/profile.d/
+}
+
+PACKAGES += "${PN}-conf"
+
+FILES_${PN}-conf += "${sysconfdir}/profile.d/* ${sysconfdir}/weston.ini"
+RDEPENDS_${PN} += "${PN}-conf"
Signature · 1 line
2.2.0