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}/sources" 8UNPACKDIR = "${S}" 9 10inherit allarch 11inherit phosphor-fan 12inherit mrw-xml 13 14do_compile() { 15 ${bindir}/perl-native/perl \ 16 ${bindir}/gen_fan_zone_yaml.pl \ 17 -i ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} \ 18 -o fans.yaml 19} 20do_install() { 21 install -D fans.yaml ${D}${control_datadir}/fans.yaml 22} 23 24FILES:${PN} += "${control_datadir}/fans.yaml" 25