summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Wesp <n.wesp@phytec.de>2019-10-24 13:04:28 (GMT)
committerStefan Müller-Klieser <s.mueller-klieser@phytec.de>2019-10-25 11:29:36 (GMT)
commit1a3777016ad9772a352152c5e81eeb705c74b3a6 (patch)
tree25a5fa1cf3e3131339b75838d206cf3383239673
parent61e862fea2884bd90279166e011f396a20ff7013 (diff)
downloadmeta-yogurt-1a3777016ad9772a352152c5e81eeb705c74b3a6.zip
meta-yogurt-1a3777016ad9772a352152c5e81eeb705c74b3a6.tar.bz2
wayland: westin-init: create weston-init.bbappend
Within this append-file we copy a default weston config-file to the target. This was previous done by 'weston-machine-units', but can not be used for mx8. Signed-off-by: Norbert Wesp <n.wesp@phytec.de> Signed-off-by: Stefan Müller-Klieser <s.mueller-klieser@phytec.de>
-rw-r--r--recipes-graphics/wayland/weston-init.bbappend12
-rw-r--r--recipes-graphics/wayland/weston-init/weston.conf3
2 files changed, 15 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend
new file mode 100644
index 0000000..1730532
--- /dev/null
+++ b/recipes-graphics/wayland/weston-init.bbappend
@@ -0,0 +1,12 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SRC_URI_append = " ${@bb.utils.contains('DISTRO_FEATURES', 'wayland x11', 'file://weston.conf', '', d)}"
+
+HAS_XWAYLAND = "${@bb.utils.contains('DISTRO_FEATURES', 'wayland x11', 'true', 'false', d)}"
+
+do_install_append() {
+ if ${HAS_XWAYLAND}; then
+ install -Dm0755 ${WORKDIR}/weston.conf ${D}${sysconfdir}/default/weston
+ fi
+}
+
diff --git a/recipes-graphics/wayland/weston-init/weston.conf b/recipes-graphics/wayland/weston-init/weston.conf
new file mode 100644
index 0000000..56ca8ef
--- /dev/null
+++ b/recipes-graphics/wayland/weston-init/weston.conf
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+OPTARGS="--xwayland --drm-device=card0"