blob: 0165929a6d4cdda3d9886e019868ada99ad2bd7a [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"
Patrick Venture85cff8c2019-04-04 13:06:43 -070012TGT = "multi-user.target"
Ratan Gupta9eba79c2017-09-13 18:18:23 +053013
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}"