blob: 05e1c09bcb13001e9176ce9e2418f5402e992fbb [file] [log] [blame]
Brad Bishop913ed8c2016-08-24 09:33:21 -04001FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
2
3EEPROM_NAMES = "io_board motherboard sas_expander hdd_backplane"
4
5EEPROMFMT = "system/chassis/{0}"
6EEPROM_ESCAPEDFMT = "system-chassis-{0}"
7EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}"
8EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}"
9
10ENVFMT = "obmc/eeproms/{0}"
11SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
12
13TMPL = "obmc-read-eeprom@.service"
14TGT = "${SYSTEMD_DEFAULT_TARGET}"
15INSTFMT = "obmc-read-eeprom@{0}.service"
16FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
17
18SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"