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