[Feature]add MT2731_MP2_MR2_SVN388 baseline version
Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/meta/meta-mediatek-ivt/recipes-yummy/libmodem-afe-ctrl-service/libmodem-afe-ctrl-service_1.0.0.bb b/meta/meta-mediatek-ivt/recipes-yummy/libmodem-afe-ctrl-service/libmodem-afe-ctrl-service_1.0.0.bb
new file mode 100644
index 0000000..201a02f
--- /dev/null
+++ b/meta/meta-mediatek-ivt/recipes-yummy/libmodem-afe-ctrl-service/libmodem-afe-ctrl-service_1.0.0.bb
@@ -0,0 +1,39 @@
+#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}
+}
+