blob: bd8dadd18a3ff27149536ec19279bb48a247387c [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "ab-bootinfo"
2#nv依赖libnvram库
3DEPENDS = "libmtd libnvram libsofttimer libsoftap libupi-ab"
4SECTION = "ab-bootinfo"
5LICENSE = "zte"
6PV = "1.0.0"
7PR = "r0"
8
9#配置code路径信息。
10FILESEXTRAPATHS_prepend :="${APP-OPEN-PATH}/platform:"
11SRC_URI = " \
12 file://ab_bootinfo \
13 "
14
15LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/zte;md5=c075689d1d1e06d4ab5bbe53623a6808"
16S = "${WORKDIR}"
17
18#编译
19do_compile() {
20 make -C ab_bootinfo
21}
22
23#库文件的安装,封库的宏MK_SDK_VERSION
24do_install () {
25 install -d ${D}${bindir}/
26 install -m 0755 ${S}/ab_bootinfo/ab_bootinfo ${D}${bindir}/
27
28 #install elfs
29 install -d ${ELFS-PATH}/
30 install -m 0755 ${S}/ab_bootinfo/ab_bootinfo ${ELFS-PATH}/
31}
32#清库
33do_cleanlibs () {
34 rm -fr ${ELFS-PATH}/ab_bootinfo
35}
36
37addtask cleanlibs after do_clean before do_cleansstate
38
39#rootfs包含的文件
40FILES_${PN} = "\
41 ${bindir}/ \
42 "
43SYSTEMD_SERVICE_${PN} = "ab_bootinfo.service"
44SYSTEMD_AUTO_ENABLE_${PN} = "disable"