blob: 3153ce4bd7d02613693b9e855267bcd4e6458ea6 [file] [log] [blame]
xf.libdd93d52023-05-12 07:10:14 -07001DESCRIPTION = "uarttest"
2
3DEPENDS = "libbsp"
4SECTION = "app"
5LICENSE = "zte"
6PV = "1.0.0"
7PR = "r0"
8
9CLASS_COM = " \
10 ${@bb.utils.contains('DISTRO_FEATURES', 'procd', 'openwrt openwrt-services', '', d)} \
11 ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
12"
13inherit ${CLASS_COM}
14
15FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:"
16SRC_URI = " \
17 file://uarttest \
18 "
19
20LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
21S = "${WORKDIR}"
22
23include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
24include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
25CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
26
27do_compile() {
28 make -C uarttest
29}
30
31
32do_install() {
33 install -d ${D}${bindir}/
34 install -m 0777 ${S}/uarttest/uarttest ${D}${bindir}/
35
36 #install elfs
37 install -d ${ELFS-PATH}/
38 install -m 0755 ${S}/uarttest/uarttest ${ELFS-PATH}/
39}
40
41do_cleanlibs () {
42 rm -fr ${ELFS-PATH}/uarttest
43}
44
45addtask cleanlibs after do_clean before do_cleansstate
46
47FILES_${PN} = "\
48 ${bindir}/ \
49 "