blob: 8d0aa8c72b162ea77ccc7a309cee8604920c01be [file] [log] [blame]
Samuel Jiangabda5612019-03-21 13:47:13 +08001SUMMARY = "Phosphor OpenBMC Quanta NVME Power Control Service"
2DESCRIPTION = "Phosphor OpenBMC Quanta NVME Power Control Daemon."
3PR = "r1"
4LICENSE = "Apache-2.0"
5LIC_FILES_CHKSUM = "file://${QUANTABASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658"
6
7FILESEXTRAPATHS_append := "${THISDIR}/files:"
8
9inherit systemd
10
11DEPENDS += "systemd"
12RDEPENDS_${PN} += "libsystemd"
13RDEPENDS_${PN} += "bash"
14
15SRC_URI += "file://init_once.sh \
16 file://nvme_powermanager.sh \
17 file://nvme_gpio.service \
18 file://nvme_powermanager.service \
19 "
20
21do_install () {
22 install -d ${D}${bindir}
23 install -m 0755 ${WORKDIR}/init_once.sh ${D}${bindir}/
24 install -m 0755 ${WORKDIR}/nvme_powermanager.sh ${D}${bindir}/
25
26 install -d ${D}${systemd_unitdir}/system/
27 install -m 0644 ${WORKDIR}/nvme_gpio.service ${D}${systemd_unitdir}/system
28 install -m 0644 ${WORKDIR}/nvme_powermanager.service ${D}${systemd_unitdir}/system
29}
30
31SYSTEMD_PACKAGES = "${PN}"
32SYSTEMD_SERVICE_${PN} = "nvme_gpio.service nvme_powermanager.service"