summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--recipes-graphics/wayland/weston-init.bbappend9
1 files changed, 9 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend
index 69a807a3b..595633b04 100644
--- a/recipes-graphics/wayland/weston-init.bbappend
+++ b/recipes-graphics/wayland/weston-init.bbappend
@@ -10,12 +10,16 @@ SRC_URI:append:mx6sl-nxp-bsp = " file://weston.config"
10 10
11PACKAGECONFIG ??= " \ 11PACKAGECONFIG ??= " \
12 no-idle-timeout \ 12 no-idle-timeout \
13 ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)} \
13 ${PACKAGECONFIG_GBM_FORMAT} \ 14 ${PACKAGECONFIG_GBM_FORMAT} \
14 ${PACKAGECONFIG_REPAINT_WINDOW} \ 15 ${PACKAGECONFIG_REPAINT_WINDOW} \
15 ${PACKAGECONFIG_SIZE} \ 16 ${PACKAGECONFIG_SIZE} \
16 ${PACKAGECONFIG_USE_G2D} \ 17 ${PACKAGECONFIG_USE_G2D} \
17" 18"
18 19
20# Mainline BSPs dont support xwayland
21PACKAGECONFIG:remove:use-mainline-bsp = "xwayland"
22
19PACKAGECONFIG_GBM_FORMAT ?= "" 23PACKAGECONFIG_GBM_FORMAT ?= ""
20PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" 24PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format"
21 25
@@ -46,6 +50,7 @@ PACKAGECONFIG[rdp] = ",,"
46PACKAGECONFIG[repaint-window] = ",," 50PACKAGECONFIG[repaint-window] = ",,"
47PACKAGECONFIG[size] = ",," 51PACKAGECONFIG[size] = ",,"
48PACKAGECONFIG[use-g2d] = ",," 52PACKAGECONFIG[use-g2d] = ",,"
53PACKAGECONFIG[xwayland] = ",,"
49 54
50do_install:append() { 55do_install:append() {
51 if [ -f "${WORKDIR}/weston.config" ]; then 56 if [ -f "${WORKDIR}/weston.config" ]; then
@@ -75,5 +80,9 @@ do_install:append() {
75 sed -i -e "/^\[core\]/a #use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini 80 sed -i -e "/^\[core\]/a #use-g2d=${USE_G2D_VALUE}" ${D}${sysconfdir}/xdg/weston/weston.ini
76 fi 81 fi
77 82
83 if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then
84 sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini
85 fi
86
78 sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini 87 sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini
79} 88}