Brad Bishop | 1dff1c8 | 2016-08-24 09:33:21 -0400 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | NAMES = "io_board motherboard" |
| 4 | ITEMSFMT = "system/chassis/{0}" |
| 5 | ITEMS_ESCAPEDFMT = "system-chassis-{0}" |
| 6 | |
| 7 | ITEMS = "${@compose_list(d, 'ITEMSFMT', 'NAMES')}" |
| 8 | ITEMS_ESCAPED = "${@compose_list(d, 'ITEMS_ESCAPEDFMT', 'NAMES')}" |
| 9 | |
| 10 | ENVS = "obmc/sync_inventory_item/{0}" |
| 11 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}" |
| 12 | |
| 13 | TMPL = "obmc-sync-inventory-item@.service" |
| 14 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 15 | INSTFMT = "obmc-sync-inventory-item@{0}.service" |
| 16 | FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" |
| 17 | |
| 18 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'ITEMS_ESCAPED')}" |