Charles Kearney | 92a3faa | 2023-05-30 14:24:18 -0500 | [diff] [blame] | 1 | inherit obmc-phosphor-systemd |
| 2 | SUMMARY = "Power Sequencing for HPE RL300 Gen11" |
| 3 | SYSTEMD_AUTO_ENABLE = "enable" |
| 4 | SYSTEMD_SERVICE:${PN} = "monitor-ipmi-power-transition.service power-sequencing.service gpiosdown.service gpiosup.service powerbuttonpressed.service powerbuttonreleased.service" |
| 5 | SRC_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 | |
| 7 | LICENSE = "Apache-2.0" |
Andrew Neyland | c162874 | 2023-09-18 14:55:47 -0500 | [diff] [blame] | 8 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Charles Kearney | 92a3faa | 2023-05-30 14:24:18 -0500 | [diff] [blame] | 9 | |
| 10 | FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" |
| 11 | IMAGE_INSTALL += "power-sequencing " |
| 12 | |
| 13 | FILES:${PN} = "/usr/share/gpios/* /usr/bin/* /etc/system/*" |
| 14 | |
| 15 | do_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 | } |