[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/src/devtools/met-driver/4.19/Makefile b/src/devtools/met-driver/4.19/Makefile
new file mode 100644
index 0000000..0c0b473
--- /dev/null
+++ b/src/devtools/met-driver/4.19/Makefile
@@ -0,0 +1,63 @@
+ifeq ($(CONFIG_BUILD_YOCTO),y)
+    MTK_PLATFORM := $(subst ",,$(CONFIG_MTK_PLATFORM))
+    MET_ROOT_DIR := $(MET_DRIVER_DIR)
+    MET_COMMON_DIR := $(MET_DRIVER_DIR)/common
+    MET_PLF_DIR := $(MET_DRIVER_DIR)/$(MTK_PLATFORM)
+    MET_BUILD_DEFAULT := n
+
+    ifneq ($(KERNEL_OUT),)
+        include $(KERNEL_OUT)/.config
+        ccflags-y += -imacros $(KERNEL_OUT)/include/generated/autoconf.h
+    endif
+else
+    #$(info TARGET_BOARD_PLATFORM=$(TARGET_BOARD_PLATFORM))
+    #$(info TARGET_PRODUCT=$(TARGET_PRODUCT))
+    #MTK_PLATFORM := $(subst ",,$(TARGET_BOARD_PLATFORM))
+    #MTK_PLATFORM := $(TARGET_DEVICE)
+    MTK_PLATFORM := mt2712
+    mkfile_path := $(abspath $(lastword $(MAKEFILE_LIST)))
+    MET_ROOT_DIR := $(patsubst %/,%,$(dir $(mkfile_path)))
+    MET_COMMON_DIR := $(wildcard $(MET_ROOT_DIR)/common)
+    MET_PLF_DIR := $(wildcard $(MET_ROOT_DIR)/$(MTK_PLATFORM))
+    MET_BUILD_DEFAULT := n
+
+    #$(info MTK_PLATFORM=$(TARGET_DEVICE))
+    #$(info mkfile_path=$(mkfile_path))
+    #$(info MET_ROOT_DIR=$(MET_ROOT_DIR))
+    #$(info MET_COMMON_DIR=$(MET_COMMON_DIR))
+    #$(info MET_PLF_DIR=$(MET_PLF_DIR))
+endif
+
+ifeq ($(CONFIG_MODULES),y)
+
+ifeq ($(CONFIG_FTRACE),y)
+    ifeq ($(CONFIG_TRACING),y)
+        FTRACE_READY := y
+    endif
+endif
+
+$(info ******** Start to build met_drv for $(MTK_PLATFORM) ********)
+ifneq ($(MET_PLF_DIR),)
+    ifeq ($(FTRACE_READY),y)
+        ifeq ($(CONFIG_BUILD_YOCTO),y)
+            include $(MET_COMMON_DIR)/Kbuild.yocto
+        else
+            include $(MET_COMMON_DIR)/Kbuild
+        endif
+    else
+        $(warning Not building met.ko due to CONFIG_FTRACE/CONFIG_TRACING is not set, build met default)
+        MET_BUILD_DEFAULT = y
+    endif
+else
+    $(warning not support $(MTK_PLATFORM), build met default)
+    MET_BUILD_DEFAULT = y
+endif
+else #CONFIG_MODULES = n
+    $(warning Not building met.ko due to CONFIG_MODULES is not set, build met default)
+    MET_BUILD_DEFAULT := y
+endif
+
+ifeq ($(MET_BUILD_DEFAULT),y)
+    MET_DEF_DIR := $(MET_ROOT_DIR)/default
+    include $(MET_DEF_DIR)/Kbuild
+endif