summaryrefslogtreecommitdiffstats
path: root/meta-qualcomm/meta-centriq2400-rep/recipes-phosphor/chassis/ir38163-workaround.bb
blob: 85c2e93b0e2b536514d359130d36389f33eb5bdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
SUMMARY = "centriq2400 VR sensor Re-Probe"
DESCRIPTION = "IR38163 work on DC on state, need re-probe for centriq2400 HW design"
PR = "r0"

inherit obmc-phosphor-systemd
inherit obmc-phosphor-license

PROVIDES += 'virtual/ir38163-workaround'
RPROVIDES_${PN} += 'virtual-ir38163-workaround'

IR_REMOVE = "ir-remove@.service"
IR_ADD = "ir-add@.service"
INSTIR_REMOVE = "ir-remove@{0}.service"
INSTIR_ADD = "ir-add@{0}.service"
TGTFMT_OFF = "obmc-chassis-poweroff@{0}.target"
TGTFMT_ON = "obmc-chassis-poweron@{0}.target"
FMT_REMOVE = "../${IR_REMOVE}:${TGTFMT_OFF}.wants/${INSTIR_REMOVE}"
FMT_ADD = "../${IR_ADD}:${TGTFMT_ON}.requires/${INSTIR_ADD}"

SYSTEMD_SERVICE_${PN} += "${IR_REMOVE}"
SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_REMOVE', 'OBMC_CHASSIS_INSTANCES')}"
SYSTEMD_SERVICE_${PN} += "${IR_ADD}"
SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ADD', 'OBMC_CHASSIS_INSTANCES')}"

SRC_URI += "file://ir38163_workaround.sh"

do_install() {
        install -d ${D}${bindir}
        install -m 0755 ${WORKDIR}/ir38163_workaround.sh ${D}${bindir}/ir38163_workaround.sh
}
OpenPOWER on IntegriCloud