Brian Yang | 9d47808 | 2018-07-28 04:01:57 -0400 | [diff] [blame] | 1 | inherit obmc-phosphor-systemd |
| 2 | |
| 3 | FILESEXTRAPATHS_prepend_lanyang := "${THISDIR}/${PN}:" |
| 4 | |
| 5 | EEPROM_NAMES = "motherboard" |
| 6 | |
| 7 | EEPROMFMT = "system/chassis/{0}" |
| 8 | EEPROM_ESCAPEDFMT = "system-chassis-{0}" |
| 9 | EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}" |
| 10 | EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}" |
| 11 | |
| 12 | ENVFMT = "obmc/eeproms/{0}" |
| 13 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_lanyang := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}" |
| 14 | |
| 15 | TMPL = "obmc-read-eeprom@.service" |
| 16 | TGT = "${SYSTEMD_DEFAULT_TARGET}" |
| 17 | INSTFMT = "obmc-read-eeprom@{0}.service" |
| 18 | FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" |
| 19 | |
| 20 | SYSTEMD_LINK_${PN}_append_lanyang := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" |