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