Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [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 | |
Josh D. King | 9d5d7f4 | 2017-04-06 14:43:46 -0500 | [diff] [blame] | 8 | TGTFMT = "obmc-chassis-poweron@{0}.target" |
Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 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')}" |