diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2023-06-07 10:57:22 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-07 10:57:22 -0300 |
commit | 2f232fa1c359649cfa9d6aa2e188921656a01549 (patch) | |
tree | 0de479e75081547b72a5a001fc92b5b5c7090823 | |
parent | 8995442f5432852a0313d83eb5fbc0fbd9e1c595 (diff) | |
parent | 7532cfdc224e50a2e9e1e55f9bc73991256ac743 (diff) | |
download | meta-freescale-2f232fa1c359649cfa9d6aa2e188921656a01549.tar.gz |
Merge pull request #1562 from liuming50/introduce-xwayland-PACKAGECONFIG
weston-init: disable xwayland for mainline BSPs
-rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 9 |
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 | ||
11 | PACKAGECONFIG ??= " \ | 11 | PACKAGECONFIG ??= " \ |
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 | ||
21 | PACKAGECONFIG:remove:use-mainline-bsp = "xwayland" | ||
22 | |||
19 | PACKAGECONFIG_GBM_FORMAT ?= "" | 23 | PACKAGECONFIG_GBM_FORMAT ?= "" |
20 | PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" | 24 | PACKAGECONFIG_GBM_FORMAT:mx8mq-nxp-bsp ?= "gbm-format" |
21 | 25 | ||
@@ -46,6 +50,7 @@ PACKAGECONFIG[rdp] = ",," | |||
46 | PACKAGECONFIG[repaint-window] = ",," | 50 | PACKAGECONFIG[repaint-window] = ",," |
47 | PACKAGECONFIG[size] = ",," | 51 | PACKAGECONFIG[size] = ",," |
48 | PACKAGECONFIG[use-g2d] = ",," | 52 | PACKAGECONFIG[use-g2d] = ",," |
53 | PACKAGECONFIG[xwayland] = ",," | ||
49 | 54 | ||
50 | do_install:append() { | 55 | do_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 | } |