blob: 428c21245b978d7201b6fee95cb9ef6d1fec3172 [file] [log] [blame]
Brad Bishop0e04b2e2019-05-13 13:45:49 -04001SUMMARY = "Generate fan control YAML from the MRW"
2PR = "r1"
3LICENSE = "Apache-2.0"
4
5inherit allarch
6inherit phosphor-fan
7inherit mrw-xml
8
9S = "${WORKDIR}"
10DEPENDS = "mrw-native mrw-perl-tools-native"
11PROVIDES += "virtual/phosphor-fan-control-fan-config"
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}
19
20do_install() {
21 install -D fans.yaml ${D}${control_datadir}/fans.yaml
22}
23
Patrick Williams12fc9392021-08-06 09:16:53 -050024FILES:${PN} += "${control_datadir}/fans.yaml"