[Add basic opensync build support]

[Description]
Add basic opensync build support
1.Add basic opensync v2.0.5 build back
2.Add opensync v3.2.x build support(v3.2.7 test ok)
3.Default disable opensync build

[Release-log]
N/A

diff --git a/recipes-connectivity/opensync/opensync_3.%.bbappend b/recipes-connectivity/opensync/opensync_3.%.bbappend
new file mode 100644
index 0000000..4ab741b
--- /dev/null
+++ b/recipes-connectivity/opensync/opensync_3.%.bbappend
@@ -0,0 +1,15 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
+
+SRC_URI_append_filogic = " file://999-mtk-add-vendor.patch;apply=no"
+SRC_URI_append_filogic = " file://999-mtk-fix-64bit-build.patch;apply=no"
+
+do_filogic_patches() {
+    cd ${S}/../
+        if [ ! -e patch_applied ]; then
+            patch -p1 < ${WORKDIR}/999-mtk-add-vendor.patch
+            patch -p1 < ${WORKDIR}/999-mtk-fix-64bit-build.patch
+            touch patch_applied
+        fi
+}
+
+addtask filogic_patches after do_patch before do_compile