rjw | 1f88458 | 2022-01-06 17:20:42 +0800 | [diff] [blame^] | 1 | #Basic Configuration |
| 2 | DESCRIPTION = "Audio ctrl service" |
| 3 | LICENSE = "MediaTekProprietary" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| 5 | |
| 6 | SRC_URI = "file://LICENSE" |
| 7 | SRC_URI += "file://audio-ctrl-service.service" |
| 8 | |
| 9 | S = "${WORKDIR}" |
| 10 | |
| 11 | inherit systemd |
| 12 | |
| 13 | SYSTEMD_PACKAGES = "${PN}" |
| 14 | SYSTEMD_SERVICE_${PN} = "audio-ctrl-service.service" |
| 15 | FILES_${PN} += "${systemd_unitdir}/system/audio-ctrl-service.service" |
| 16 | |
| 17 | DEPENDS = "audio-ctrl-service-bin" |
| 18 | EXTRA_OEMAKE = "'TARGET_PLATFORM=${TARGET_PLATFORM}'" |
| 19 | |
| 20 | #Skip strip check in QA test. |
| 21 | INSANE_SKIP_${PN} += "already-stripped" |
| 22 | |
| 23 | do_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 | |