Duke Du | 4726abc | 2019-03-25 17:13:18 +0800 | [diff] [blame] | 1 | inherit obmc-phosphor-systemd |
| 2 | |
| 3 | FILESEXTRAPATHS_prepend_gsj := "${THISDIR}/${PN}:" |
| 4 | |
| 5 | EEPROM_NAMES = "hsbp 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_gsj := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}" |
| 14 | |
| 15 | TMPL = "obmc-read-eeprom@.service" |
Patrick Venture | 7f06d66 | 2019-04-05 07:46:47 -0700 | [diff] [blame] | 16 | TGT = "multi-user.target" |
Duke Du | 4726abc | 2019-03-25 17:13:18 +0800 | [diff] [blame] | 17 | INSTFMT = "obmc-read-eeprom@{0}.service" |
| 18 | FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" |
| 19 | |
| 20 | SYSTEMD_LINK_${PN}_append_gsj := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" |