[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/meta/meta-mediatek-mt2731/recipes-modem/mdlogger/mdlogger_1.0.0.bb b/meta/meta-mediatek-mt2731/recipes-modem/mdlogger/mdlogger_1.0.0.bb
new file mode 100644
index 0000000..9393b89
--- /dev/null
+++ b/meta/meta-mediatek-mt2731/recipes-modem/mdlogger/mdlogger_1.0.0.bb
@@ -0,0 +1,63 @@
+#Basic Configuration
+DESCRIPTION = "emdlogger is a MD log control application."
+SECTION = "base"
+LICENSE = "MediaTekProprietary"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
+MTK_SRC = "${BACH_SRC}/telephony/frameworks/opt/mdlogger"
+EMD_OUT = "${WORKDIR}/out"
+CROSS = "${TARGET_PREFIX}"
+PROJECT = "${PROJ}"
+PRODUCT_MODE = "${PROD_MODE}"
+WORKONSRC = "${MTK_SRC}"
+DEPENDS = "platform-libs libsncfg telephonyware"
+
+CFLAGS = "--sysroot=${STAGING_DIR_HOST}\ -I${STAGING_DIR_HOST}/usr/include/logger"
+
+
+inherit deploy workonsrc
+
+#Parameters passed to do_compile()
+EXTRA_OEMAKE = "'CROSS=${CROSS}'\
+				'PREFIX=${BACH_PREFIX}'\
+				'PACKAGE_ARCH=${PACKAGE_ARCH}'\
+                'ROOT=${STAGING_DIR_HOST}'"
+
+
+FILES_${PN} = "${base_sbindir}/emdlogger1 \
+               ${base_sbindir}/emdlogger_ctrl"
+
+FILES_${PN}-dbg = "${base_sbindir}/.debug"
+
+#Skip strip check in QA test.
+#RDEPENDS_${PN} += "telephonyware-dev"
+INSANE_SKIP_${PN} += "dev-deps already-stripped"
+
+
+do_compile () {
+	if [ -d "${WORKONSRC}" ]; then
+		if test "${PACKAGE_ARCH}" = "cortexa7hf-vfp-vfpv4-neon" || test "${PACKAGE_ARCH}" = "cortexa7hf-neon-vfpv4"; then
+			oe_runmake all ROOT=${STAGING_DIR_HOST} DEF_CFLAGS="--sysroot=${STAGING_DIR_HOST} -I${STAGING_DIR_HOST}/usr/include/logger -mhard-float"
+
+		else
+			oe_runmake all ROOT=${STAGING_DIR_HOST} DEF_CFLAGS=${CFLAGS}
+		fi 
+	else	
+		oe_runmake all ROOT=${STAGING_DIR_HOST} 
+	fi
+
+}
+
+do_install () {
+    oe_runmake install ROOT=${D}
+	
+	if [ -d ${WORKONSRC} ]; then
+		install -d ${D}${base_sbindir}
+		cp -af mdlogger.elf ${D}${base_sbindir}/emdlogger1
+		cp -af mdlogger_ctrl.elf ${D}${base_sbindir}/emdlogger_ctrl
+	fi
+}
+
+addtask bachclean
+do_bachclean () {
+    oe_runmake clean
+}