summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/wayland/weston-init.bb
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init.bb')
-rw-r--r--meta/recipes-graphics/wayland/weston-init.bb9
1 files changed, 9 insertions, 0 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb
index 113f0ff599..07cec75fb3 100644
--- a/meta/recipes-graphics/wayland/weston-init.bb
+++ b/meta/recipes-graphics/wayland/weston-init.bb
@@ -15,6 +15,12 @@ SRC_URI = "file://init \
15 15
16S = "${WORKDIR}" 16S = "${WORKDIR}"
17 17
18DEFAULTBACKEND ??= ""
19DEFAULTBACKEND_qemuall ?= "fbdev"
20DEFAULTBACKEND_qemuarm64 = "drm"
21DEFAULTBACKEND_qemux86 = "drm"
22DEFAULTBACKEND_qemux86-64 = "drm"
23
18do_install() { 24do_install() {
19 install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston 25 install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston
20 install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini 26 install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini
@@ -36,6 +42,9 @@ do_install() {
36 install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start 42 install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start
37 sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start 43 sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start
38 sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start 44 sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start
45 if [ -n "${DEFAULTBACKEND}" ]; then
46 sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini
47 fi
39} 48}
40 49
41inherit update-rc.d features_check systemd 50inherit update-rc.d features_check systemd