blob: 11752326542109191483f52b8f489e025d40234c [file] [log] [blame]
Patrick Venture16a6bd22017-06-16 09:50:35 -07001inherit obmc-phosphor-systemd
2
3FILESEXTRAPATHS_prepend_quanta-q71l := "${THISDIR}/${PN}:"
Patrick Venture76428942017-05-09 10:04:13 -07004
5EEPROM_NAMES = "motherboard pdb fp bmc"
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}"
Patrick Venture16a6bd22017-06-16 09:50:35 -070013SYSTEMD_ENVIRONMENT_FILE_${PN}_append_quanta-q71l := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
Patrick Venture76428942017-05-09 10:04:13 -070014
15TMPL = "obmc-read-eeprom@.service"
Patrick Venture7f06d662019-04-05 07:46:47 -070016TGT = "multi-user.target"
Patrick Venture76428942017-05-09 10:04:13 -070017INSTFMT = "obmc-read-eeprom@{0}.service"
18FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
19
Patrick Venture16a6bd22017-06-16 09:50:35 -070020SYSTEMD_LINK_${PN}_append_quanta-q71l := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"