[Feature]add MT2731_MP2_MR2_SVN388 baseline version

Change-Id: Ief04314834b31e27effab435d3ca8ba33b499059
diff --git a/meta/meta-mediatek/recipes-connectivity/patch_folder/mtkcombo.bb b/meta/meta-mediatek/recipes-connectivity/patch_folder/mtkcombo.bb
new file mode 100755
index 0000000..f0781c5
--- /dev/null
+++ b/meta/meta-mediatek/recipes-connectivity/patch_folder/mtkcombo.bb
@@ -0,0 +1,37 @@
+DESCRIPTION = "Combo FW"
+LICENSE = "MediaTekProprietary"
+LIC_FILES_CHKSUM = "file://LICENSE;md5=e1696b147d49d491bcb4da1a57173fff"
+INSANE_SKIP_${PN} += "installed-vs-shipped"
+FILES_${PN} += "/lib/firmware/mt6630_patch_e3_0_hdr.bin /lib/firmware/mt6630_patch_e3_1_hdr.bin"
+FILES_${PN} += "/lib/firmware/ROMv2_lm_patch_1_0_hdr.bin /lib/firmware/ROMv2_lm_patch_1_1_hdr.bin"
+FILES_${PN} += "/lib/firmware/WIFI_RAM_CODE_MT6630"
+FILES_${PN} += "/vendor/firmware/WIFI_RAM_CODE_8167"
+
+inherit workonsrc
+WORKONSRC = "${TOPDIR}/../src/connectivity/combo_tool/patch_folder"
+
+do_install () {
+	if test "${COMBO_CHIP_ID}" = "mt6630"; then
+		install -d ${D}/lib/firmware
+		if test "${TARGET_PLATFORM}" = "mt2731"; then
+			install -m 0755 ${S}/mt2731/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware
+			install -m 0755 ${S}/mt2731/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware
+		else
+			install -m 0755 ${S}/mt6630_patch_e3_0_hdr.bin ${D}/lib/firmware
+			install -m 0755 ${S}/mt6630_patch_e3_1_hdr.bin ${D}/lib/firmware
+		fi
+		if test "${TARGET_PLATFORM}" = "mt8516"; then
+			install -m 0755 ${S}/audio/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware
+		else
+			install -m 0755 ${S}/WIFI_RAM_CODE_MT6630 ${D}/lib/firmware
+		fi
+	fi
+
+	if test "${COMBO_CHIP_ID}" = "mt8167"; then
+		install -d ${D}/lib/firmware
+		install -m 0755 ${S}/ROMv2_lm_patch_1_0_hdr.bin ${D}/lib/firmware
+		install -m 0755 ${S}/ROMv2_lm_patch_1_1_hdr.bin ${D}/lib/firmware
+		install -d ${D}/vendor/firmware
+		install -m 0755 ${S}/WIFI_RAM_CODE_8167 ${D}/vendor/firmware
+	fi
+}