Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 1 | SUMMARY = "Generate fan presence YAML from the MRW" |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 2 | LICENSE = "Apache-2.0" |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 3 | DEPENDS = "mrw-native mrw-perl-tools-native" |
| 4 | PROVIDES += "virtual/phosphor-fan-presence-config" |
| 5 | PR = "r1" |
| 6 | |
| 7 | S = "${WORKDIR}" |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 8 | |
| 9 | inherit allarch |
| 10 | inherit phosphor-fan |
| 11 | inherit mrw-xml |
| 12 | |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 13 | do_install() { |
| 14 | DEST=${D}${presence_datadir} |
| 15 | install -d ${DEST} |
Brad Bishop | 0e04b2e | 2019-05-13 13:45:49 -0400 | [diff] [blame] | 16 | ${bindir}/perl-native/perl \ |
| 17 | ${bindir}/gen_presence_yaml.pl \ |
| 18 | -i ${STAGING_DIR_NATIVE}${mrw_datadir}/${MRW_XML} \ |
| 19 | -o ${DEST}/config.yaml |
| 20 | } |
Ed Tanous | 9936f86 | 2022-09-19 09:13:20 -0700 | [diff] [blame] | 21 | |
| 22 | FILES:${PN} += "${presence_datadir}/config.yaml" |