blob: 7c0e66e0c9fd9a8e23b51616ede54c46a203ae37 [file] [log] [blame]
DESCRIPTION = "fota_upi_ab"
#ota-upgrade依赖库
DEPENDS = "libmtd libnvram libsoftap libsofttimer libatutils libupi-ab"
SECTION = "app"
LICENSE = "zte"
PV = "1.0.0"
PR = "r0"
#配置code路径信息。
FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
SRC_URI = " \
${@bb.utils.contains("MK_SDK_VERSION", "yes", "", "file://fota_upi_ab", d)} \
"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
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() {
if [ ${MK_SDK_VERSION} = "no" ]; then
make -C fota_upi_ab
fi
}
#库文件的安装,封库的宏MK_SDK_VERSION
do_install () {
if [ ${MK_SDK_VERSION} = "no" ]; then
install -d ${RELEASE-PATH}/executable
install -m 0755 ${S}/fota_upi_ab/fota_upi_ab_static ${RELEASE-PATH}/executable
#install elfs
install -d ${ELFS-PATH}/
install -m 0755 ${S}/fota_upi_ab/fota_upi_ab_static ${ELFS-PATH}/
fi
install -d ${D}${bindir}/
install -m 0755 ${RELEASE-PATH}/executable/fota_upi_ab_static ${D}${bindir}/
}
#清库
do_cleanlibs () {
if [ ${MK_SDK_VERSION} = "no" ]; then
rm -fr ${ELFS-PATH}/fota_upi_ab
fi
}
addtask cleanlibs after do_clean before do_cleansstate
#rootfs包含的文件
FILES_${PN} = "\
${bindir}/ \
"
RDEPENDS_${PN} = "libupi-ab"