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 | |
Andrew Geissler | dbaf865 | 2017-08-08 15:54:42 -0500 | [diff] [blame] | 18 | TMPL_HUB = "fsi-hub-scan@.service" |
| 19 | INSTFMT_HUB = "fsi-hub-scan@{0}.service" |
| 20 | FMT_HUB = "../${TMPL_HUB}:${TGTFMT}.requires/${INSTFMT_HUB}" |
| 21 | |
| 22 | SYSTEMD_SERVICE_${PN} += "${TMPL_SCAN} ${TMPL_BIND} fsi-enable.service fsi-disable.service ${TMPL_HUB}" |
Matt Spinler | d09f750 | 2017-04-07 14:21:33 -0500 | [diff] [blame] | 23 | |
| 24 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_SCAN', 'OBMC_CHASSIS_INSTANCES')}" |
| 25 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_BIND', 'OBMC_CHASSIS_INSTANCES')}" |
Andrew Geissler | dbaf865 | 2017-08-08 15:54:42 -0500 | [diff] [blame] | 26 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_HUB', 'OBMC_CHASSIS_INSTANCES')}" |