xf.li | 742dd02 | 2023-06-08 01:43:32 -0700 | [diff] [blame] | 1 | DESCRIPTION = "libupi_ab" |
| 2 | DEPENDS = "libnvram libsoftap libsofttimer libatutils zlib openssl libmtd" |
| 3 | SECTION = "lib" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 8 | |
| 9 | #配置code路径信息。 |
| 10 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/sdk:" |
| 11 | SRC_URI = " \ |
| 12 | ${@bb.utils.contains("MK_SDK_VERSION", "yes", "", "file://libupi_ab", d)} \ |
| 13 | " |
| 14 | |
| 15 | S = "${WORKDIR}" |
| 16 | #引用公用头文件和编译选项。 |
| 17 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 18 | include ${BSPDIR}/sources/meta-zxic/conf/pub.inc |
| 19 | |
| 20 | CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}" |
| 21 | |
| 22 | do_compile () { |
| 23 | if [ ${MK_SDK_VERSION} = "no" ]; then |
| 24 | make -C libupi_ab |
| 25 | fi |
| 26 | } |
| 27 | |
| 28 | do_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 | |
| 51 | do_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 | |
| 61 | FILES_${PN} += "${libdir}/*.so" |
| 62 | FILES_${PN}-dbg += "${libdir}/.debug" |
| 63 | FILES_SOLIBSDEV = "" |
| 64 | INSANE_SKIP_${PN} = "dev-so" |
| 65 | |
| 66 | RDEPENDS_${PN} = "libnvram libsoftap libsofttimer libatutils zlib libmtd" |