blob: 75d4e123c1087aefb7ed3bf7ee311b978d238e09 [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001DESCRIPTION = "Mediatek Boost Service"
2LICENSE = "MediaTekProprietary"
3LIC_FILES_CHKSUM = "file://LICENSE;md5=35b74e6ee01be137c7e57a2cd6875f25"
4SRC_URI = "file://boost_service_basic.service \
5 file://boostsc \
6 file://LICENSE \
7"
8
9S = "${WORKDIR}"
10RDEPENDS_boost-service += "bash"
11inherit systemd
12
13SYSTEMD_PACKAGES = "${PN}"
14SYSTEMD_SERVICE_${PN} = "boost_service_basic.service"
15FILES_${PN} = "${systemd_unitdir} ${datadir}/boost-service"
16do_install_append() {
17 install -d ${D}${datadir}/boost-service
18 install -m 0755 ${S}/boostsc ${D}${datadir}/boost-service
19 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
20 install -d ${D}${systemd_unitdir}/system/
21 install -m 0644 ${S}/boost_service_basic.service ${D}${systemd_unitdir}/system
22 fi
23}