Ken Chen | fd74c19 | 2018-01-30 09:51:50 +0800 | [diff] [blame^] | 1 | SUMMARY = "centriq2400 VR sensor Re-Probe" |
| 2 | DESCRIPTION = "IR38163 work on DC on state, need re-probe for centriq2400 HW design" |
| 3 | PR = "r0" |
| 4 | |
| 5 | inherit obmc-phosphor-systemd |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | PROVIDES += 'virtual/ir38163-workaround' |
| 9 | RPROVIDES_${PN} += 'virtual-ir38163-workaround' |
| 10 | |
| 11 | IR_REMOVE = "ir-remove@.service" |
| 12 | IR_ADD = "ir-add@.service" |
| 13 | INSTIR_REMOVE = "ir-remove@{0}.service" |
| 14 | INSTIR_ADD = "ir-add@{0}.service" |
| 15 | TGTFMT_OFF = "obmc-chassis-poweroff@{0}.target" |
| 16 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
| 17 | FMT_REMOVE = "../${IR_REMOVE}:${TGTFMT_OFF}.wants/${INSTIR_REMOVE}" |
| 18 | FMT_ADD = "../${IR_ADD}:${TGTFMT_ON}.requires/${INSTIR_ADD}" |
| 19 | |
| 20 | SYSTEMD_SERVICE_${PN} += "${IR_REMOVE}" |
| 21 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_REMOVE', 'OBMC_CHASSIS_INSTANCES')}" |
| 22 | SYSTEMD_SERVICE_${PN} += "${IR_ADD}" |
| 23 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ADD', 'OBMC_CHASSIS_INSTANCES')}" |
| 24 | |
| 25 | SRC_URI += "file://ir38163_workaround.sh" |
| 26 | |
| 27 | do_install() { |
| 28 | install -d ${D}${bindir} |
| 29 | install -m 0755 ${WORKDIR}/ir38163_workaround.sh ${D}${bindir}/ir38163_workaround.sh |
| 30 | } |