Potin Lai | fc73800 | 2022-05-25 19:42:58 +0800 | [diff] [blame^] | 1 | SUMMARY = "Bletchley SLED Present Service" |
| 2 | DESCRIPTION = "OpenBMC Quanta Detect Present Daemon." |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
| 6 | |
| 7 | inherit obmc-phosphor-systemd |
| 8 | |
| 9 | DEPENDS += "systemd" |
| 10 | RDEPENDS:${PN} += " bash phosphor-gpio-monitor-presence" |
| 11 | |
| 12 | SRC_URI = " file://detect-sled-present \ |
| 13 | file://detect-sled-present@.service \ |
| 14 | " |
| 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${bindir} |
| 18 | install -m 0755 ${WORKDIR}/detect-sled-present ${D}${bindir}/ |
| 19 | |
| 20 | install -d ${D}${systemd_system_unitdir} |
| 21 | install -m 0644 ${WORKDIR}/detect-sled-present@.service ${D}${systemd_system_unitdir} |
| 22 | } |
| 23 | |
| 24 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 25 | SLED_PRESENT_INSTFMT="../detect-sled-present@.service:${TGT}.wants/detect-sled-present@{0}.service" |
| 26 | SYSTEMD_SERVICE:${PN} += "detect-sled-present@.service" |
| 27 | SYSTEMD_LINK:${PN} += "${@compose_list(d, 'SLED_PRESENT_INSTFMT', 'OBMC_HOST_INSTANCES')}" |