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" |
Brad Bishop | 07d2b9d | 2019-09-13 13:04:22 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 6 | |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 7 | FILESEXTRAPATHS:append := "${THISDIR}/files:" |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 8 | |
| 9 | inherit systemd |
| 10 | |
| 11 | DEPENDS += "systemd" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 12 | RDEPENDS:${PN} += "libsystemd" |
| 13 | RDEPENDS:${PN} += "bash" |
Brandon Kim | de81b09 | 2022-01-07 11:36:01 -0800 | [diff] [blame] | 14 | RDEPENDS:${PN} += "iotools" |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 15 | |
| 16 | SRC_URI += "file://init_once.sh \ |
| 17 | file://nvme_powermanager.sh \ |
Samuel Jiang | 9a39379 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 18 | file://nvme_powerctrl_library.sh \ |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 19 | file://nvme_gpio.service \ |
| 20 | file://nvme_powermanager.service \ |
| 21 | " |
| 22 | |
| 23 | do_install () { |
| 24 | install -d ${D}${bindir} |
| 25 | install -m 0755 ${WORKDIR}/init_once.sh ${D}${bindir}/ |
| 26 | install -m 0755 ${WORKDIR}/nvme_powermanager.sh ${D}${bindir}/ |
| 27 | |
Samuel Jiang | 9a39379 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 28 | install -d ${D}${libexecdir} |
| 29 | install -m 0755 ${WORKDIR}/nvme_powerctrl_library.sh ${D}${libexecdir}/ |
| 30 | |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 31 | install -d ${D}${systemd_unitdir}/system/ |
| 32 | install -m 0644 ${WORKDIR}/nvme_gpio.service ${D}${systemd_unitdir}/system |
Samuel Jiang | 9a39379 | 2019-05-23 14:59:35 +0800 | [diff] [blame] | 33 | install -m 0644 ${WORKDIR}/nvme_powermanager.service ${D}${systemd_unitdir}/system |
Samuel Jiang | 94ca061 | 2019-03-21 13:47:13 +0800 | [diff] [blame] | 34 | } |
| 35 | |
| 36 | SYSTEMD_PACKAGES = "${PN}" |
Willy Tu | a38b7cc | 2021-08-10 15:33:55 -0700 | [diff] [blame] | 37 | SYSTEMD_SERVICE:${PN} = "nvme_gpio.service nvme_powermanager.service" |