| #Basic Configuration |
| DESCRIPTION = "service for modem to control afe" |
| LICENSE = "MediaTekProprietary" |
| LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff" |
| |
| SRC_URI = "file://LICENSE" |
| SRC_URI += "file://libmodem-afe-ctrl-server.c" |
| SRC_URI += "file://libmodem_afe_service.service" |
| |
| S = "${WORKDIR}" |
| |
| inherit systemd |
| |
| SYSTEMD_PACKAGES = "${PN}" |
| SYSTEMD_SERVICE_${PN} = "libmodem_afe_service.service" |
| FILES_${PN} += "${systemd_unitdir}/system/libmodem_afe_service.service" |
| FILES_${PN} += "${bindir}/libmodem-afe-ctrl-server-bin" |
| |
| DEPENDS = "libmodem-afe-ctrl" |
| |
| TARGET_CC_ARCH += "${LDFLAGS}" |
| |
| #Skip strip check in QA test. |
| INSANE_SKIP_${PN} += "already-stripped" |
| |
| do_compile_append() { |
| ${CC} libmodem-afe-ctrl-server.c -lpthread -lmodemafectrl -lasound -lmtk_audio_mixer_ctrl -o libmodem-afe-ctrl-server-bin |
| } |
| |
| do_install_append() { |
| if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then |
| install -d ${D}${systemd_unitdir}/system/ |
| install -m 0644 libmodem_afe_service.service ${D}${systemd_unitdir}/system |
| fi |
| |
| install -d ${D}${bindir} |
| install -m 0755 libmodem-afe-ctrl-server-bin ${D}${bindir} |
| } |
| |