blob: f70a740b6e29f4d69449e7bbce53b8c42ac6984b [file] [log] [blame]
Potin Laifc738002022-05-25 19:42:58 +08001SUMMARY = "Bletchley SLED Present Service"
2DESCRIPTION = "OpenBMC Quanta Detect Present Daemon."
3PR = "r1"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
6
7inherit obmc-phosphor-systemd
8
9DEPENDS += "systemd"
10RDEPENDS:${PN} += " bash phosphor-gpio-monitor-presence"
11
12SRC_URI = " file://detect-sled-present \
13 file://detect-sled-present@.service \
14 "
15
16do_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
24TGT = "${SYSTEMD_DEFAULT_TARGET}"
25SLED_PRESENT_INSTFMT="../detect-sled-present@.service:${TGT}.wants/detect-sled-present@{0}.service"
26SYSTEMD_SERVICE:${PN} += "detect-sled-present@.service"
27SYSTEMD_LINK:${PN} += "${@compose_list(d, 'SLED_PRESENT_INSTFMT', 'OBMC_HOST_INSTANCES')}"