Initial commit
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
SUMMARY = "greatlakes gpio monitor register"
|
||||
DESCRIPTION = "greatlakes gpio monitor register"
|
||||
SECTION = "base"
|
||||
PR = "r1"
|
||||
LICENSE = "Apache-2.0"
|
||||
LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10"
|
||||
S = "${WORKDIR}"
|
||||
|
||||
inherit obmc-phosphor-systemd
|
||||
|
||||
SRC_URI = "file://set-current-host-state@.service \
|
||||
"
|
||||
|
||||
DEPENDS += "systemd"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} += "set-current-host-state@.service"
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Set currrent host state property slot%i
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/busctl set-property xyz.openbmc_project.State.Host%i /xyz/openbmc_project/state/host%i xyz.openbmc_project.State.Host CurrentHostState s "xyz.openbmc_project.State.Host.HostState.Off"
|
||||
SyslogIdentifier=set-current-host-state-slot%i
|
||||
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
[
|
||||
{
|
||||
"Name": "PWROK_STBY_BMC_SLOT1",
|
||||
"ChipId": "0",
|
||||
"GpioNum": 10,
|
||||
"EventMon": "FALLING",
|
||||
"Target": "set-current-host-state@1.service",
|
||||
"Continue": true
|
||||
},
|
||||
{
|
||||
"Name": "PWROK_STBY_BMC_SLOT2",
|
||||
"ChipId": "0",
|
||||
"GpioNum": 11,
|
||||
"EventMon": "FALLING",
|
||||
"Target": "set-current-host-state@2.service",
|
||||
"Continue": true
|
||||
},
|
||||
{
|
||||
"Name": "PWROK_STBY_BMC_SLOT3",
|
||||
"ChipId": "0",
|
||||
"GpioNum": 12,
|
||||
"EventMon": "FALLING",
|
||||
"Target": "set-current-host-state@3.service",
|
||||
"Continue": true
|
||||
},
|
||||
{
|
||||
"Name": "PWROK_STBY_BMC_SLOT4",
|
||||
"ChipId": "0",
|
||||
"GpioNum": 13,
|
||||
"EventMon": "FALLING",
|
||||
"Target": "set-current-host-state@4.service",
|
||||
"Continue": true
|
||||
}
|
||||
]
|
||||
@@ -0,0 +1,9 @@
|
||||
FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
|
||||
|
||||
SRC_URI += "file://greatlakes-phosphor-multi-gpio-monitor.json"
|
||||
|
||||
do_install:append:() {
|
||||
install -d ${D}${datadir}/phosphor-gpio-monitor
|
||||
install -m 0644 ${WORKDIR}/greatlakes-phosphor-multi-gpio-monitor.json \
|
||||
${D}${datadir}/phosphor-gpio-monitor/phosphor-multi-gpio-monitor.json
|
||||
}
|
||||
Reference in New Issue
Block a user