blob: cecb6624b131c6bc2209c8ebdf878c6312775c3b [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "libupi_ab"
2DEPENDS = "libnvram libsoftap libsofttimer libatutils zlib openssl libmtd"
3SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
10FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:"
11SRC_URI = " \
12 ${@bb.utils.contains("MK_SDK_VERSION", "yes", "", "file://libupi_ab", d)} \
13 "
14
15S = "${WORKDIR}"
16#引用公用头文件和编译选项。
17include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
18include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
19
20CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
21
22do_compile () {
23 if [ ${MK_SDK_VERSION} = "no" ]; then
24 make -C libupi_ab
25 fi
26}
27
28do_install () {
29 if [ ${MK_SDK_VERSION} = "no" ]; then
30 install -d ${RELEASE-PATH}/lib
31 install -d ${RELEASE-PATH}/include/upi_ab
32
33 install -m 0755 ${S}/libupi_ab/libupi_ab.so ${RELEASE-PATH}/lib
34 install -m 0755 ${S}/libupi_ab/libupi_ab.a ${RELEASE-PATH}/lib
35 install -m 0644 ${S}/libupi_ab/inc/*.h ${RELEASE-PATH}/include/upi_ab
36
37 #install elfs
38 install -d ${ELFS-PATH}/
39 install -m 0755 ${S}/libupi_ab/libupi_ab.so ${ELFS-PATH}/
40 fi
41 install -d ${D}${libdir}/
42 install -d ${D}/usr/include
43
44 install -m 0755 ${RELEASE-PATH}/lib/libupi_ab.so ${D}${libdir}/
45 install -m 0755 ${RELEASE-PATH}/lib/libupi_ab.a ${D}${libdir}/
46 install -m 0644 ${RELEASE-PATH}/include/upi_ab/*.h ${D}/usr/include/
47}
48
49#清库
50
51do_cleanlibs () {
52 if [ ${MK_SDK_VERSION} = "no" ]; then
53 rm -fr ${RELEASE-PATH}/lib/libupi_ab.so
54 rm -fr ${RELEASE-PATH}/lib/libupi_ab.a
55 rm -fr ${RELEASE-PATH}/include/upi_ab/*.h
56
57 rm -fr ${ELFS-PATH}/libupi_ab.so
58 fi
59}
60
61FILES_${PN} += "${libdir}/*.so"
62FILES_${PN}-dbg += "${libdir}/.debug"
63FILES_SOLIBSDEV = ""
64INSANE_SKIP_${PN} = "dev-so"
65
66RDEPENDS_${PN} = "libnvram libsoftap libsofttimer libatutils zlib libmtd"