blob: 72c783400d96b73c7a309297efcc6eaed585b7d0 [file] [log] [blame]
PKLee-Quantab0d87652018-12-22 09:28:33 +08001inherit obmc-phosphor-systemd
2
3FILESEXTRAPATHS_prepend_f0b := "${THISDIR}/${PN}:"
4
5EEPROM_NAMES = "motherboard "
6
7EEPROMFMT = "system/{0}"
8EEPROM_ESCAPEDFMT = "system-{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_f0b := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
14
15TMPL = "obmc-read-eeprom@.service"
Patrick Venture7f06d662019-04-05 07:46:47 -070016TGT = "multi-user.target"
PKLee-Quantab0d87652018-12-22 09:28:33 +080017INSTFMT = "obmc-read-eeprom@{0}.service"
18FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
19
20SYSTEMD_LINK_${PN}_append_f0b := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"