blob: 120a61fe3f0816fdecd85f9fc0be391f3a8df696 [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "sc_softtimer_test"
2
3DEPENDS = "libsofttimer"
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://sc_softtimer_test \
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 sc_softtimer_test
29}
30
31
32do_install() {
33 install -d ${D}${bindir}/
34 install -m 0777 ${S}/sc_softtimer_test/sc_softtimer_test ${D}${bindir}/
35
36 #install elfs
37 install -d ${ELFS-PATH}/
38 install -m 0755 ${S}/sc_softtimer_test/sc_softtimer_test ${ELFS-PATH}/
39}
40
41do_cleanlibs () {
42 rm -fr ${ELFS-PATH}/sc_softtimer_test
43}
44
45addtask cleanlibs after do_clean before do_cleansstate
46
47FILES_${PN} = "\
48 ${bindir}/ \
49 "
xf.li84027492024-04-09 00:17:51 -070050
51
52RDEPENDS_${PN} = "libsofttimer"
53