Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame^] | 1 | SUMMARY = "Phosphor OpenBMC Quanta NVME Power Control Service" |
| 2 | DESCRIPTION = "Phosphor OpenBMC Quanta NVME Power Control Daemon." |
| 3 | PR = "r1" |
| 4 | LICENSE = "Apache-2.0" |
| 5 | LIC_FILES_CHKSUM = "file://${QUANTABASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
| 6 | |
| 7 | FILESEXTRAPATHS_append := "${THISDIR}/files:" |
| 8 | |
| 9 | inherit systemd |
| 10 | |
| 11 | DEPENDS += "systemd" |
| 12 | RDEPENDS_${PN} += "libsystemd" |
| 13 | RDEPENDS_${PN} += "bash" |
| 14 | |
| 15 | SRC_URI += "file://init_once.sh \ |
| 16 | file://nvme_powermanager.sh \ |
| 17 | file://nvme_gpio.service \ |
| 18 | file://nvme_powermanager.service \ |
| 19 | " |
| 20 | |
| 21 | do_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 | |
| 31 | SYSTEMD_PACKAGES = "${PN}" |
| 32 | SYSTEMD_SERVICE_${PN} = "nvme_gpio.service nvme_powermanager.service" |