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