diff options
Diffstat (limited to 'meta-phosphor/recipes-phosphor/fans/phosphor-fan-presence-mrw-native.bb')
-rw-r--r-- | meta-phosphor/recipes-phosphor/fans/phosphor-fan-presence-mrw-native.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-phosphor/recipes-phosphor/fans/phosphor-fan-presence-mrw-native.bb b/meta-phosphor/recipes-phosphor/fans/phosphor-fan-presence-mrw-native.bb new file mode 100644 index 0000000000..47dc2a4a1a --- /dev/null +++ b/meta-phosphor/recipes-phosphor/fans/phosphor-fan-presence-mrw-native.bb @@ -0,0 +1,26 @@ +SUMMARY = "Generate fan presence YAML from the MRW" +PR = "r1" + +inherit native +inherit obmc-phosphor-license +inherit phosphor-fan +inherit mrw-xml + +DEPENDS += " \ + mrw-native \ + mrw-perl-tools-native \ + " + +PROVIDES += "virtual/phosphor-fan-presence-config" + +S = "${WORKDIR}" + +do_install() { + DEST=${D}${presence_datadir} + install -d ${DEST} + + ${bindir}/perl-native/perl \ + ${bindir}/gen_presence_yaml.pl \ + -i ${mrw_datadir}/${MRW_XML} \ + -o ${DEST}/config.yaml +} |