Matt Spinler | f7d548b | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 1 | SUMMARY = "Generate fan presence YAML from the MRW" |
| 2 | PR = "r1" |
| 3 | |
| 4 | inherit native |
| 5 | inherit obmc-phosphor-license |
Brad Bishop | bd9931f | 2017-04-22 16:26:22 -0400 | [diff] [blame] | 6 | inherit phosphor-fan |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 7 | inherit mrw-xml |
Matt Spinler | f7d548b | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 8 | |
| 9 | DEPENDS += " \ |
| 10 | mrw-native \ |
| 11 | mrw-perl-tools-native \ |
| 12 | " |
| 13 | |
| 14 | PROVIDES += "virtual/phosphor-fan-presence-config" |
| 15 | |
| 16 | S = "${WORKDIR}" |
| 17 | |
| 18 | do_install() { |
| 19 | DEST=${D}${presence_datadir} |
| 20 | install -d ${DEST} |
| 21 | |
| 22 | ${bindir}/perl-native/perl \ |
| 23 | ${bindir}/gen_presence_yaml.pl \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 24 | -i ${mrw_datadir}/${MRW_XML} \ |
Matt Spinler | f7d548b | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 25 | -o ${DEST}/config.yaml |
| 26 | } |