blob: 8c19cd3b5364b2806b80ba9efcd9f6e5c6d1d400 [file] [log] [blame]
Charles Kearney92a3faa2023-05-30 14:24:18 -05001inherit obmc-phosphor-systemd
2SUMMARY = "Power Sequencing for HPE RL300 Gen11"
3SYSTEMD_AUTO_ENABLE = "enable"
4SYSTEMD_SERVICE:${PN} = "monitor-ipmi-power-transition.service power-sequencing.service gpiosdown.service gpiosup.service powerbuttonpressed.service powerbuttonreleased.service"
5SRC_URI:append = " file://monitor-ipmi-power-transition.service file://ipmi-power-button-monitoring.sh file://rl300Start.sh file://power-sequencing.service file://gpiosdown.service file://gpiosup.service file://gpios-manager.sh file://test.json file://powerbuttonreleased.service file://powerbuttonpressed.service file://power-button.sh file://startMonitoring.sh"
6
7LICENSE = "Apache-2.0"
Andrew Neylandc1628742023-09-18 14:55:47 -05008LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
Charles Kearney92a3faa2023-05-30 14:24:18 -05009
10FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
11IMAGE_INSTALL += "power-sequencing "
12
13FILES:${PN} = "/usr/share/gpios/* /usr/bin/* /etc/system/*"
14
15do_install:append() {
16 install -d ${D}${sysconfdir}/system/
17 install -d ${D}/usr/share/gpios
18 install -d ${D}/usr/bin
19 install -m 0644 ${WORKDIR}/test.json ${D}/usr/share/gpios/test.json
20 install -m 0644 ${WORKDIR}/power-sequencing.service ${D}${sysconfdir}/system/power-sequencing.service
21 install -m 0644 ${WORKDIR}/gpiosup.service ${D}${sysconfdir}/system/gpiosup.service
22 install -m 0644 ${WORKDIR}/gpiosdown.service ${D}${sysconfdir}/system/gpiosdown.service
23 install -m 0644 ${WORKDIR}/powerbuttonpressed.service ${D}${sysconfdir}/system/powerbuttonpressed.service
24 install -m 0644 ${WORKDIR}/powerbuttonreleased.service ${D}${sysconfdir}/system/powerbuttonreleased.service
25 install -m 0644 ${WORKDIR}/monitor-ipmi-power-transition.service ${D}${sysconfdir}/system/monitor-ipmi-power-transition.service
26 install -m 0755 ${WORKDIR}/gpios-manager.sh ${D}/usr/bin/gpios-manager.sh
27 install -m 0755 ${WORKDIR}/startMonitoring.sh ${D}/usr/bin/startMonitoring.sh
28 install -m 0755 ${WORKDIR}/rl300Start.sh ${D}/usr/bin/rl300Start.sh
29 install -m 0755 ${WORKDIR}/ipmi-power-button-monitoring.sh ${D}/usr/bin/ipmi-power-button-monitoring.sh
30 install -m 0755 ${WORKDIR}/power-button.sh ${D}/usr/bin/power-button.sh
31}