Patrick Venture | 7642894 | 2017-05-09 10:04:13 -0700 | [diff] [blame^] | 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 2 | |
| 3 | EEPROM_NAMES = "motherboard pdb fp bmc" |
| 4 | |
| 5 | EEPROMFMT = "system/chassis/{0}" |
| 6 | EEPROM_ESCAPEDFMT = "system-chassis-{0}" |
| 7 | EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}" |
| 8 | EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}" |
| 9 | |
| 10 | ENVFMT = "obmc/eeproms/{0}" |
| 11 | SYSTEMD_ENVIRONMENT_FILE_${PN} += "${@compose_list(d, 'ENVFMT', 'EEPROMS')}" |
| 12 | |
| 13 | TMPL = "obmc-read-eeprom@.service" |
| 14 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 15 | INSTFMT = "obmc-read-eeprom@{0}.service" |
| 16 | FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" |
| 17 | |
| 18 | SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" |