diff options
Diffstat (limited to 'meta/recipes-graphics/wayland/weston-init.bb')
-rw-r--r-- | meta/recipes-graphics/wayland/weston-init.bb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index fc2e4f80ee..653541e3c8 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb | |||
@@ -1,17 +1,22 @@ | |||
1 | SUMMARY = "Startup script for the Weston Wayland compositor" | 1 | SUMMARY = "Startup script and systemd unit file for the Weston Wayland compositor" |
2 | LICENSE = "MIT" | 2 | LICENSE = "MIT" |
3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" | 3 | LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690" |
4 | 4 | ||
5 | SRC_URI = "file://init" | 5 | SRC_URI = "file://init \ |
6 | file://weston.service" | ||
6 | 7 | ||
7 | S = "${WORKDIR}" | 8 | S = "${WORKDIR}" |
8 | 9 | ||
9 | do_install() { | 10 | do_install() { |
10 | install -d ${D}/${sysconfdir}/init.d | 11 | install -d ${D}/${sysconfdir}/init.d |
11 | install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston | 12 | install -m755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/weston |
13 | |||
14 | install -d ${D}${systemd_system_unitdir} | ||
15 | install -m0644 ${WORKDIR}/weston.service ${D}${systemd_system_unitdir} | ||
12 | } | 16 | } |
13 | 17 | ||
14 | inherit allarch update-rc.d distro_features_check | 18 | inherit allarch update-rc.d distro_features_check systemd |
19 | |||
15 | # rdepends on weston which depends on virtual/egl | 20 | # rdepends on weston which depends on virtual/egl |
16 | REQUIRED_DISTRO_FEATURES = "opengl" | 21 | REQUIRED_DISTRO_FEATURES = "opengl" |
17 | 22 | ||
@@ -19,3 +24,5 @@ RDEPENDS_${PN} = "weston kbd" | |||
19 | 24 | ||
20 | INITSCRIPT_NAME = "weston" | 25 | INITSCRIPT_NAME = "weston" |
21 | INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." | 26 | INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." |
27 | |||
28 | SYSTEMD_SERVICE_${PN} = "weston.service" | ||