[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/meta/meta-mediatek-ivt/recipes-yummy/mod-logmux/modlogmux_1.0.0.bb b/meta/meta-mediatek-ivt/recipes-yummy/mod-logmux/modlogmux_1.0.0.bb
new file mode 100644
index 0000000..6524e6c
--- /dev/null
+++ b/meta/meta-mediatek-ivt/recipes-yummy/mod-logmux/modlogmux_1.0.0.bb
@@ -0,0 +1,51 @@
+#Basic Configuration
+DESCRIPTION = "Log multiplexier kernel module."
+SECTION = "base"
+LICENSE = "MediaTekProprietary"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
+DEPENDS = "custom virtual/kernel"
+MTK_SRC = "${BACH_SRC}/mod-logmux"
+
+WORKONSRC = "${MTK_SRC}"
+BB_INCLUDE_ADD = "--sysroot=${STAGING_DIR_HOST} -I${BACH_SRC}/mod-crosslink/include "
+BB_LDFLAGS_ADD = "--sysroot=${STAGING_DIR_HOST}"
+
+inherit deploy workonsrc
+
+#Parameters passed to do_compile()
+EXTRA_OEMAKE += "'CROSS=${TARGET_PREFIX}'\
+				 'PREFIX=${BACH_PREFIX}'\
+				 'PACKAGE_ARCH=${PACKAGE_ARCH}'\
+                 'ARCH=${KERNEL_ARCH}'\
+                 'KERNELDIR=${KERNEL_OUT_DIR}'\
+                 'CONFIG=${BB_INCLUDE_ADD}'"
+
+FILES_${PN} = "/lib/modules"
+
+FILES_${PN}-dev = "${includedir}"
+
+#Skip strip check in QA test.
+INSANE_SKIP_${PN} += "already-stripped"
+
+
+do_compile () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
+    oe_runmake  KBUILD_EXTRA_INCLUDE=${STAGING_INCDIR}/asm/arch
+}
+
+do_install () {
+    unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
+    oe_runmake install SYSROOT=${D} KBUILD_EXTRA_INCLUDE=${D}/include/asm/arch
+    find ${D} -name "modules.*" -exec rm -f '{}' \; 
+
+	if [ -d "${D}/include" ]; then
+		install -d ${D}${includedir}
+		cp -af ${D}/include/* ${D}${includedir}
+		rm -rf ${D}/include
+	fi
+}
+
+addtask bachclean
+do_bachclean () {
+    oe_runmake clean
+}