blob: b54d5e76d802523e7b1664d82508424a975b1605 [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "libupi_ab"
xf.li6236ea72023-07-26 04:58:33 -07002DEPENDS = "libnvram libsoftap libsofttimer libatutils zlib openssl"
xf.li742dd022023-06-08 01:43:32 -07003SECTION = "lib"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
8
9#配置code路径信息。
xf.li6236ea72023-07-26 04:58:33 -070010FILESEXTRAPATHS_prepend :="${APP-PATH}:"
xf.li742dd022023-06-08 01:43:32 -070011SRC_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
xf.li6236ea72023-07-26 04:58:33 -070025 fi
xf.li742dd022023-06-08 01:43:32 -070026}
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
xf.li6236ea72023-07-26 04:58:33 -070035 install -m 0644 ${S}/libupi_ab/inc/zxic_fota_ab_upgrade.h ${RELEASE-PATH}/include/upi_ab
xf.li742dd022023-06-08 01:43:32 -070036
37 #install elfs
38 install -d ${ELFS-PATH}/
39 install -m 0755 ${S}/libupi_ab/libupi_ab.so ${ELFS-PATH}/
xf.li6236ea72023-07-26 04:58:33 -070040 fi
41
xf.li742dd022023-06-08 01:43:32 -070042 install -d ${D}${libdir}/
43 install -d ${D}/usr/include
44
45 install -m 0755 ${RELEASE-PATH}/lib/libupi_ab.so ${D}${libdir}/
46 install -m 0755 ${RELEASE-PATH}/lib/libupi_ab.a ${D}${libdir}/
xf.li6236ea72023-07-26 04:58:33 -070047 install -m 0644 ${RELEASE-PATH}/include/upi_ab/*.h ${D}/usr/include/
xf.li742dd022023-06-08 01:43:32 -070048}
49
50#清库
51
52do_cleanlibs () {
53 if [ ${MK_SDK_VERSION} = "no" ]; then
54 rm -fr ${RELEASE-PATH}/lib/libupi_ab.so
55 rm -fr ${RELEASE-PATH}/lib/libupi_ab.a
56 rm -fr ${RELEASE-PATH}/include/upi_ab/*.h
57
58 rm -fr ${ELFS-PATH}/libupi_ab.so
59 fi
60}
61
62FILES_${PN} += "${libdir}/*.so"
63FILES_${PN}-dbg += "${libdir}/.debug"
64FILES_SOLIBSDEV = ""
65INSANE_SKIP_${PN} = "dev-so"
66
xf.li6236ea72023-07-26 04:58:33 -070067RDEPENDS_${PN} = "libnvram libsoftap libsofttimer libatutils zlib"