diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 024e400665..83f0cea49c 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
@@ -13,7 +13,8 @@ SRC_URI = "file://init \ | |||
13 | file://weston-autologin \ | 13 | file://weston-autologin \ |
14 | file://weston-start" | 14 | file://weston-start" |
15 | 15 | ||
16 | S = "${WORKDIR}" | 16 | S = "${WORKDIR}/sources" |
17 | UNPACKDIR = "${S}" | ||
17 | 18 | ||
18 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}" | 19 | PACKAGECONFIG ??= "${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'xwayland', '', d)}" |
19 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" | 20 | PACKAGECONFIG:append:qemuriscv64 = " use-pixman" |
@@ -29,18 +30,18 @@ DEFAULTBACKEND:qemuall ?= "drm" | |||
29 | do_install() { | 30 | do_install() { |
30 | # Install weston-start script | 31 | # Install weston-start script |
31 | if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then | 32 | if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then |
32 | install -Dm755 ${WORKDIR}/weston-start ${D}${bindir}/weston-start | 33 | install -Dm755 ${S}/weston-start ${D}${bindir}/weston-start |
33 | sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start | 34 | sed -i 's,@DATADIR@,${datadir},g' ${D}${bindir}/weston-start |
34 | sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start | 35 | sed -i 's,@LOCALSTATEDIR@,${localstatedir},g' ${D}${bindir}/weston-start |
35 | install -Dm755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston | 36 | install -Dm755 ${S}/init ${D}/${sysconfdir}/init.d/weston |
36 | sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston | 37 | sed -i 's#ROOTHOME#${ROOT_HOME}#' ${D}/${sysconfdir}/init.d/weston |
37 | fi | 38 | fi |
38 | 39 | ||
39 | # Install Weston systemd service | 40 | # Install Weston systemd service |
40 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | 41 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
41 | install -D -p -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir}/weston.service | 42 | install -D -p -m0644 ${S}/weston.service ${D}${systemd_system_unitdir}/weston.service |
42 | install -D -p -m0644 ${WORKDIR}/weston.socket ${D}${systemd_system_unitdir}/weston.socket | 43 | install -D -p -m0644 ${S}/weston.socket ${D}${systemd_system_unitdir}/weston.socket |
43 | install -D -p -m0644 ${WORKDIR}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh | 44 | install -D -p -m0644 ${S}/weston-socket.sh ${D}${sysconfdir}/profile.d/weston-socket.sh |
44 | sed -i -e s:/etc:${sysconfdir}:g \ | 45 | sed -i -e s:/etc:${sysconfdir}:g \ |
45 | -e s:/usr/bin:${bindir}:g \ | 46 | -e s:/usr/bin:${bindir}:g \ |
46 | -e s:/var:${localstatedir}:g \ | 47 | -e s:/var:${localstatedir}:g \ |
@@ -48,11 +49,11 @@ do_install() { | |||
48 | fi | 49 | fi |
49 | 50 | ||
50 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then | 51 | if [ "${@bb.utils.filter('DISTRO_FEATURES', 'pam', d)}" ]; then |
51 | install -D -p -m0644 ${WORKDIR}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin | 52 | install -D -p -m0644 ${S}/weston-autologin ${D}${sysconfdir}/pam.d/weston-autologin |
52 | fi | 53 | fi |
53 | 54 | ||
54 | install -D -p -m0644 ${WORKDIR}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini | 55 | install -D -p -m0644 ${S}/weston.ini ${D}${sysconfdir}/xdg/weston/weston.ini |
55 | install -Dm644 ${WORKDIR}/weston.env ${D}${sysconfdir}/default/weston | 56 | install -Dm644 ${S}/weston.env ${D}${sysconfdir}/default/weston |
56 | 57 | ||
57 | if [ -n "${DEFAULTBACKEND}" ]; then | 58 | if [ -n "${DEFAULTBACKEND}" ]; then |
58 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini | 59 | sed -i -e "/^\[core\]/a backend=${DEFAULTBACKEND}-backend.so" ${D}${sysconfdir}/xdg/weston/weston.ini |