Samuel Jiang | abda561 | 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 \ |
Samuel Jiang | a9607d7 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 17 | file://nvme_powerctrl_library.sh \ |
Samuel Jiang | abda561 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 18 | file://nvme_gpio.service \ |
| 19 | file://nvme_powermanager.service \ |
| 20 | " |
| 21 | |
| 22 | do_install () { |
| 23 | install -d ${D}${bindir} |
| 24 | install -m 0755 ${WORKDIR}/init_once.sh ${D}${bindir}/ |
| 25 | install -m 0755 ${WORKDIR}/nvme_powermanager.sh ${D}${bindir}/ |
| 26 | |
Samuel Jiang | a9607d7 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 27 | install -d ${D}${libexecdir} |
| 28 | install -m 0755 ${WORKDIR}/nvme_powerctrl_library.sh ${D}${libexecdir}/ |
| 29 | |
Samuel Jiang | abda561 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 30 | install -d ${D}${systemd_unitdir}/system/ |
| 31 | install -m 0644 ${WORKDIR}/nvme_gpio.service ${D}${systemd_unitdir}/system |
Samuel Jiang | a9607d7 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 32 | install -m 0644 ${WORKDIR}/nvme_powermanager.service ${D}${systemd_unitdir}/system |
Samuel Jiang | abda561 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 33 | } |
| 34 | |
| 35 | SYSTEMD_PACKAGES = "${PN}" |
| 36 | SYSTEMD_SERVICE_${PN} = "nvme_gpio.service nvme_powermanager.service" |