Brad Bishop | 913ed8c | 2016-08-24 09:33:21 -0400 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
Dinesh Chinari | 73c92ac | 2017-05-01 12:13:23 -0500 | [diff] [blame] | 3 | NAMES = "io_board/bmc/ethernet motherboard" |
Brad Bishop | 913ed8c | 2016-08-24 09:33:21 -0400 | [diff] [blame] | 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')}" |