Ken Chen | 811e6b7 | 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" |
Brad Bishop | 9921ced | 2018-11-07 12:50:34 -0800 | [diff] [blame] | 4 | LICENSE = "Apache-2.0" |
Brad Bishop | c3a3b64 | 2019-09-13 14:02:27 -0400 | [diff] [blame] | 5 | LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" |
Ken Chen | 811e6b7 | 2018-01-30 09:51:50 +0800 | [diff] [blame] | 6 | |
| 7 | inherit obmc-phosphor-systemd |
Ken Chen | 811e6b7 | 2018-01-30 09:51:50 +0800 | [diff] [blame] | 8 | |
| 9 | PROVIDES += 'virtual/ir38163-workaround' |
| 10 | RPROVIDES_${PN} += 'virtual-ir38163-workaround' |
| 11 | |
| 12 | IR_REMOVE = "ir-remove@.service" |
| 13 | IR_ADD = "ir-add@.service" |
| 14 | INSTIR_REMOVE = "ir-remove@{0}.service" |
| 15 | INSTIR_ADD = "ir-add@{0}.service" |
| 16 | TGTFMT_OFF = "obmc-chassis-poweroff@{0}.target" |
| 17 | TGTFMT_ON = "obmc-chassis-poweron@{0}.target" |
| 18 | FMT_REMOVE = "../${IR_REMOVE}:${TGTFMT_OFF}.wants/${INSTIR_REMOVE}" |
| 19 | FMT_ADD = "../${IR_ADD}:${TGTFMT_ON}.requires/${INSTIR_ADD}" |
| 20 | |
| 21 | SYSTEMD_SERVICE_${PN} += "${IR_REMOVE}" |
| 22 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_REMOVE', 'OBMC_CHASSIS_INSTANCES')}" |
| 23 | SYSTEMD_SERVICE_${PN} += "${IR_ADD}" |
| 24 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_ADD', 'OBMC_CHASSIS_INSTANCES')}" |
| 25 | |
| 26 | SRC_URI += "file://ir38163_workaround.sh" |
| 27 | |
| 28 | do_install() { |
| 29 | install -d ${D}${bindir} |
| 30 | install -m 0755 ${WORKDIR}/ir38163_workaround.sh ${D}${bindir}/ir38163_workaround.sh |
| 31 | } |