blob: 0638c3d687fa378a0e575d8b3548862e299677b1 [file] [log] [blame]
Matt Spinlerd09f7502017-04-07 14:21:33 -05001SUMMARY = "FSI Services"
2DESCRIPTION = "Install FSI related services"
3PR = "r1"
4
5inherit obmc-phosphor-systemd
6inherit obmc-phosphor-license
7
Josh D. King9d5d7f42017-04-06 14:43:46 -05008TGTFMT = "obmc-chassis-poweron@{0}.target"
Matt Spinlerd09f7502017-04-07 14:21:33 -05009
10TMPL_SCAN = "fsi-scan@.service"
11INSTFMT_SCAN = "fsi-scan@{0}.service"
12FMT_SCAN = "../${TMPL_SCAN}:${TGTFMT}.requires/${INSTFMT_SCAN}"
13
14TMPL_BIND = "fsi-bind@.service"
15INSTFMT_BIND = "fsi-bind@{0}.service"
16FMT_BIND = "../${TMPL_BIND}:${TGTFMT}.requires/${INSTFMT_BIND}"
17
Andrew Geisslerdbaf8652017-08-08 15:54:42 -050018TMPL_HUB = "fsi-hub-scan@.service"
19INSTFMT_HUB = "fsi-hub-scan@{0}.service"
20FMT_HUB = "../${TMPL_HUB}:${TGTFMT}.requires/${INSTFMT_HUB}"
21
22SYSTEMD_SERVICE_${PN} += "${TMPL_SCAN} ${TMPL_BIND} fsi-enable.service fsi-disable.service ${TMPL_HUB}"
Matt Spinlerd09f7502017-04-07 14:21:33 -050023
24SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_SCAN', 'OBMC_CHASSIS_INSTANCES')}"
25SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_BIND', 'OBMC_CHASSIS_INSTANCES')}"
Andrew Geisslerdbaf8652017-08-08 15:54:42 -050026SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT_HUB', 'OBMC_CHASSIS_INSTANCES')}"