xf.li | 742dd02 | 2023-06-08 01:43:32 -0700 | [diff] [blame] | 1 | DESCRIPTION = "ab-bootinfo" |
| 2 | #nv依赖libnvram库 |
| 3 | DEPENDS = "libmtd libnvram libsofttimer libsoftap libupi-ab" |
| 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 | |
| 18 | #编译 |
| 19 | do_compile() { |
| 20 | make -C ab_bootinfo |
| 21 | } |
| 22 | |
| 23 | #库文件的安装,封库的宏MK_SDK_VERSION |
| 24 | do_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 | #清库 |
| 33 | do_cleanlibs () { |
| 34 | rm -fr ${ELFS-PATH}/ab_bootinfo |
| 35 | } |
| 36 | |
| 37 | addtask cleanlibs after do_clean before do_cleansstate |
| 38 | |
| 39 | #rootfs包含的文件 |
| 40 | FILES_${PN} = "\ |
| 41 | ${bindir}/ \ |
| 42 | " |
| 43 | SYSTEMD_SERVICE_${PN} = "ab_bootinfo.service" |
| 44 | SYSTEMD_AUTO_ENABLE_${PN} = "disable" |