blob: 31b7654632dfa5c772a8b1be3dfee30414c73ff2 [file] [log] [blame]
Brad Bishop0e04b2e2019-05-13 13:45:49 -04001SUMMARY = "Generate fan presence YAML from the MRW"
2PR = "r1"
3LICENSE = "Apache-2.0"
4
5inherit allarch
6inherit phosphor-fan
7inherit mrw-xml
8
9DEPENDS = "mrw-native mrw-perl-tools-native"
10PROVIDES += "virtual/phosphor-fan-presence-config"
11
12FILES_${PN} += "${presence_datadir}/config.yaml"
13
14S = "${WORKDIR}"
15
16do_install() {
17 DEST=${D}${presence_datadir}
18 install -d ${DEST}
19
20 ${bindir}/perl-native/perl \
21 ${bindir}/gen_presence_yaml.pl \
22 -i ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} \
23 -o ${DEST}/config.yaml
24}