Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 1 | SUMMARY = "Generate fan presence YAML from the MRW" |
| 2 | PR = "r1" |
| 3 | LICENSE = "Apache-2.0" |
| 4 | |
| 5 | inherit allarch |
| 6 | inherit phosphor-fan |
| 7 | inherit mrw-xml |
| 8 | |
| 9 | DEPENDS = "mrw-native mrw-perl-tools-native" |
| 10 | PROVIDES += "virtual/phosphor-fan-presence-config" |
| 11 | |
| 12 | FILES_${PN} += "${presence_datadir}/config.yaml" |
| 13 | |
| 14 | S = "${WORKDIR}" |
| 15 | |
| 16 | do_install() { |
| 17 | DEST=${D}${presence_datadir} |
| 18 | install -d ${DEST} |
| 19 | |
| 20 | ${bindir}/perl-native/perl \ |
| 21 | ${bindir}/gen_presence_yaml.pl \ |
| 22 | -i ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} \ |
| 23 | -o ${DEST}/config.yaml |
| 24 | } |