Initial commit
This commit is contained in:
+40
@@ -0,0 +1,40 @@
|
||||
SUMMARY = "Bletchley SLED Present Service"
|
||||
DESCRIPTION = "OpenBMC Quanta Detect Present Daemon."
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
DEPENDS += "systemd"
|
||||
RDEPENDS:${PN} += " bash phosphor-gpio-monitor-presence"
|
||||
|
||||
SRC_URI = " file://detect-sled-present \
|
||||
file://detect-sled-present@.service \
|
||||
file://bletchley-sled-insertion@.target \
|
||||
file://bletchley-sled-removal@.target \
|
||||
"
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 0755 ${WORKDIR}/detect-sled-present ${D}${bindir}/
|
||||
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/detect-sled-present@.service ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/bletchley-sled-insertion@.target ${D}${systemd_system_unitdir}
|
||||
install -m 0644 ${WORKDIR}/bletchley-sled-removal@.target ${D}${systemd_system_unitdir}
|
||||
}
|
||||
|
||||
TGT = "${SYSTEMD_DEFAULT_TARGET}"
|
||||
|
||||
SLED_PRESENT_INSTFMT="../detect-sled-present@.service:${TGT}.wants/detect-sled-present@{0}.service"
|
||||
SYSTEMD_SERVICE:${PN} += "detect-sled-present@.service"
|
||||
SYSTEMD_LINK:${PN} += "${@compose_list(d, 'SLED_PRESENT_INSTFMT', 'OBMC_HOST_INSTANCES')}"
|
||||
|
||||
SLED_INSERT_INSTFMT="../bletchley-sled-insertion@.target:${TGT}.wants/bletchley-sled-insertion@{0}.target"
|
||||
SYSTEMD_SERVICE:${PN} += "bletchley-sled-insertion@.target"
|
||||
SYSTEMD_LINK:${PN} += "${@compose_list(d, 'SLED_INSERT_INSTFMT', 'OBMC_HOST_INSTANCES')}"
|
||||
|
||||
SLED_REMOVE_INSTFMT="bletchley-sled-removal@.target:bletchley-sled-removal@{0}.target"
|
||||
SYSTEMD_SERVICE:${PN} += "bletchley-sled-removal@.target"
|
||||
SYSTEMD_LINK:${PN} += "${@compose_list(d, 'SLED_REMOVE_INSTFMT', 'OBMC_HOST_INSTANCES')}"
|
||||
Reference in New Issue
Block a user