blob: a7045dfcbda4b0b4b9deb017fab195acee347d85 [file] [log] [blame]
DESCRIPTION = "wifi_demo"
DEPENDS = "libsctel"
SECTION = "app"
LICENSE = "zte"
PV = "1.0.0"
PR = "r0"
CLASS_COM = " \
${@bb.utils.contains('DISTRO_FEATURES', 'procd', 'openwrt openwrt-services', '', d)} \
${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
"
inherit ${CLASS_COM}
#配置code路径信息。
FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:"
SRC_URI = " \
file://wifi_demo \
"
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
S = "${WORKDIR}"
#引用公用头文件和编译选项。
include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
do_compile() {
make -C wifi_demo
}
do_install () {
install -d ${D}${bindir}/
install -m 0755 ${S}/wifi_demo/wifi_demo ${D}${bindir}/
#install elfs
install -d ${ELFS-PATH}/
install -m 0755 ${S}/wifi_demo/wifi_demo ${ELFS-PATH}/
}
do_cleanlibs () {
rm -fr ${ELFS-PATH}/wifi_demo
}
addtask cleanlibs after do_clean before do_cleansstate
FILES_${PN} = "\
${bindir}/ \
"
RDEPENDS_${PN} = " libsctel"