]> code.ossystems Code Review - meta-freescale.git/commitdiff
weston: Move xwayland config to weston.ini
authorTom Hochstein <tom.hochstein@nxp.com>
Sun, 17 Nov 2019 15:25:11 +0000 (09:25 -0600)
committerOtavio Salvador <otavio@ossystems.com.br>
Mon, 18 Nov 2019 13:16:54 +0000 (10:16 -0300)
Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com>
recipes-graphics/wayland/weston-init.bbappend
recipes-graphics/wayland/weston-init/imxdrm/weston.config [deleted file]
recipes-graphics/wayland/weston-init/mx6sl/weston.config
recipes-graphics/wayland/weston-init/mx8mm/weston.config [deleted file]
recipes-graphics/wayland/weston-init/weston.config [deleted file]

index ce6c4c7caf3e1f971335faa071d62cad66ed25d4..e5b90a57a40404234c766783acbd23463a055dc7 100644 (file)
@@ -6,14 +6,15 @@ IMX_REQUIRED_DISTRO_FEATURES_REMOVE_imxgpu2d = "opengl"
 IMX_REQUIRED_DISTRO_FEATURES_REMOVE_imxgpu3d = ""
 REQUIRED_DISTRO_FEATURES_remove = "${IMX_REQUIRED_DISTRO_FEATURES_REMOVE}"
 
-SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'systemd wayland x11', 'file://weston.config', '', d)}"
-
-HAS_SYSTEMD = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'true', 'false', d)}"
-HAS_XWAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland x11', 'true', 'false', d)}"
+SRC_URI_append_mx6sl = "file://weston.config"
 
 # To customize weston.ini, start by setting the desired assignment in weston.ini,
-# commented out. Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS.
-INI_UNCOMMENT_ASSIGNMENTS = ""
+# commented out. For example:
+#     #xwayland=true
+# Then add the assignment to INI_UNCOMMENT_ASSIGNMENTS.
+INI_UNCOMMENT_ASSIGNMENTS = " \
+    ${@bb.utils.contains('DISTRO_FEATURES', 'x11 wayland', 'xwayland=true', '', d)} \
+"
 INI_UNCOMMENT_ASSIGNMENTS_append_mx7ulp = " \
     use-g2d=1 \
 "
@@ -34,10 +35,8 @@ uncomment() {
 }
 
 do_install_append() {
-    if ${HAS_SYSTEMD}; then
-        if ${HAS_XWAYLAND}; then
-            install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston
-        fi
+    if [ -f "${WORKDIR}/weston.config" ]; then
+        install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston
     fi
     for assignment in ${INI_UNCOMMENT_ASSIGNMENTS}; do
         uncomment "$assignment" ${D}${sysconfdir}/xdg/weston/weston.ini
diff --git a/recipes-graphics/wayland/weston-init/imxdrm/weston.config b/recipes-graphics/wayland/weston-init/imxdrm/weston.config
deleted file mode 100644 (file)
index 7c92cf1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-OPTARGS="--xwayland"
index 89269d79adfb915cac97ab75a610cbc8d26a7111..6456cd2401e828acba4081536fade8a490f5c84e 100755 (executable)
@@ -1,3 +1 @@
-#!/bin/sh
-OPTARGS="--xwayland"
 FB_MULTI_BUFFER=1
diff --git a/recipes-graphics/wayland/weston-init/mx8mm/weston.config b/recipes-graphics/wayland/weston-init/mx8mm/weston.config
deleted file mode 100644 (file)
index 7c92cf1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-OPTARGS="--xwayland"
diff --git a/recipes-graphics/wayland/weston-init/weston.config b/recipes-graphics/wayland/weston-init/weston.config
deleted file mode 100644 (file)
index 7c92cf1..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-#!/bin/sh
-OPTARGS="--xwayland"