Matt Spinler | 1a35b16 | 2017-03-08 13:53:51 -0600 | [diff] [blame] | 1 | SUMMARY = "FSI Services" |
| 2 | DESCRIPTION = "Install FSI related services" |
| 3 | PR = "r1" |
| 4 | |
| 5 | inherit obmc-phosphor-systemd |
| 6 | inherit obmc-phosphor-license |
| 7 | |
| 8 | TGTFMT = "obmc-power-chassis-on@{0}.target" |
| 9 | |
| 10 | TMPL_SCAN = "fsi-scan@.service" |
| 11 | INSTFMT_SCAN = "fsi-scan@{0}.service" |
| 12 | FMT_SCAN = "../${TMPL_SCAN}:${TGTFMT}.requires/${INSTFMT_SCAN}" |
| 13 | |
| 14 | TMPL_BIND = "fsi-bind@.service" |
| 15 | INSTFMT_BIND = "fsi-bind@{0}.service" |
| 16 | FMT_BIND = "../${TMPL_BIND}:${TGTFMT}.requires/${INSTFMT_BIND}" |
| 17 | |
| 18 | SYSTEMD_SERVICE_${PN} += "${TMPL_SCAN} ${TMPL_BIND} fsi-enable.service fsi-disable.service" |
| 19 | |
| 20 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_SCAN', 'OBMC_CHASSIS_INSTANCES')}" |
| 21 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_BIND', 'OBMC_CHASSIS_INSTANCES')}" |