Lei YU | b3cb381 | 2016-12-22 16:15:03 +0800 | [diff] [blame] | 1 | SUMMARY = "Romulus CPLD Trigger" |
| 2 | DESCRIPTION = "Romulus power on workaround to trigger CPLD to continue power sequence" |
| 3 | PR = "r0" |
| 4 | |
| 5 | inherit obmc-phosphor-systemd |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | RDEPENDS_${PN} += "obmc-pydevtools" |
| 9 | |
| 10 | PROVIDES += 'virtual/p9-vcs-workaround' |
| 11 | RPROVIDES_${PN} += 'virtual-p9-vcs-workaround' |
| 12 | |
| 13 | S = "${WORKDIR}" |
| 14 | SRC_URI += "file://cpld_trigger.sh" |
| 15 | |
| 16 | do_install() { |
| 17 | install -d ${D}${bindir} |
| 18 | install -m 0755 ${WORKDIR}/cpld_trigger.sh ${D}${bindir}/cpld_trigger.sh |
| 19 | } |
| 20 | |
| 21 | TMPL = "cpld_trigger@.service" |
| 22 | INSTFMT = "cpld_trigger@{0}.service" |
| 23 | TGTFMT = "obmc-chassis-start@{0}.target" |
| 24 | FMT = "../${TMPL}:${TGTFMT}.wants/${INSTFMT}" |
| 25 | |
| 26 | SYSTEMD_SERVICE_${PN} += "${TMPL}" |
| 27 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'OBMC_CHASSIS_INSTANCES')}" |
| 28 | |