diff options
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 4fa302c833..e538469a58 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
@@ -26,19 +26,19 @@ DEFAULTBACKEND ??= "" | |||
26 | DEFAULTBACKEND:qemuall ?= "drm" | 26 | DEFAULTBACKEND:qemuall ?= "drm" |
27 | 27 | ||
28 | do_install() { | 28 | do_install() { |
29 | if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then | 29 | if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then |
30 | install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston | 30 | install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston |
31 | sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston | 31 | sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston |
32 | fi | 32 | fi |
33 | install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini | 33 | install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini |
34 | install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston | 34 | install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston |
35 | 35 | ||
36 | # Install Weston systemd service and accompanying udev rule | 36 | # Install Weston systemd service and accompanying udev rule |
37 | install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service | 37 | install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service |
38 | install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket | 38 | install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket |
39 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then | 39 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then |
40 | install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin | 40 | install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin |
41 | fi | 41 | fi |
42 | sed -i -e s:/etc:${sysconfdir}:g \ | 42 | sed -i -e s:/etc:${sysconfdir}:g \ |
43 | -e s:/usr/bin:${bindir}:g \ | 43 | -e s:/usr/bin:${bindir}:g \ |
44 | -e s:/var:${localstatedir}:g \ | 44 | -e s:/var:${localstatedir}:g \ |
@@ -47,7 +47,7 @@ do_install() { | |||
47 | install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start | 47 | install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start |
48 | sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start | 48 | sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start |
49 | sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start | 49 | sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start |
50 | if [ -n "${DEFAULTBACKEND}" ]; then | 50 | if [ -n "${DEFAULTBACKEND}" ]; then |
51 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini | 51 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini |
52 | fi | 52 | fi |
53 | 53 | ||