Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 1 | SUMMARY = "Generate fan control YAML from the MRW" |
| 2 | PR = "r1" |
Brad Bishop | 75f0387 | 2018-11-03 09:41:57 -0700 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 5 | |
| 6 | inherit native |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 7 | inherit phosphor-fan |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 8 | inherit mrw-xml |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 9 | |
| 10 | DEPENDS += " \ |
| 11 | mrw-native \ |
| 12 | mrw-perl-tools-native \ |
| 13 | " |
| 14 | |
| 15 | PROVIDES += "virtual/phosphor-fan-control-fan-config" |
| 16 | |
| 17 | S = "${WORKDIR}" |
| 18 | |
| 19 | do_compile() { |
| 20 | ${bindir}/perl-native/perl \ |
| 21 | ${bindir}/gen_fan_zone_yaml.pl \ |
Matt Spinler | 0a8ea63 | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 22 | -i ${mrw_datadir}/${MRW_XML} \ |
Matt Spinler | 565e329 | 2017-04-17 16:34:24 -0500 | [diff] [blame] | 23 | -o ${S}/fans.yaml |
| 24 | } |
| 25 | |
| 26 | do_install() { |
| 27 | DEST=${D}${control_datadir} |
| 28 | install -D ${S}/fans.yaml ${DEST}/fans.yaml |
| 29 | } |