blob: 8ff57ae9e32c0871e9e1a028f13c511b96d7ab85 [file] [log] [blame]
xf.libdd93d52023-05-12 07:10:14 -07001DESCRIPTION = "bsp_test"
xf.lif2330622024-05-15 18:17:18 -07002DEPENDS = "libnvram libbsp"
xf.libdd93d52023-05-12 07:10:14 -07003SECTION = "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}:"
16SRC_URI = " \
17 file://test/bsp_test \
18 "
19
20LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
21S = "${WORKDIR}"
22S_SRC_PATH = "${S}/test/bsp_test"
23#引用公用头文件和编译选项。
24include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
25include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
26CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
27
28#inherit autotools pkgconfig systemd
29
30do_compile() {
31 make -C ${S_SRC_PATH}
32}
33
34do_install () {
35 install -d ${D}${bindir}/
36 install -m 0755 ${S_SRC_PATH}/bsp_test ${D}${bindir}/
37
38 #install elfs
39 install -d ${ELFS-PATH}/
40 install -m 0755 ${S_SRC_PATH}/bsp_test ${ELFS-PATH}/
41}
42
43do_cleanlibs () {
44 rm -fr ${ELFS-PATH}/bsp_test
45}
46
47addtask cleanlibs after do_clean before do_cleansstate
48
49#rootfs包含的文件
50FILES_${PN} = "\
51 ${bindir}/ \
52 "