blob: a7045dfcbda4b0b4b9deb017fab195acee347d85 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001DESCRIPTION = "wifi_demo"
2DEPENDS = "libsctel"
3SECTION = "app"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7
8CLASS_COM = " \
9 ${@bb.utils.contains('DISTRO_FEATURES', 'procd', 'openwrt openwrt-services', '', d)} \
10 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
11"
12inherit ${CLASS_COM}
13
14#配置code路径信息。
15FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:"
16SRC_URI = " \
17 file://wifi_demo \
18 "
19
20LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
21S = "${WORKDIR}"
22
23#引用公用头文件和编译选项。
24include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
25
26
27do_compile() {
28 make -C wifi_demo
29}
30
31do_install () {
32 install -d ${D}${bindir}/
33 install -m 0755 ${S}/wifi_demo/wifi_demo ${D}${bindir}/
34
35 #install elfs
36 install -d ${ELFS-PATH}/
37 install -m 0755 ${S}/wifi_demo/wifi_demo ${ELFS-PATH}/
38}
39
40do_cleanlibs () {
41 rm -fr ${ELFS-PATH}/wifi_demo
42}
43
44addtask cleanlibs after do_clean before do_cleansstate
45
46FILES_${PN} = "\
47 ${bindir}/ \
48 "
49
50RDEPENDS_${PN} = " libsctel"