| #Basic Configuration |
| DESCRIPTION = "Audio ctrl service" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| |
| SRC_URI = "file://LICENSE" |
| SRC_URI += "file://audio-ctrl-service.service" |
| |
| S = "${WORKDIR}" |
| |
| inherit systemd |
| |
| SYSTEMD_PACKAGES = "${PN}" |
| SYSTEMD_SERVICE_${PN} = "audio-ctrl-service.service" |
| FILES_${PN} += "${systemd_unitdir}/system/audio-ctrl-service.service" |
| |
| DEPENDS = "audio-ctrl-service-bin" |
| EXTRA_OEMAKE = "'TARGET_PLATFORM=${TARGET_PLATFORM}'" |
| |
| #Skip strip check in QA test. |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| do_install_append() { |
| if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| install -d ${D}${systemd_unitdir}/system/ |
| install -m 0644 audio-ctrl-service.service ${D}${systemd_unitdir}/system |
| fi |
| } |
| |