blob: 3d324a1ea853d1b7fa9f014b00bc55f809b79a5f [file] [log] [blame]
Brad Bishop913ed8c2016-08-24 09:33:21 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
Dinesh Chinari73c92ac2017-05-01 12:13:23 -05003NAMES = "io_board/bmc/ethernet motherboard"
Brad Bishop913ed8c2016-08-24 09:33:21 -04004ITEMSFMT = "system/chassis/{0}"
5ITEMS_ESCAPEDFMT = "system-chassis-{0}"
6
7ITEMS = "${@compose_list(d, 'ITEMSFMT', 'NAMES')}"
8ITEMS_ESCAPED = "${@compose_list(d, 'ITEMS_ESCAPEDFMT', 'NAMES')}"
9
10ENVS = "obmc/sync_inventory_item/{0}"
11SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVS', 'ITEMS')}"
12
13TMPL = "obmc-sync-inventory-item@.service"
14TGT = "${SYSTEMD_DEFAULT_TARGET}"
15INSTFMT = "obmc-sync-inventory-item@{0}.service"
16FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
17
18SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'ITEMS_ESCAPED')}"