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