[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/meta/meta-mediatek-ivt/recipes-yummy/audio_xml_parser/audio-xml-parser.bb b/meta/meta-mediatek-ivt/recipes-yummy/audio_xml_parser/audio-xml-parser.bb
new file mode 100644
index 0000000..075a1d7
--- /dev/null
+++ b/meta/meta-mediatek-ivt/recipes-yummy/audio_xml_parser/audio-xml-parser.bb
@@ -0,0 +1,55 @@
+DESCRIPTION = "Audio Xml Parameter Parser"
+LICENSE = "MediaTekProprietary"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
+DEPENDS = "libxml2 alsa-lib platform-libs"
+INCLUDE_ADD = "-I${STAGING_DIR_HOST}/usr/include -I${STAGING_DIR_HOST}/usr/include/libxml2 -I${STAGING_DIR_HOST}/usr/include/logger"
+CFLAGS  = ""
+LDFLAGS = "--sysroot ${STAGING_DIR_HOST}"
+CROSS = "${TARGET_PREFIX}"
+CROSS = "${TARGET_PREFIX}"
+
+INSANE_SKIP_${PN} += "installed-vs-shipped"
+FILES_${PN} += "${libdir}/*"
+FILES_${PN} += "/system/etc/audio_param/*"
+FILES_${PN} += "${includedir}"
+
+inherit workonsrc
+WORKONSRC = "${TOPDIR}/../src/multimedia/audio-tuning/audio-xml-parser"
+
+#Skip strip check in QA test.
+INSANE_SKIP_${PN} += "already-stripped"
+EXTRA_OEMAKE = "'CROSS=${CROSS}'\
+                'CC=${CC}'\
+                'ROOT=${STAGING_DIR_HOST}'\
+                'PREFIX=${BACH_PREFIX}'\
+                'PACKAGE_ARCH=${PACKAGE_ARCH}'\
+                'BB_INCLUDE_ADD=${INCLUDE_ADD}'\
+                'BB_LDFLAGS_ADD=${LDFLAGS}'\
+                'BB_CFLAGS_ADD=${CFLAGS}'\
+                'TARGET_PLATFORM=${TARGET_PLATFORM}'"
+
+do_make () {
+	oe_runmake
+}
+
+do_install () {
+    oe_runmake install ROOT=${D}
+	install -d ${D}/${libdir}
+	install -m 0755 ${S}/libaudioparamparser.so.1.0.0 ${D}/${libdir}
+	cd ${D}${libdir}
+	ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so.1
+	ln -s libaudioparamparser.so.1.0.0 ./libaudioparamparser.so
+	cd -
+	install -d ${D}/system
+	install -d ${D}/system/etc
+	install -d ${D}/system/etc/audio_param
+	install -m 0444 ${S}/audio_param/* ${D}/system/etc/audio_param
+
+	install -d ${D}${includedir}
+	cp -r ${S}/export_include/libxml ${D}${includedir}
+	install -m 0444 ${S}/export_include/utstring.h ${D}${includedir}
+	install -m 0444 ${S}/export_include/uthash.h ${D}${includedir}
+	install -m 0444 ${S}/export_include/utlist.h ${D}${includedir}
+	install -m 0444 ${S}/export_include/AudioParamParser.h ${D}${includedir}
+	install -m 0444 ${S}/export_include/AudioParamParserPriv.h ${D}${includedir}
+}