diff options
Diffstat (limited to 'recipes-graphics/wayland/weston-init.bbappend')
-rw-r--r-- | recipes-graphics/wayland/weston-init.bbappend | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/recipes-graphics/wayland/weston-init.bbappend b/recipes-graphics/wayland/weston-init.bbappend index 9d04df23a..27a5b947b 100644 --- a/recipes-graphics/wayland/weston-init.bbappend +++ b/recipes-graphics/wayland/weston-init.bbappend | |||
@@ -58,8 +58,11 @@ PACKAGECONFIG[use-g2d] = ",," | |||
58 | PACKAGECONFIG[xwayland] = ",," | 58 | PACKAGECONFIG[xwayland] = ",," |
59 | 59 | ||
60 | do_install:append() { | 60 | do_install:append() { |
61 | if [ -f "${WORKDIR}/weston.config" ]; then | 61 | # Replace the template variables |
62 | install -Dm0755 ${WORKDIR}/weston.config ${D}${sysconfdir}/default/weston | 62 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini |
63 | |||
64 | if [ -f "${UNPACKDIR}/weston.config" ]; then | ||
65 | install -Dm0755 ${UNPACKDIR}/weston.config ${D}${sysconfdir}/default/weston | ||
63 | fi | 66 | fi |
64 | 67 | ||
65 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'gbm-format', 'yes', 'no', d)}" = "yes" ]; then | 68 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'gbm-format', 'yes', 'no', d)}" = "yes" ]; then |
@@ -88,6 +91,4 @@ do_install:append() { | |||
88 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then | 91 | if [ "${@bb.utils.contains('PACKAGECONFIG', 'xwayland', 'yes', 'no', d)}" = "no" ]; then |
89 | sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini | 92 | sed -i -e "s/^xwayland=true/#xwayland=true/g" ${D}${sysconfdir}/xdg/weston/weston.ini |
90 | fi | 93 | fi |
91 | |||
92 | sed -i -e 's,@bindir@,${bindir},g' ${D}${sysconfdir}/xdg/weston/weston.ini | ||
93 | } | 94 | } |