xf.li | 6c8fc1e | 2023-08-12 00:11:09 -0700 | [diff] [blame^] | 1 | DESCRIPTION = "flags_tool" |
| 2 | DEPENDS = "libflags" |
| 3 | SECTION = "app" |
| 4 | LICENSE = "zte" |
| 5 | PV = "1.0.0" |
| 6 | PR = "r0" |
| 7 | |
| 8 | # 配置code路径信息。 |
| 9 | FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:" |
| 10 | SRC_URI = " \ |
| 11 | file://flags_tool \ |
| 12 | " |
| 13 | |
| 14 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808" |
| 15 | S = "${WORKDIR}" |
| 16 | |
| 17 | # 引用公用头文件和编译选项。 |
| 18 | include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc |
| 19 | include ${BSPDIR}/sources/meta-zxic/conf/pub.inc |
| 20 | |
| 21 | CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}" |
| 22 | |
| 23 | # 编译 |
| 24 | do_compile() { |
| 25 | make -C flags_tool |
| 26 | } |
| 27 | |
| 28 | # 安装 |
| 29 | do_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 | # 清库 |
| 39 | do_cleanlibs () { |
| 40 | rm -fr ${ELFS-PATH}/flags_tool |
| 41 | } |
| 42 | |
| 43 | addtask cleanlibs after do_clean before do_cleansstate |
| 44 | |
| 45 | # rootfs包含的文件 |
| 46 | FILES_${PN} = "\ |
| 47 | ${bindir}/ \ |
| 48 | " |