[Feature][ZXW-88]merge P50 version

Only Configure: No
Affected branch: master
Affected module: unknown
Is it affected on both ZXIC and MTK: only ZXIC
Self-test: Yes
Doc Update: No

Change-Id: I34667719d9e0e7e29e8e4368848601cde0a48408
diff --git a/cap/zx297520v3/sources/meta-zxic/recipes-app/libflags/libflags.bb b/cap/zx297520v3/sources/meta-zxic/recipes-app/libflags/libflags.bb
new file mode 100755
index 0000000..f04df7c
--- /dev/null
+++ b/cap/zx297520v3/sources/meta-zxic/recipes-app/libflags/libflags.bb
@@ -0,0 +1,46 @@
+DESCRIPTION = "libflags"
+DEPENDS     = ""
+SECTION     = "lib"
+LICENSE     = "zte"
+PV          = "1.0.0"
+PR          = "r0"
+LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
+
+#配置code路径信息。
+FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
+SRC_URI = " \          
+		  file://libflags \
+          "
+
+S       = "${WORKDIR}"
+#引用公用头文件和编译选项。
+include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
+include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
+
+CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
+
+do_compile () {
+	make -C libflags
+}
+
+do_install () {
+	install -d ${D}${libdir}/
+	install -d ${D}/usr/include
+	install -m 0755 ${S}/libflags/libflags.so  ${D}${libdir}/
+	install -m 0755 ${S}/libflags/libflags.a   ${D}${libdir}/
+
+	#install elfs
+	install -d ${ELFS-PATH}/
+	install -m 0755 ${S}/libflags/libflags.so ${ELFS-PATH}/
+}
+
+#清库
+
+do_cleanlibs () {
+	rm -fr ${ELFS-PATH}/libflags.so
+}
+
+FILES_${PN}       += "${libdir}/*.so"
+FILES_${PN}-dbg   += "${libdir}/.debug"
+FILES_SOLIBSDEV   = ""
+INSANE_SKIP_${PN} = "dev-so"