blob: 5d0168f62bccb8b3b651cc176a24496c890f1816 [file] [log] [blame]
Samuel Jiang94ca0612019-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"
Brad Bishop07d2b9d2019-09-13 13:04:22 -04005LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Samuel Jiang94ca0612019-03-21 13:47:13 +08006
Willy Tua38b7cc2021-08-10 15:33:55 -07007FILESEXTRAPATHS:append := "${THISDIR}/files:"
Samuel Jiang94ca0612019-03-21 13:47:13 +08008
9inherit systemd
10
11DEPENDS += "systemd"
Willy Tua38b7cc2021-08-10 15:33:55 -070012RDEPENDS:${PN} += "libsystemd"
13RDEPENDS:${PN} += "bash"
Brandon Kimde81b092022-01-07 11:36:01 -080014RDEPENDS:${PN} += "iotools"
Samuel Jiang94ca0612019-03-21 13:47:13 +080015
16SRC_URI += "file://init_once.sh \
17 file://nvme_powermanager.sh \
Samuel Jiang9a393792019-05-23 14:59:35 +080018 file://nvme_powerctrl_library.sh \
Samuel Jiang94ca0612019-03-21 13:47:13 +080019 file://nvme_gpio.service \
20 file://nvme_powermanager.service \
21 "
22
23do_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 Jiang9a393792019-05-23 14:59:35 +080028 install -d ${D}${libexecdir}
29 install -m 0755 ${WORKDIR}/nvme_powerctrl_library.sh ${D}${libexecdir}/
30
Samuel Jiang94ca0612019-03-21 13:47:13 +080031 install -d ${D}${systemd_unitdir}/system/
32 install -m 0644 ${WORKDIR}/nvme_gpio.service ${D}${systemd_unitdir}/system
Samuel Jiang9a393792019-05-23 14:59:35 +080033 install -m 0644 ${WORKDIR}/nvme_powermanager.service ${D}${systemd_unitdir}/system
Samuel Jiang94ca0612019-03-21 13:47:13 +080034}
35
36SYSTEMD_PACKAGES = "${PN}"
Willy Tua38b7cc2021-08-10 15:33:55 -070037SYSTEMD_SERVICE:${PN} = "nvme_gpio.service nvme_powermanager.service"