George Hung | 904b35a | 2020-05-20 18:19:34 +0800 | [diff] [blame] | 1 | inherit obmc-phosphor-systemd |
| 2 | DEPENDS_append_gbs = " gbs-yaml-config" |
| 3 | |
| 4 | FILESEXTRAPATHS_prepend_gbs := "${THISDIR}/${PN}:" |
| 5 | |
| 6 | EEPROM_NAMES = "motherboard hsbp fan" |
| 7 | |
| 8 | EEPROMFMT = "system/chassis/{0}" |
| 9 | EEPROM_ESCAPEDFMT = "system-chassis-{0}" |
| 10 | EEPROMS = "${@compose_list(d, 'EEPROMFMT', 'EEPROM_NAMES')}" |
| 11 | EEPROMS_ESCAPED = "${@compose_list(d, 'EEPROM_ESCAPEDFMT', 'EEPROM_NAMES')}" |
| 12 | |
| 13 | ENVFMT = "obmc/eeproms/{0}" |
| 14 | SYSTEMD_ENVIRONMENT_FILE_${PN}_append_gbs := " ${@compose_list(d, 'ENVFMT', 'EEPROMS')}" |
| 15 | |
| 16 | TMPL = "obmc-read-eeprom@.service" |
| 17 | TGT = "multi-user.target" |
| 18 | INSTFMT = "obmc-read-eeprom@{0}.service" |
| 19 | FMT = "../${TMPL}:${TGT}.wants/${INSTFMT}" |
| 20 | |
| 21 | SYSTEMD_LINK_${PN}_append_gbs := " ${@compose_list(d, 'FMT', 'EEPROMS_ESCAPED')}" |
| 22 | |
| 23 | EXTRA_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 | " |