Ratan Gupta | 9eba79c | 2017-09-13 18:18:23 +0530 | [diff] [blame] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | INSTANCES = "motherboard/uuid motherboard/bmc/ethernet" |
| 4 | ITEMS_FMT = "system/chassis/{0}" |
| 5 | |
| 6 | ITEMS = "${@compose_list(d, 'ITEMS_FMT', 'INSTANCES')}" |
| 7 | |
| 8 | ENV_FILES = "obmc/sync_inventory_item/{0}" |
| 9 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENV_FILES', 'ITEMS')}" |
| 10 | |
| 11 | TMPL = "obmc-sync-inventory-item@.service" |
Patrick Venture | 85cff8c | 2019-04-04 13:06:43 -0700 | [diff] [blame] | 12 | TGT = "multi-user.target" |
Ratan Gupta | 9eba79c | 2017-09-13 18:18:23 +0530 | [diff] [blame] | 13 | |
| 14 | ETH_SVC = "system-chassis-motherboard-bmc-ethernet.service" |
| 15 | UUID_SVC = "system-chassis-motherboard-uuid.service" |
| 16 | |
| 17 | ETH_DROPIN_DIR = "obmc-sync-inventory-item@${ETH_SVC}.d" |
| 18 | UUID_DROPIN_DIR = "obmc-sync-inventory-item@${UUID_SVC}.d" |
| 19 | |
| 20 | SYSTEMD_OVERRIDE_${PN} += "mac_sync_inventory.conf:${ETH_DROPIN_DIR}/mac_sync_inventory.conf" |
| 21 | SYSTEMD_OVERRIDE_${PN} += "uuid_sync_inventory.conf:${UUID_DROPIN_DIR}/uuid_sync_inventory.conf" |
| 22 | |
| 23 | SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${ETH_SVC}" |
| 24 | SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${UUID_SVC}" |