Matt Spinler | c943de3 | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 1 | SUMMARY = "Generate fan presence YAML from the MRW" |
| 2 | PR = "r1" |
Patrick Venture | bfef83a | 2018-11-04 08:07:54 -0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Matt Spinler | c943de3 | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 5 | |
| 6 | inherit native |
Brad Bishop | 2c5ba17 | 2017-04-22 16:26:22 -0400 | [diff] [blame] | 7 | inherit phosphor-fan |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 8 | inherit mrw-xml |
Matt Spinler | c943de3 | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 9 | |
| 10 | DEPENDS += " \ |
| 11 | mrw-native \ |
| 12 | mrw-perl-tools-native \ |
| 13 | " |
| 14 | |
| 15 | PROVIDES += "virtual/phosphor-fan-presence-config" |
| 16 | |
| 17 | S = "${WORKDIR}" |
| 18 | |
| 19 | do_install() { |
| 20 | DEST=${D}${presence_datadir} |
| 21 | install -d ${DEST} |
| 22 | |
| 23 | ${bindir}/perl-native/perl \ |
| 24 | ${bindir}/gen_presence_yaml.pl \ |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 25 | -i ${mrw_datadir}/${MRW_XML} \ |
Matt Spinler | c943de3 | 2017-03-21 15:02:13 -0500 | [diff] [blame] | 26 | -o ${DEST}/config.yaml |
| 27 | } |