blob: 87712971624bf9be304c09ed6c7eb19ba5f7c77e [file] [log] [blame]
George Hung904b35a2020-05-20 18:19:34 +08001inherit obmc-phosphor-systemd
2DEPENDS_append_gbs = " gbs-yaml-config"
3
4FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:"
5
6EEPROM_NAMES = "motherboard hsbp fan"
7
8EEPROMFMT = "system/chassis/{0}"
9EEPROM_ESCAPEDFMT = "system-chassis-{0}"
10EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}"
11EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}"
12
13ENVFMT = "obmc/eeproms/{0}"
14SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}"
15
16TMPL = "obmc-read-eeprom@.service"
17TGT = "multi-user.target"
18INSTFMT = "obmc-read-eeprom@{0}.service"
19FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}"
20
21SYSTEMD_LINK_${PN}_append_gbs := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}"
22
23EXTRA_OECONF_append_gbs = " \
24 YAML_GEN=${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-fru-read.yaml \
25 PROP_YAML=${STAGING_DIR_HOST}${datadir}/gbs-yaml-config/ipmi-extra-properties.yaml \
26 "