xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 1 | DESCRIPTION = "uarttest"
|
| 2 |
|
xf.li | f233062 | 2024-05-15 18:17:18 -0700 | [diff] [blame^] | 3 | DEPENDS = "libnvram libbsp"
|
xf.li | bdd93d5 | 2023-05-12 07:10:14 -0700 | [diff] [blame] | 4 | SECTION = "app"
|
| 5 | LICENSE = "zte"
|
| 6 | PV = "1.0.0"
|
| 7 | PR = "r0"
|
| 8 |
|
| 9 | CLASS_COM = " \
|
| 10 | ${@bb.utils.contains('DISTRO_FEATURES', 'procd', 'openwrt openwrt-services', '', d)} \
|
| 11 | ${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)} \
|
| 12 | "
|
| 13 | inherit ${CLASS_COM}
|
| 14 |
|
| 15 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/test:"
|
| 16 | SRC_URI = " \
|
| 17 | file://uarttest \
|
| 18 | "
|
| 19 |
|
| 20 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
|
| 21 | S = "${WORKDIR}"
|
| 22 |
|
| 23 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
|
| 24 | include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
|
| 25 | CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
|
| 26 |
|
| 27 | do_compile() {
|
| 28 | make -C uarttest
|
| 29 | }
|
| 30 |
|
| 31 |
|
| 32 | do_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 |
|
| 41 | do_cleanlibs () {
|
| 42 | rm -fr ${ELFS-PATH}/uarttest
|
| 43 | }
|
| 44 |
|
| 45 | addtask cleanlibs after do_clean before do_cleansstate
|
| 46 |
|
| 47 | FILES_${PN} = "\
|
| 48 | ${bindir}/ \
|
| 49 | "
|