blob: c1d50e6ffc90ed9f4959951621b1ff57c3d043fc [file] [log] [blame]
Ratan Gupta9eba79c2017-09-13 18:18:23 +05301FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3INSTANCES = "motherboard/uuid motherboard/bmc/ethernet"
4ITEMS_FMT = "system/chassis/{0}"
5
6ITEMS = "${@compose_list(d, 'ITEMS_FMT', 'INSTANCES')}"
7
8ENV_FILES = "obmc/sync_inventory_item/{0}"
9SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENV_FILES', 'ITEMS')}"
10
11TMPL = "obmc-sync-inventory-item@.service"
12TGT = "${SYSTEMD_DEFAULT_TARGET}"
13
14ETH_SVC = "system-chassis-motherboard-bmc-ethernet.service"
15UUID_SVC = "system-chassis-motherboard-uuid.service"
16
17ETH_DROPIN_DIR = "obmc-sync-inventory-item@${ETH_SVC}.d"
18UUID_DROPIN_DIR = "obmc-sync-inventory-item@${UUID_SVC}.d"
19
20SYSTEMD_OVERRIDE_${PN} += "mac_sync_inventory.conf:${ETH_DROPIN_DIR}/mac_sync_inventory.conf"
21SYSTEMD_OVERRIDE_${PN} += "uuid_sync_inventory.conf:${UUID_DROPIN_DIR}/uuid_sync_inventory.conf"
22
23SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${ETH_SVC}"
24SYSTEMD_LINK_${PN} += "../${TMPL}:${TGT}.wants/obmc-sync-inventory-item@${UUID_SVC}"