Potin Lai | e096c41 | 2022-09-01 14:12:25 +0800 | [diff] [blame^] | 1 | LICENSE = "Apache-2.0" |
| 2 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 3 | |
| 4 | inherit obmc-phosphor-systemd |
| 5 | |
| 6 | RDEPENDS:${PN} += " bash motor-ctrl" |
| 7 | |
| 8 | SRC_URI += " \ |
| 9 | file://bletchley-system-state-init \ |
| 10 | file://bletchley-system-state-init@.service \ |
| 11 | " |
| 12 | |
| 13 | do_install() { |
| 14 | install -d ${D}${libexecdir} |
| 15 | install -m 0755 ${WORKDIR}/bletchley-system-state-init ${D}${libexecdir} |
| 16 | } |
| 17 | |
| 18 | |
| 19 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 20 | BLETCHLEY_SYS_ST_INIT_INSTFMT="../bletchley-system-state-init@.service:${TGT}.wants/bletchley-system-state-init@{0}.service" |
| 21 | |
| 22 | SYSTEMD_SERVICE:${PN} += "bletchley-system-state-init@.service" |
| 23 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'BLETCHLEY_SYS_ST_INIT_INSTFMT', 'OBMC_HOST_INSTANCES')}" |