blob: 15d42b2a276f8a8bba78461a7faca1f3def7217c [file] [log] [blame]
xf.li742dd022023-06-08 01:43:32 -07001DESCRIPTION = "ab-bootinfo"
2#nv依赖libnvram库
xf.li6c8fc1e2023-08-12 00:11:09 -07003DEPENDS = "libflags libmtd"
xf.li742dd022023-06-08 01:43:32 -07004SECTION = "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
xf.li6c8fc1e2023-08-12 00:11:09 -070018# 引用公用头文件和编译选项。
19include ${BSPDIR}/sources/meta-zxic/conf/app_com.inc
20include ${BSPDIR}/sources/meta-zxic/conf/pub.inc
21CFLAGS_append = "${ZXIC_EXTRA_CFLAGS}"
22
xf.li742dd022023-06-08 01:43:32 -070023#编译
24do_compile() {
25 make -C ab_bootinfo
26}
27
28#库文件的安装,封库的宏MK_SDK_VERSION
29do_install () {
30 install -d ${D}${bindir}/
31 install -m 0755 ${S}/ab_bootinfo/ab_bootinfo ${D}${bindir}/
32
33 #install elfs
34 install -d ${ELFS-PATH}/
35 install -m 0755 ${S}/ab_bootinfo/ab_bootinfo ${ELFS-PATH}/
36}
37#清库
38do_cleanlibs () {
39 rm -fr ${ELFS-PATH}/ab_bootinfo
40}
41
42addtask cleanlibs after do_clean before do_cleansstate
43
44#rootfs包含的文件
45FILES_${PN} = "\
46 ${bindir}/ \
47 "
48SYSTEMD_SERVICE_${PN} = "ab_bootinfo.service"
49SYSTEMD_AUTO_ENABLE_${PN} = "disable"