blob: 1f0e0bc6db51a3d2f7f697968a30e6456edbbc04 [file] [log] [blame]
xf.li6c8fc1e2023-08-12 00:11:09 -07001DESCRIPTION = "flags_tool"
2DEPENDS = "libflags"
3SECTION = "app"
4LICENSE = "zte"
5PV = "1.0.0"
6PR = "r0"
7
8# 配置code路径信息。
9FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
10SRC_URI = " \
11 file://flags_tool \
12 "
13
14LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
15S = "${WORKDIR}"
16
17# 引用公用头文件和编译选项。
18include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
19include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
20
21CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
22
23# 编译
24do_compile() {
25 make -C flags_tool
26}
27
28# 安装
29do_install () {
30 install -d ${D}${bindir}/
31 install -m 0755 ${S}/flags_tool/flags_tool_static ${D}${bindir}/
32
33 #install elfs
34 install -d ${ELFS-PATH}/
35 install -m 0755 ${S}/flags_tool/flags_tool_static ${ELFS-PATH}/
36}
37
38# 清库
39do_cleanlibs () {
40 rm -fr ${ELFS-PATH}/flags_tool
41}
42
43addtask cleanlibs after do_clean before do_cleansstate
44
45# rootfs包含的文件
46FILES_${PN} = "\
47 ${bindir}/ \
48 "