1SUMMARY = "Generate fan control YAML from the MRW" 2LICENSE = "Apache-2.0" 3DEPENDS = "mrw-native mrw-perl-tools-native" 4PROVIDES += "virtual/phosphor-fan-control-fan-config" 5PR = "r1" 6 7S = "${WORKDIR}" 8 9inherit allarch 10inherit phosphor-fan 11inherit mrw-xml 12 13do_compile() { 14 ${bindir}/perl-native/perl \ 15 ${bindir}/gen_fan_zone_yaml.pl \ 16 -i ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} \ 17 -o fans.yaml 18} 19do_install() { 20 install -D fans.yaml ${D}${control_datadir}/fans.yaml 21} 22 23FILES:${PN} += "${control_datadir}/fans.yaml" 24