obmc phosphor utils - dollar349/openbmc GitHub Wiki
- compose_list
def compose_list(d, fmtvar, *listvars, **kw):
import itertools
fmt = d.getVar(fmtvar, True)
lists = [listvar_to_list(d, x) for x in listvars]
lst = [fmt.format(*x) for x in itertools.product(*lists)]
return (kw.get('sep') or ' ').join(lst)
SYSTEMD_SERVICE_${PN} += "${@compose_list(d, "obmc-power-{0}@.target", "start-pre start on stop-pre stop off reset-on")}"
SYSTEMD_SERVICE_${PN} will include
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]