Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 1 | SUMMARY = "Inventory to Sensor config for phosphor-host-ipmi" |
| 2 | PR = "r1" |
Patrick Venture | 78bb2c4 | 2018-11-04 08:14:53 -0800 | [diff] [blame] | 3 | LICENSE = "Apache-2.0" |
| 4 | LIC_FILES_CHKSUM = "file://${PHOSPHORBASE}/COPYING.apache-2.0;md5=34400b68072d710fecd0a2940a0d1658" |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 5 | |
| 6 | inherit native |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 7 | inherit phosphor-ipmi-host |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 8 | inherit mrw-xml |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 9 | |
| 10 | SRC_URI += "file://config.yaml" |
| 11 | |
| 12 | DEPENDS += " \ |
| 13 | mrw-native \ |
| 14 | mrw-perl-tools-native \ |
| 15 | " |
| 16 | |
| 17 | PROVIDES += "virtual/phosphor-ipmi-inventory-sel" |
| 18 | |
| 19 | S = "${WORKDIR}" |
| 20 | |
| 21 | do_install() { |
| 22 | DEST=${D}${sensor_datadir} |
| 23 | install -d ${DEST} |
| 24 | |
| 25 | ${bindir}/perl-native/perl \ |
| 26 | ${bindir}/gen_ipmi_sel.pl \ |
Matt Spinler | 3f6fcbe | 2017-12-14 13:31:55 -0600 | [diff] [blame] | 27 | -i ${mrw_datadir}/${MRW_XML} \ |
Tom Joseph | f2614f9 | 2017-05-08 11:49:10 +0530 | [diff] [blame] | 28 | -m config.yaml \ |
| 29 | -o ${DEST}/invsensor.yaml |
| 30 | } |