blob: 9d8aea4d72156830bbc332543fee903b980a7fcd [file] [log] [blame]
rjw1f884582022-01-06 17:20:42 +08001#Basic Configuration
2DESCRIPTION = "Audio ctrl service"
3LICENSE = "MediaTekProprietary"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
5
6SRC_URI = "file://LICENSE"
7SRC_URI += "file://audio-ctrl-service.service"
8
9S = "${WORKDIR}"
10
11inherit systemd
12
13SYSTEMD_PACKAGES = "${PN}"
14SYSTEMD_SERVICE_${PN} = "audio-ctrl-service.service"
15FILES_${PN} += "${systemd_unitdir}/system/audio-ctrl-service.service"
16
17DEPENDS = "audio-ctrl-service-bin"
18EXTRA_OEMAKE = "'TARGET_PLATFORM=${TARGET_PLATFORM}'"
19
20#Skip strip check in QA test.
21INSANE_SKIP_${PN} += "already-stripped"
22
23do_install_append() {
24 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
25 install -d ${D}${systemd_unitdir}/system/
26 install -m 0644 audio-ctrl-service.service ${D}${systemd_unitdir}/system
27 fi
28}
29