Samuel Jiang | 6375cb9 | 2019-11-21 14:36:25 +0800 | [diff] [blame] | 1 | inherit obmc-phosphor-systemd |
| 2 | |
| 3 | FILESEXTRAPATHS_prepend_olympus-nuvoton := "${THISDIR}/${PN}:" |
| 4 | |
| 5 | EEPROM_NAMES = "motherboard bmc" |
| 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_olympus-nuvoton := " ${@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_olympus-nuvoton := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" |
| 21 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" |
| 22 | |